Mac check apache status4/17/2023 ![]() The restart option is a quick way of stopping and then starting the Apache server. To stop Apache, run one of the following commands: sudo systemctl stop apache2 sudo service apache2 stop Restart Apache # Stopping Apache quickly shut down the main Apache process and all child processes even if there are open connections. ![]() Instead of manually starting the Apache service it is a good idea to set it to start on system boot: sudo systemctl enable apache2 Stop Apache # If you are running an older Linux distribution without systemd to start Apache type: sudo service apache2 start On success, the command doesn’t produce any output. If you are running CentOS, just replace apache2 with httpd in the commands below. In Ubuntu and Debian, the Apache service is named apache2, while in Red Hat based system such as CentOS, the name of the Apache service is httpd. The commands in this guide should work on any modern Linux distribution like Ubuntu 18.04 We’re assuming that you are logged in as root or user with sudo privileges. In this guide, we will go over the most important and frequently used Apache commands, including starting, stopping, and restarting Apache. If you are a developer or system administrator, chances are that you’re dealing with Apache regularly. The Linux Command Line Series: An Introduction To Linux Commands ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |