Use -k restart to force child processes to exit. The service will reload configuration files as well. Use the below-mentioned command to exit child processes after they finish a task and then launch new instances. To instruct the Apache service to terminate all child processes and itself, run the following command: apachectl -k stop To restart Apache in this manner, enter the following: sudo apachectl -k restart Method 2: Restart HTTPD Server Using Apachectl Command ScriptĪpache recommends using a control script to pass commands to the httpd process. If you’re running a large or complex server configuration, this can cause disruptions for users who rely on the server. The restart command can take several moments to complete, depending on the complexity of your server configuration. Open a terminal window and enter the following: sudo systemctl restart rvice Restarting Apache on CentOS 7 Method 1: Restart Apache Server Using Systemctl Command Access to a command line / terminal window (Menu > Applications > Utilities > Terminal).An installed and configured Apache installation.Access to a user account with sudo privileges.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |