zhouwul 发表于 2013-5-10 08:55:23

apache mysql设置开机启动

mysql设为linux服务

cp /usr/local/mysql5/share/mysql/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 2345 mysqld on
chown mysql:mysql -R /usr/local/mysql5/
service mysqld start

apache设为linux服务

cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
vi /etc/init.d/httpd

在在#!/bin/sh后面加入下面两行
#chkconfig:345 85 15
#description: Start and stops the Apache HTTP Server.

然后
chmod +x /etc/rc.d/init.d/httpd
chkconfig --add httpd
然后可以用setup命令进入服务设置,设置为开机启动第二种方法:在/etc/rc.d/rc.local中增加启动apache的命令,例如:/usr/local/httpd/bin/apachectl start

xuxiaohui9216 发表于 2013-5-10 08:55:58

过来看看的

Mei笑D小妞 发表于 2013-5-17 05:13:25

在一辆拥挤的公车上,一位女郎忽然叫了起来:别挤啦!别挤啦!把人家的奶都挤出来啦!(她拿着酸奶呢)。

阿斯顿阿斯顿 发表于 2013-5-18 08:47:39

怀揣两块,胸怀500万!

cfsky 发表于 2013-5-19 18:58:57

饭在锅里,我在床上*^_^*

xinxuaw231 发表于 2013-5-21 02:39:29

勃起不是万能的,但不能勃起却是万万都不能的!

火冰狐 发表于 2013-5-22 09:57:46

很多女明星不红的原因是因为没有张开腿*^_^*
页: [1]
查看完整版本: apache mysql设置开机启动