Você está na página 1de 1

Checking Status of Apache: ========================== vmsstd1 [P]:~# vmsstd1 [P]:~# /etc/init.

d/httpd status httpd (pid 7519 6740 6739 6738 6715 6635 6451 6250 5372) is running... vmsstd1 [P]:~# vmsstd1 [P]:~# vmsstd1 [P]:~# service httpd status httpd (pid 7519 6740 6739 6738 6715 6635 6451 6250 5372) is running... vmsstd1 [P]:~# Run ps -eZ | grep httpd to view the httpd processes. Stopping Apache: ================ "service httpd stop" to stop the Apache web server or HTTP process on Ubuntu /etc/init.d/httpd stop ====>>> On RedHat Linux Starting Apache: ================ To run Apache type the following at the command prompt: /etc/init.d/httpd start ====>>> On RedHat Linux "service httpd start" to start the Apache web server or HTTP process on Ubuntu Restarting Apache: ================== "service httpd stop" to stop the process Running Apache at Bootup: ========================= There are several ways to run Apache at bootup, and here is one of the simple on es. To run Apache at bootup type: vi /etc/rc.local This will open rc.local in the text editor "vi". Arrow down to the bottom of the text (there may not be any yet, in which case it will be the first line) and ad d: /etc/init.d/httpd start Then type :w and enter it (writes the file, i.e. saves it) Followed by :q and enter it (quits the vi text editor)

Você também pode gostar