安装gitlab的过程 启动postfix服务 enable成功,start失败
# systemctl start postfixJob for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for details.
# sudo journalctl -xn-- Logs begin at Wed -11-02 22:50:49 CST, end at Thu -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 postfixNov 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: /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 ::1Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z aliasesdb[30240]: newaliases: fatal: parameter inet_interfaces: no local interface found for ::1Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z postfix/sendmail[30242]: fatal: parameter inet_interfaces: no local interface found for ::1Nov 03 17:14:51 iZbp1fmnx8oyubjt0tj7o6Z postfix[30248]: fatal: parameter inet_interfaces: no local interface found for ::1Nov 03 17:14:52 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: postfix.service: control process exited, code=exited status=1Nov 03 17:14:52 iZbp1fmnx8oyubjt0tj7o6Z systemd[1]: Failed to start Postfix Mail Transport Agent.-- Subject: Unit postfix.service has failed-- Defined-By: systemd-- Support: /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//注释掉下面一行#::1localhost localhost.localdomain localhost6 localhost6.localdomain6
问题解决