コンテンツ
Apache(WEBサーバ)の再起動
Apache(WEBサーバ)の起動コマンド、再起動コマンド、停止コマンド
は、
Linuxのディストリビューションによってもコマンドが異なるので、
ついつい忘れがちです。
なので、まとめてみました。
Apacheの再起動(restart)
[Ubuntu] sudo service apache2 restart
[CentOS7] systemctl restart httpd
[CentOS6] service httpd restart
または
[CentOS6] /etc/init.d/httpd restart
Apacheの起動(start)
[Ubuntu] sudo service apache2 start
[CentOS7] systemctl start httpd
[CentOS6] service httpd start
または
[CentOS6] /etc/init.d/httpd start
Apacheの停止(stop)
[Ubuntu] sudo service apache2 stop
[CentOS7] systemctl stop httpd
[CentOS6] service httpd stop
または
[CentOS6] /etc/init.d/httpd stop
この記事へのコメントはありません。