我在云服务器的CentOS系统中使用 crontab 设置定时任务的时候,查询状态时发现了错误日志,如图:
这段内容表达的是 参数inet_interfaces::1没有找到本地接口,不只是设置定时任务的时候会遇到这个问题,其他关于本地接口使用时都有可能遇到这个问题,下面就是解决方案。
解决方法
在 /etc/postfix目录下,找到 main.cf 文件 。
执行 vim main.cf
找到
inet_interfaces = localhost
inet_protocols = all
改为
inet_interfaces = all
inet_protocols = all