<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]Centos6.x/Centos5.x通过yum安装cronie/crontab不同RPM包的方法步骤。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Sat, 24 Jun 2017 04:42:34 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：在用Ansible的脚本初始化环境时，在CentOS5.x出现No Package matching &#039;cronie&#039; found available,而在CentOS6.x上是OK的。<br/>原因：centos6有些商家镜像没有带crontab，需要的话要自己安装，但是centos6和centos5安装crontab是不一样的，因为变更了一些依赖关系。<br/><br/>CentOS6.x:<br/>/usr/bin/crontab -e<br/>rpm -qf /usr/bin/crontab <br/>cronie-1.4.4-15.el6_7.1.x86_64<br/><br/>注意：On CentOs 6 you can still install vixie-cron, but the real package is cronie:<br/>yum install vixie-cron -y<br/>实践成功如下：<br/><textarea name="code" class="php" rows="15" cols="100">
yum install cronie -y
service crond restart
Starting crond:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;OK&nbsp;&nbsp;]
ps -ef&#124;grep cron&nbsp;&nbsp;&nbsp;&nbsp; 
root&nbsp;&nbsp;&nbsp;&nbsp; 50862&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;0 19:51 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:00 crond
</textarea><br/><br/>CentOS5.x:<br/><textarea name="code" class="php" rows="15" cols="100">
yum install vixie-cron
service crond start
chkconfig crond on
</textarea><br/>经之前旧的CentOS安装有Crontab的服务器上通过rpm命令反查crontab：<br/>/usr/bin/crontab -e<br/>rpm -qf&nbsp;&nbsp;/usr/bin/crontab <br/>vixie-cron-4.1-81.el5<br/><br/>crontab package in CentOS is vixie-cron.<br/><br/><br/><br/>service crond restart<br/>Stopping crond:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;OK&nbsp;&nbsp;]<br/>Starting crond:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;OK&nbsp;&nbsp;]<br/><br/><br/>On CentOS 7 vixie-cron is not longer available, so you need to use cronie:<br/>yum install cronie<br/><br/>From:http://www.zxsdw.com/index.php/archives/1151/
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]Centos6.x/Centos5.x通过yum安装cronie/crontab不同RPM包的方法步骤。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>