Linux Apache httpd service to start,

Here is a brief introduction Linux environment is to start Apache httpd service to view the version and other operations, detailed as follows

First, start, stop, restart
systemctl start httpd.service # start

systemctl stop httpd.service # Stop

systemctl restart httpd.service # reboot

Second, set the boot startup / shutdown
systemctl enable httpd.service # boot

systemctl disable httpd.service # boot does not start

Third, check httpd status
systemctl status httpd.service
 

 

 

  1. Open terminal

    Linux view and launch services under the Apache

  2. To root

    Linux view and launch services under the Apache

  3. /etc/rc.d/init.d/ cd to the directory and lists all the files in that directory to see if httpd

    Linux view and launch services under the Apache

  4. Use httpd -v view the httpd already installed version

    Linux view and launch services under the Apache

  5. Use rpm -qa | grep httpd check whether they have installed httpd

    Linux view and launch services under the Apache

  6. Use ps -ef | grep httpd see the httpd process

    Linux view and launch services under the Apache

  7. Check use service httpd status httpd running state

    Linux view and launch services under the Apache

  8. You can stop using the service httpd stop httpd

    You can start using the service httpd start httpd

    Linux view and launch services under the Apache

  9. After the service httpd service is started, you can enter in the browser http: // localhost browser test, if you can see the page shown below, indicating that Apache can work.

    [External Input Server http://192.168.28.10 (the IP host)]

    Linux view and launch services under the Apache

Guess you like

Origin blog.csdn.net/oZuoLuo123/article/details/87858110