How to restart apache in ubuntu

藏色散人
Release: 2019-08-05 11:26:55
Original
5226 people have browsed it

How to restart apache in ubuntu

How to restart apache on ubuntu?

Restarting the apache service in Linux is very different from that in Windows. Let’s introduce the commonly used commands.

The Linux system is Ubuntu

1. Start Apache 2 Server / Start apache service

/etc/init.d/apache2 start
or 
$ sudo /etc/init.d/apache2 start
Copy after login

2. Restart Apache 2 Server / Restart apache service

/etc/init.d/apache2 restart
or 
$ sudo /etc/init.d/apache2 restart
Copy after login

3. Stop Apache 2 Server / Stop apache service

/etc/init.d/apache2 stop
or 
$ sudo /etc/init.d/apache2 stop
Copy after login

For more Apache related knowledge, please visit the Apache usage tutorial column!

The above is the detailed content of How to restart apache in ubuntu. 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