Apache
Версія
/usr/sbin/apache2 -v
Server version: Apache/2.4.29 (Ubuntu)
Server built: 2020-03-13T12:26:16"Стан
systemctl status apache2Перевірка конфігурації
apache2ctl configtestДопомагає знайти помилку у файлах конфігурації
Стоп, старт, рестарт
systemctl stop|start|restart|reload|status apache2а також, в інших дистрибутивах Linux:
systemctl status httpd
systemctl stop|start|restart httpd.service/etc/init.d/apache2 status
/etc/init.d/apache2 stop|start|restart|reload|force-reloadrestart и reload - різниця?
restart: зупиняє (stop), а потім запускає (start) службу Apache.
reload: витончено перезапускає службу Apache. При reload основний процес Apache завершує роботу дочірніх процесів, завантажує нову конфігурацію та запускає нові дочірні процеси.
! Якщо з'являється повідомлення
AH00558: httpd: Could not reliably determine the server's fully qualifiedнеобхідно прописатиServerName localhostу файлі /etc/apache2/apache2.conf (или /etc/httpd/conf/httpd.conf)
Last updated