Last active
February 21, 2020 11:27
-
-
Save rizkysyazuli/522662847b9d30144a96fc3313fdec2a to your computer and use it in GitHub Desktop.
[Shell - Apache Commands] #ubuntu #centos #apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu | |
sudo service apache2 start | |
sudo service apache2 stop | |
sudo service apache2 restart | |
# CentOS 7.x or newer | |
sudo systemctl start httpd.service | |
sudo systemctl stop httpd.service | |
sudo systemctl restart httpd.service | |
# Check active vhosts | |
apache2ctl -S | grep 'namevhost ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment