Showing posts with label Reboot. Show all posts
Showing posts with label Reboot. Show all posts

Wednesday, January 02, 2008

centos5关闭selinux不重启server的方法

1、修改/etc/selinux/config文件:
#SELINUX=enforcing
SELINUX=disabled
2、保存后在控制台输入:
$> setenforce 0

Saturday, August 25, 2007

Control Apache from System Preferences in OSX

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!