分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
CentOS 7.2 启动postfix的时候报错:
[root@ ~]# systemctl start postfixJob for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
debug的过程:中发现具体的问题是:parameter inet_interfaces: no local interface found for ::1
[root@ ~]# 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 二 2017-04-18 09:34:09 CST; 1min 8s ago Process: 7683 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 7680 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 7677 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=75)4月 18 09:34:07 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Starting Postfix Mail Transport Agent...4月 18 09:34:07 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::14月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::14月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz postfix[7683]: fatal: parameter inet_interfaces: no local interface found for ::14月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service: control process exited, code=exited status=14月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Failed to start Postfix Mail Transport Agent.4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: Unit postfix.service entered failed state.4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service failed.
解决方法:
修改 /etc/postfix/main.cf的设置inet_protocols = ipv4inet_interfaces = all
参考: https://forums.opensuse.org/showthread.php/436441-Postfix-error-message