httpd寮鏈哄惎鍔ㄤ互鍙娾渟ervice httpd does not support chkconfig鈥

鏈杩戠粡甯告湇鍔″櫒瑕侀噸鍚紝涓閲嶅惎缃戠珯灏辫烦鍒颁簡apache鐨勯粯璁ら椤碉紝鐚滄兂鏄病寮鏈哄惎鍔╝pache锛岃屼笖涓婄骇鍙堜笉鐭ラ亾鎼炰簡涓粈涔堜富鏈哄疂鍦ㄦ湇鍔″櫒涓婏紝鎵浠ヨ烦鍒伴偅閲屽幓
#閲嶅惎鏈嶅姟鍣ㄥ悗鍙戠幇httpd琚彟澶栦竴涓猦ttpd鍗犵敤鐫
netstat -nlp |grep httpd

#鍙ソ鏉鎺変簡
killall httpd

#浣嗘槸鎵цhttpd閲嶅惎鍙堟病鏈夋姤閿
service httpd restart

chkconfig httpd on
#杩斿洖service httpd does not support chkconfig


vi /etc/init.d/httpd  #鎴栬卾i /etc/rc.d/init.d/httpd
#鍦ㄧ浜岃鍔犲叆
# chkconfig: 2345 10 90

# description: Activates/Deactivates Apache Web Server

#鐒跺悗鎵ц
chkconfig --add httpd
#娌℃姤閿欏氨琛屼簡
chkconfig httpd on

reboot #閲嶅惎鏈嶅姟鍣

#璁块棶缃戠珯鍙戠幇鎴愬姛浜

All posts

Other pages

鍙戣〃璇勮

鐢靛瓙閭欢鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞