Created
August 11, 2019 11:18
-
-
Save artemrogov/22de6dd4daabf66e6de3a985ef08cdbd to your computer and use it in GitHub Desktop.
Apache web server основные команды управления
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
#Статус веб-сервера | |
sudo service apache2 status | |
#Перезапуск веб-сервера(плавная перезагрузка): | |
sudo service apache2 restart | |
#Полная перезагрузка | |
sudo service apache2 reload | |
#Включите новый VirtualHost, используя утилиту a2ensite, и перезапустите Apache2: | |
sudo a2ensite mynewsite | |
sudo service apache2 restart | |
#Выключить сайт: | |
sudo a2dissite mynewsite | |
sudo service apache2 restart | |
#Используйте утилиту a2enmod для включения модуля: | |
sudo a2enmod auth_mysql | |
sudo service apache2 restart | |
#Аналогично a2dismod выключит модуль: | |
sudo a2dismod auth_mysql | |
sudo service apache2 restart | |
#Подробная инструкция: | |
https://help.ubuntu.ru/wiki/%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE_%D0%BF%D0%BE_ubuntu_server/web_%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B0/httpd_apache2_web_server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment