Home  >  Article  >  Operation and Maintenance  >  How to restart apache in ubuntu

How to restart apache in ubuntu

藏色散人
藏色散人Original
2019-08-05 11:26:555199browse

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

2. Restart Apache 2 Server / Restart apache service

/etc/init.d/apache2 restart
or 
$ sudo /etc/init.d/apache2 restart

3. Stop Apache 2 Server / Stop apache service

/etc/init.d/apache2 stop
or 
$ sudo /etc/init.d/apache2 stop

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!

Statement:
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