Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for deta

安装gitlab的过程 启动postfix服务 enable成功,start失败
# systemctl start postfix
Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for details.
# sudo journalctl -xn
-- Logs begin at Wed 2016-11-02 22:50:49 CST, end at Thu 2016-11-03 17:15:10 CST. --
Nov 03 17:14:50 iZbp1fmnx8oyubjt0tj7o6Z sudo[30237]: git : TTY=pts/3 ; PWD=/home/git ; USER=root ; COMMAND=/bin/systemctl start postfix
Nov 03 17:14:50 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: Starting Postfix Mail Transport Agent...
-- Subject: Unit postfix.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit postfix.service has begun starting up.
Nov 03 17:14:50 iZbp1fmnx8oyubjt0tj7o6Z aliasesdb[30240]: /usr/sbin/postconf: fatal: parameter inet_interfaces: no local interface found for ::1
Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z aliasesdb[30240]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1
Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z postfix/sendmail[30242]: fatal: parameter inet_interfaces: no local interface found for ::1
Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z postfix[30248]: fatal: parameter inet_interfaces: no local interface found for ::1
Nov 03 17:14:52 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: postfix.service: control process exited, code=exited status=1
Nov 03 17:14:52 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: Failed to start Postfix Mail Transport Agent.
-- Subject: Unit postfix.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit postfix.service has failed.
-- 
-- The result is failed.
Nov 03 17:14:52 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: Unit postfix.service entered failed state.
Nov 03 17:15:10 iZbp1fmnx8oyubjt0tj7o6Z sudo[30271]: git : TTY=pts/3 ; PWD=/home/git ; USER=root ; COMMAND=/bin/journalctl -xn
问题出现在网络设置,ipv6网段,
vim /etc/hosts     //注释掉下面一行
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
问题解决
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值