Check whether apache is started?
How to check whether apache is started:
1. Check the port
First you need to know the port of apache, such as port 80;
Check whether the port is opened and monitored
netstat -an | grep :80
2. Check the process
ps -ef |grep httpd ps -aux | grep httpd
If you see a lot of output (usually 4 to 5), it means you are right.
3. Browser access
In the browser, enter the colon followed by the IP and the port
For example: http://192.168.0.231:808/
三As long as you confirm one of them, it means that apache has been started.
For more Apache related knowledge, please visit the Apache usage tutorial column!
The above is the detailed content of Check if apache is started. For more information, please follow other related articles on the PHP Chinese website!