Compile and install
Hi all,
I have compiled and installed http server on my system, I started then service from /etc/httpd/bin/apachectl start how can i start it through service httpd start. And I want to know how can i cjkconfig the service and make it on while rebooting the system. Thanks in advance. |
What distribution? (Debian, Fedora)
I also compiled my apache server. This is what I did: Do these commands as root 1. cd /etc/init.d 2. ln -s /etc/httpd/bin/apachectl httpd 3. Put this line in you're /etc/rc.local to start service at boot, /etc/init.d/httpd start To stop, start and restart manually, # /etc/init.d/httpd [start stop restart] If you want to start the service without putting full path /etc/init.d/httpd, create a file called httpd in /usr/local/bin. chmod 755 httpd. Put this code in the file: Code:
#!/bin/bash |
All times are GMT -5. The time now is 03:42 AM. |