Home > Operation and Maintenance > Apache > Check if apache is started

Check if apache is started

藏色散人
Release: 2019-08-06 10:56:17
Original
4411 people have browsed it

Check if apache is started

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
Copy after login

2. Check the process

ps -ef |grep httpd 
ps -aux | grep httpd
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template