centos5关闭selinux不重启server的方法
1、修改/etc/selinux/config文件:
#SELINUX=enforcing
SELINUX=disabled
2、保存后在控制台输入:
$> setenforce 0
1、修改/etc/selinux/config文件:
#SELINUX=enforcing
SELINUX=disabled
2、保存后在控制台输入:
$> setenforce 0
Filed under Mac
Here’s a cool way to control Apache (other than the included version) on OSX. Apache will also auto start on boot using this method.
First, add this line to your httpd.conf file:
PidFile /private/var/run/httpd.pid
Now, open up Terminal and type the following:
cd /usr/sbin
mv apachectl apachectl_bak
ln -s /usr/local/apache2/bin/apachectl apachectl
Now you can go to System Preferences->Sharing and start or stop Personal Web Sharing. Enjoy!
发表者
俞 伟军
位置在:
8/25/2007 02:52:00 PM
0
评论
标签: Apache2 , AutoRestart , Control , Mac , MacOSX , Reboot , Replace