<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://pic1.liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://pic1.liuxinxiu.com:80/redis_root_forbid/</link>
<title><![CDATA[Linux-以指定用户运行redis]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[数据库技术]]></category>
<pubDate>Thu, 11 May 2017 02:25:33 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/redis_root_forbid/</guid> 
<description>
<![CDATA[ 
	<p style="margin: 10px auto; font-family: Verdana, Arial, Helvetica, sans-serif;">redis中无配置启动用户信息，需要添加redis用户，后以其启动（1）：</p><div class="cnblogs_code" style="background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); padding: 5px; overflow: auto; margin: 5px 0px; font-family: &quot;Courier New&quot; !important; font-size: 12px !important;"><pre style="margin-top: 0px; margin-bottom: 0px; margin-left: 22px; white-space: pre-wrap; word-wrap: break-word; font-family: &quot;Courier New&quot; !important;">useradd -s /bash/<span style="color: rgb(0, 0, 255); line-height: 1.5 !important;">false</span> -<span style="line-height: 1.5 !important;">M redis&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 255); line-height: 1.5 !important;">sudo</span> -u redis /xxx/redis-server /xxx/etc/redis.conf &gt;/dev/<span style="color: rgb(0, 0, 255); line-height: 1.5 !important;">null</span> <span style="color: rgb(128, 0, 128); line-height: 1.5 !important;">2</span>&gt;&amp;<span style="color: rgb(128, 0, 128); line-height: 1.5 !important;">1</span> &amp;</pre></div><p><a href="http://blog.csdn.net/buster2014/article/details/50628090" style="color: rgb(51, 51, 51); text-decoration: none; font-family: &quot;Microsoft YaHei&quot;; font-size: 20px;">linux指定某非root用户执行开机启动项的方法</a>（2）<span style="font-family: Verdana, Arial, Helvetica, sans-serif;">：</span></p><p style="margin-bottom: 5px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(50, 62, 50); font-family: simsun; background-color: rgb(217, 229, 190);">以<a href="http://lib.csdn.net/base/linux" class="replace_word" title="Linux知识库" target="_blank" style="color: rgb(223, 52, 52); text-decoration: none; font-weight: bold;">Linux</a>下指定sun用户在linux开机时执行/home/sun/startrun.sh为例：</p><p style="margin-bottom: 5px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(50, 62, 50); font-family: simsun; background-color: rgb(217, 229, 190);">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>&nbsp;以root登录linux</p><p style="margin-bottom: 5px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(50, 62, 50); font-family: simsun; background-color: rgb(217, 229, 190);">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>&nbsp;执行vi /etc/rc.d/rc.local</p><p style="margin-bottom: 5px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(50, 62, 50); font-family: simsun; background-color: rgb(217, 229, 190);">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>&nbsp;在文档末尾添加一行语句：su sun -c &quot;/home/sun/startrun.sh&quot;</p><p style="margin-bottom: 5px; border: 0px; list-style: none; word-wrap: normal; word-break: normal; line-height: 21px; color: rgb(50, 62, 50); font-family: simsun; background-color: rgb(217, 229, 190);">&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>&nbsp;<wbr></wbr>保存rc.local即可。</p>
]]>
</description>
</item><item>
<link>http://pic1.liuxinxiu.com:80/redis_root_forbid/#blogcomment</link>
<title><![CDATA[[评论] Linux-以指定用户运行redis]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/redis_root_forbid/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>