溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

apache與mysql添加進(jìn)系統(tǒng)服務(wù)并設(shè)置開機(jī)啟動

發(fā)布時(shí)間:2020-09-24 07:26:46 來源:網(wǎng)絡(luò) 閱讀:721 作者:beabetter 欄目:MySQL數(shù)據(jù)庫

         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ù)必保留此出處。

向AI問一下細(xì)節(jié)

免責(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)容。

AI