<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; chkconfig</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/chkconfig/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>linux服务器管理&#8211;系统服务设置命令systemctl</title>
		<link>http://www.bio-info-trainee.com/1685.html</link>
		<comments>http://www.bio-info-trainee.com/1685.html#comments</comments>
		<pubDate>Sat, 04 Jun 2016 01:22:48 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[生信基础]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1685</guid>
		<description><![CDATA[因为买过一个超算云服务器，所以前面我讲过Ubuntu服务器管理系列知识，正好最近 &#8230; <a href="http://www.bio-info-trainee.com/1685.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>因为买过一个超算云服务器，所以前面我讲过<a href="http://www.bio-info-trainee.com/577.html">Ubuntu服务器管理系列知识</a>，正好最近要搞了个阿里云，用来做shiny服务器，发现服务器管理居然进化了好多，以前的知识都过时了，再记录一笔吧，真的是学习如逆水行舟，不进则退呀！</p>
<p>我的阿里云服务器版本是CentOS 6.5.，属于（RedHat 7, Ubuntu 15.04+, SLES 12+)  系列，是目前最新版本的服务器管理，所以大家重点是记住这个<span style="color: #ff00ff;"><strong>systemctl </strong></span>即可：</p>
<p><span id="more-1685"></span></p>
<blockquote>
<div>例子如下：</div>
</blockquote>
<div>
<blockquote>
<div><span style="color: #ff00ff;"><strong>sudo systemctl start shiny-server</strong></span></div>
<div><span style="color: #ff00ff;"><strong>sudo systemctl stop shiny-server</strong></span></div>
<div><span style="color: #ff00ff;"><strong>sudo systemctl restart shiny-server</strong></span></div>
</blockquote>
<div>
<blockquote>
<div>如果是稍微有点旧的(Ubuntu 12.04 through 14.10 and RedHat 6)</div>
<div>例子如下：</div>
<div>
<ul>
<li><span style="color: #ff00ff;"><strong>启动指令:sudo service iptables start   </strong></span></li>
<li><span style="color: #ff00ff;"><strong>重启指令:sudo service iptables restart   </strong></span></li>
<li><span style="color: #ff00ff;"><strong>关闭指令:sudo service iptables stop   </strong></span></li>
</ul>
</div>
<div>如果是特别老的linux服务器，如(RedHat 5, SLES 11) ，系统太老了，关键文件存放在<code>/etc/init.d/</code></div>
<div>sudo /sbin/service shiny-server start</div>
<div>sudo /sbin/service shiny-server stop</div>
<div>sudo /sbin/service shiny-server restart</div>
<div>sudo /sbin/service shiny-server reload</div>
<div>sudo /sbin/service shiny-server status</div>
</blockquote>
</div>
</div>
<p>总结一下就是，最新的系统用的是systemctl， 是一种管制服务的主要工具， 它整合了chkconfig 与 service功能于一体。如果你查看很多教程里面提到了chkconfig 与 service，你尽管用这个systemctl替代就好了</p>
<p>systemctl is-enabled iptables.service<br />
systemctl is-enabled servicename.service #查询服务是否开机启动<br />
systemctl enable *.service #开机运行服务<br />
systemctl disable *.service #取消开机运行<br />
<b>systemctl start *.service #启动服务<br />
systemctl stop *.service #停止服务<br />
systemctl restart *.service #重启服务</b><br />
systemctl reload *.service #重新加载服务配置文件<br />
systemctl status *.service #查询服务运行状态<br />
systemctl --failed #显示启动失败的服务</p>
<p>注：*代表某个服务的名字，如http的服务名为httpd</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1685.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
