systemctl status postfix.service
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-04-21 21:32:59 CST; 5s ago
  Process: 8785 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 8783 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 8780 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)

Apr 21 21:32:57 iZd2ibnn6ajh9jZ systemd[1]: Starting Postfix Mail Transport Agent...
Apr 21 21:32:57 iZd2ibnn6ajh9jZ aliasesdb[8780]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:58 iZd2ibnn6ajh9jZ aliasesdb[8780]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:58 iZd2ibnn6ajh9jZ postfix[8785]: fatal: parameter inet_interfaces: no local interface found for ::1
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: postfix.service: control process exited, code=exited status=1
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: Failed to start Postfix Mail Transport Agent.
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: Unit postfix.service entered failed state.
Apr 21 21:32:59 iZd2ibnn6ajh9jZ systemd[1]: postfix.service failed.
解决方法:
修改 /etc/postfix/main.cf的设置  

inet_protocols = ipv4  
inet_interfaces = all  

Linux使用lsyncd实现2个文件夹实时同步

官方文档: https://axkibe.github.io/lsyncd/download/ 1.安装 $ yum install lsyncd $ yum install rsync $ yum install libtermcap-devel ncurses-devel l...

阅读全文

firewall 防火墙常用命令

查看版本 $ firewall-cmd --version 0.4.3.3 help $ firewall-cmd --help 状态 $ firewall-cmd --state running 重载配置 $ firewall-cmd --reload 重新加载...

阅读全文

修改linux centos系统默认时区

方法一 先安装ntpdate: yum install -y ntpdate 再选择一个时间服务器来更新时间: ntpdate time.windows.com 恢复系统时间为utc时间 ln -sf /usr/share/zo...

阅读全文

欢迎留言