您好,登錄后才能下訂單哦!
apache與mysql添加進(jìn)系統(tǒng)服務(wù)并設(shè)置開機(jī)啟動
apache
1 cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
2 chkconfig --add httpd
出現(xiàn)錯(cuò)誤service httpd does not support chkconfig
打開 vi /etc/rc.d/init.d/httpd 添加(#!/bin/sh下面)
# chkconfig: 345 85 15
# description: Activates/Deactivates Apache Web Server
345代表哪些Linux級別需要啟動httpd, 啟動序號是85, 關(guān)閉序號是15
3 chkconfig httpd on
mysql
1 cp /root/tools/mysql-5.1.72/support-files/mysql.server /etc/init.d/mysqld
1.1 chmod 700 /etc/init.d/mysqld
2 chkconfig --add mysqld
3 chkconfig mysqld on
由此來總結(jié)添加方法。
本文出自博客http://xiangji.blog.51cto.com,請務(wù)必保留此出處。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。