![]() Most modern RHEL based distro now using systemd, so you need to use the following systemctl command: Process: 15247 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)įeb 27 00:00:23 ubuntu-db-mgmnt systemd: Reloaded The Apache HTTP Server.įeb 28 00:00:23 ubuntu-db-mgmnt systemd: Reloading The Apache HTTP Server.ĬentOS/RHEL (Red Hat) Linux version 4.x/5.x/6.x or older specific commandsĬentOS/Fedora/RHEL (Red Hat) Linux version 7.x or newer specific commands Process: 115 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Wed 20:39:39 UTC 5 days ago We can view status using the following command: Use the following systemctl command on Debian Linux version 8.x+ or Ubuntu Linux version Ubuntu 15.04+ or above: $ sudo service apache2 start A note about Debian/Ubuntu Linux systemd users $ sudo service apache2 stop To start Apache 2 web server, enter: $ sudo service apache2 restart To stop Apache 2 web server, enter: You can either use service or /etc/init.d/ command as follows on Debian Linux version 7.x or Ubuntu Linux version Ubuntu 14.10 or older: Restart Apache 2 web server, enter: Debian/Ubuntu Linux Specific Commands to Start/Stop/Restart Apache
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |