Job for postfix.service failed because the control process exited with error code. See "systemctl st
2017-04-18 09:57
1316 查看
CentOS 7.2 启动postfix的时候报错:
[root@ ~]# systemctl start postfix
Job 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 ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz postfix[7683]: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service: control process exited, code=exited status=1
4月 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 = ipv4
inet_interfaces = all
参考:https://forums.opensuse.org/showthread.php/436441-Postfix-error-message
参考:https://forums.opensuse.org/showthread.php/436441-Postfix-error-message
[root@ ~]# systemctl start postfix
Job 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 ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz aliasesdb[7677]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:08 iz2ze3xidelaqr3x4lx0lpz postfix[7683]: fatal: parameter inet_interfaces: no local interface found for ::1
4月 18 09:34:09 iz2ze3xidelaqr3x4lx0lpz systemd[1]: postfix.service: control process exited, code=exited status=1
4月 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 = ipv4
inet_interfaces = all
参考:https://forums.opensuse.org/showthread.php/436441-Postfix-error-message
参考:https://forums.opensuse.org/showthread.php/436441-Postfix-error-message
相关文章推荐
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- Job for vsftpd.service failed because the control process exited with error code. See "systemctl sta
- Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”
- Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- centos出现这个错误:Job for sshd.service failed because the control process exited with error code.
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 关于nginx的Job for nginx.service failed because the control process exited with error code.错误
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- CentOS7启动SSH服务报:Job for ssh.service failed because the control process exited with error code.......
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- Job for vsftpd.service failed because the control process exited with error code
- Dockers Job for docker.service failed because the control process exited with error code
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- gitlab搭建提示inet_interfacesJob for postfix.service failed because the control process exited with erro
- mysql.service failed because the control process exited with error code问题
- salt出错Job for salt-master.service failed because the control process exited with error code.