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
-
To root
-
/etc/rc.d/init.d/ cd to the directory and lists all the files in that directory to see if httpd
-
Use httpd -v view the httpd already installed version
-
Use rpm -qa | grep httpd check whether they have installed httpd
-
Use ps -ef | grep httpd see the httpd process
-
Check use service httpd status httpd running state
-
You can stop using the service httpd stop httpd
You can start using the service httpd start httpd
-
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)]