在设置定时任务时,发现定时任务没有执行
查看crond的运行状态
systemctl status crond.service发现报错:
parameter inet_interfaces: no local interface found
查看centos中的postfix日志
tail -n 15 /var/log/maillog返回错误为:
postfix: fatal: parameter inet_interfaces: no local interface found for ::1
这时编辑postfix配置文件
vi /etc/postfix/main.cf修改以下内容
发现配置为:
inet_interfaces = localhost
inet_protocols = all改成:
inet_interfaces = all
inet_protocols = all再重新启动postfix
systemctl start postfix