Apache-2.0.52 Automatic startup problem

xiaoxiao2021-03-06  50

I http2.x is normal, but not configured to turn automatic operation. So I will cp / home / apache2 / bin / apachectl /etc/rc.d/init.d/httpd then ChkConfig httpd on, system prompt: httpd service is not Support Chkconfig? Where is the problem? I have to start every time I have manually.

Caojiqun Reply to: 2004-10-03 19:25:06 I don't know what system you are, my approach is to add a S99apache in /etc/rc2.d, write on / home / apache2 / bin / apachectl start &

Mrsanny Reply to: 2004-10-10 16:53:13 My system is RedHat9.0

Level Reply to: 2004-10-11 08:36:07 Use this command try: chkconfig --Add Httpd

Wudicc Reply to: 2004-10-25 16:18:38 Create a symbolic connection from / usr / local / apache / bin / apachectl to /etc/rc.d/init.d/httpd: # ln -s / usr / Local / apache / bin / apachectl /etc/rc.d/init.d/httpd (above this step can also be used with cp / usr / local / apache / bin / apachectl /etc/rc.d/init.d/httpd ) Then add the following lines in this file (/ usr / local / apache / bin / apachectl) (probably on the top of the file, about the second line): # chkconfig: 2345 10 90 (10 and 90 is the meaning of the representative I am still not clear, please expert advice) # description: Activates / deActivates apache Web Server (the top of # 不 省 省) Finally, running Chkconfig Add Apache to the system start service group: # / sbin / chkconfig --del Httpd # / sbin / chkconfig --Add httpd # / sbin / chkconfig httpd on # / sbin / chkconfig httpd off -------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------- MySQL automatic start setting setting # / Sbin / chkconfig --Add mysql # / sbin / chkconfig mysql on # / sbin / chkconfig mysql OFF

转载请注明原文地址:https://www.9cbs.com/read-81743.html

New Post(0)