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  

如何用dockerfile 和 docker compose 安装php82

1.创建Dockerfile 文件名:Dockerfile.php-fpm82 FROM php:8.2-fpm # 安装必要的依赖 RUN apt-get update && apt-get install -y --no-install-recom...

阅读全文

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 重新加载...

阅读全文

欢迎留言

超过时间限制。请再次填写验证码