Configure Apache server under Liunx

1. Check if Apache is installed on the Linux server

#httpd -v

Found that CentOs 6.5 has installed Apache / 2.2.15

2. View the running status of the Apache server

#service httpd status

Stop the Apache server

#service httpd stop

Start the Apache server

#service httpd start 

After the service httpd service is started, you can enter http: // localhost in the browser to browse the test. If you can see the page shown below, it means that Apache can work normally.


3. Upload the website we wrote to the server

The default path is var / www / html /



Published 25 original articles · Likes6 · Visits 10,000+

Guess you like

Origin blog.csdn.net/qq_37446649/article/details/80436229