<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Centos7%E4%B8%8Acrontab%E4%B8%8D%E6%89%A7%E8%A1%8C</id>
	<title>Centos7上crontab不执行 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Centos7%E4%B8%8Acrontab%E4%B8%8D%E6%89%A7%E8%A1%8C"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%8Acrontab%E4%B8%8D%E6%89%A7%E8%A1%8C&amp;action=history"/>
	<updated>2026-04-17T15:13:57Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%8Acrontab%E4%B8%8D%E6%89%A7%E8%A1%8C&amp;diff=216&amp;oldid=prev</id>
		<title>Evan：​/* 腾迅云centos7上crontab不执行 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%8Acrontab%E4%B8%8D%E6%89%A7%E8%A1%8C&amp;diff=216&amp;oldid=prev"/>
		<updated>2020-04-24T02:19:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;腾迅云centos7上crontab不执行&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=腾迅云centos7上crontab不执行=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
定时任务不成功   看 cron log &lt;br /&gt;
&lt;br /&gt;
 CROND[5388]: (root) CMD (bash  /root/evan/love )&lt;br /&gt;
Apr 23 19:33:02 aliyun-jump-host CROND[5387]: (root) MAIL (mailed 294 bytes of output but got status 0x004b#012)&lt;br /&gt;
Apr 23 19:34:01 aliyun-jump-host CROND[5403]: (root) CMD (bash  /root/evan/love )&lt;br /&gt;
Apr 23 19:34:01 aliyun-jump-host CROND[5402]: (root) MAIL (mailed 294 bytes of output but got status 0x004b#012)&lt;br /&gt;
^C&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
全不成功的 &lt;br /&gt;
]# crontab  -l&lt;br /&gt;
*/1  *  *  * *   /bin/bash  /root/evan/love &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
通过查看maillog，发现了下面的报错&lt;br /&gt;
&lt;br /&gt;
cat  /var/log/maillog&lt;br /&gt;
&lt;br /&gt;
stfix/sendmail[8087]: fatal: parameter inet_interfaces: no local interface found for ::1这是什么错误了（参数inet_interfaces:未找到：：1的本地接口），又经过一番查找，终于找到了解决办法&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#解决办法 &lt;br /&gt;
vim  /etc/postfix/main.cf&lt;br /&gt;
&lt;br /&gt;
inet_interfaces = localhost&lt;br /&gt;
&lt;br /&gt;
# Enable IPv4, and IPv6 if supported&lt;br /&gt;
inet_protocols = all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
删掉或者注释  添加 &lt;br /&gt;
&lt;br /&gt;
inet_interfaces = all&lt;br /&gt;
&lt;br /&gt;
或者  只是 &lt;br /&gt;
将/etc/postfix/main.cf文件中inet_interfaces值改为all&lt;br /&gt;
&lt;br /&gt;
还有写命令要 全部绝对路径&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
https://cloud.tencent.com/developer/article/1594636&lt;br /&gt;
&lt;br /&gt;
https://blog.csdn.net/sd4493091/article/details/83345661&lt;br /&gt;
&lt;br /&gt;
[https://blog.csdn.net/nero_claudius/article/details/102976144  Linux定时任务，执行shell文件失败问题&amp;amp;&amp;amp;mailed 73 bytes of output but got status 0x004b#012报错解决]&lt;br /&gt;
&lt;br /&gt;
[[category:ops]]&lt;/div&gt;</summary>
		<author><name>Evan</name></author>
	</entry>
</feed>