1.安装postfix,执行命令sudoapt-getupdate
sudoapt-getinstallmailutils2.配置postfix,编辑/etc/postfix/main.cf,修改inet_interfaces=all为inet_interfaces=loopback-only3.重启postfix服务sudoservicepostfixrestart4.测试发邮件echo"Thisisthebodyoftheemail"|mail-s"Thisis..
分类:
其他好文 时间:
2017-01-06 17:28:18
阅读次数:
271
Linux里面有两套管理网络连接的方案: 1、/etc/network/interfaces(/etc/init.d/networking) 2、Network-Manager 两套方案是冲突的,不能同时共存。 第一个方案适用于没有X的环境,如:服务器;或者那些完全不需要改动连接的场合。 第二套方案 ...
分类:
Web程序 时间:
2016-12-30 10:45:54
阅读次数:
202
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地 ...
分类:
系统相关 时间:
2016-12-25 01:52:54
阅读次数:
192
configure set interfaces bonding bond0 mode 802.3ad set interfaces ethernet eth1 bond-group bond0 set interfaces ethernet eth2 bond-group bond0 commit ...
分类:
其他好文 时间:
2016-12-23 01:59:19
阅读次数:
201
http://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/ 这篇文章会非常详细的分析 iOS 界面构建中的各种性能问题以及对应的解决思路,同时给出一个开源的微博列表实现,通过实际的代码展示如何构建流畅的交互。 Index演示项 ...
分类:
移动开发 时间:
2016-12-10 19:23:07
阅读次数:
323
postconf-d:查看默认设置postconf-n:查看当前设置postconf-e"inet_interfaces=all":修改选项inet_interfaces参数指定postfix系统监听的网络接口。一.邮件的限制==access==##禁止某个ip接受邮件[root@maillinux~]#cd/etc/postfix/[root@maillinuxpostfix]#lsaccessgenericmain.c..
分类:
数据库 时间:
2016-12-06 23:04:21
阅读次数:
387
修改IP地址: vi /etc/network/interfaces /etc/init.d/networking restart ifdown eth0 ifup eth0 修改主机名: vi /etc/hostname 修改DNS: vi /etc/resolv.conf vi /etc/res ...
分类:
系统相关 时间:
2016-11-30 14:11:13
阅读次数:
245
KVM之网桥创建(ubuntu环境)1、创建网桥的目的是为了让KVM虚拟机连接到这个网桥,从而使虚拟机可以和物理网络通信2、当然,安装完kvm后,会自动建立一个网桥virbr0,这个网桥应该是nat模式一、DHCP网桥创建vim/etc/network/interfaces这是interfaces配置文件的内容:#Thisfile..
分类:
系统相关 时间:
2016-11-29 23:33:33
阅读次数:
261
###unit.9vsftpd服务###1.什么是ftp2.安装ftpyuminstallvsftpd-ysystemctlstartvsftpdfirewall-cmd--permanent--add-server=ftpfirewall-cmd--reloadfirewall-cmd--list-allpublic(default,active)interfaces:eth0sources:services:dhcpv6-clientftpsshports:masquerade:noforw..
分类:
其他好文 时间:
2016-11-24 22:15:22
阅读次数:
186
1. 找到文件并作如下修改: sudo vim /etc/network/interfaces 修改如下部分: auto eth0iface eth0 inet staticaddress 192.168.0.117gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地址ne ...
分类:
系统相关 时间:
2016-11-23 10:07:43
阅读次数:
207