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
鍙戣〃鍥炲