Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to restart and stop apache in Linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to restart and stop apache in the Linux system". The content is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to restart and stop apache in the Linux system.

Basic method of operation: this article assumes that your apahce installation directory is / usr/local/apache2, these methods are suitable for any situation

Apahce startup command: recommended

/ usr/local/apache2/bin/apachectl start apaceh starts the apache stop command

/ usr/local/apache2/bin/apachectl stop stop apache restart command:

/ usr/local/apache2/bin/apachectl restart restart / usr/local/apache2/bin/apachectl restart restart

To restart the Apache server without interrupting the current connection, run:

/ usr/local/sbin/apachectl graceful

If apache is installed as a service of linux, you can use the following command:

Service httpd start start

Service httpd restart restart

Service httpd stop out of service

Service httpd status to view service status

After centos7, you can use systemctl to replace service for operation

Systemctl start httpd start

Systemctl restart httpd restart

Systemctl stop httpd out of service

Systemctl status httpd to view service status

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 above is "how to restart in Linux system, Stop apache all the content of this article Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report