Apacheの起動・停止コマンド(Linux)です。

 

起動

Redhat系

service httpd start

/etc/init.d/httpd start

Ubuntu

service apache2 start

 

停止

Redhat系

service httpd stop

/etc/init.d/httpd stop

Ubuntu

service apache2 stop

 

再起動

Redhat系

service httpd restart

Ubuntu

service apache2 restart

 

ステータス確認

Redhat系

service httpd status

/etc/init.d/httpd status

Ubuntu

service apache2 status