60歳からITエンジニアを目指す無謀なブログ

60歳で定年し、職種を変更してIT技術者を目指すブログです。

apache2 起動・停止

起動

sudo systemctl start httpd

 

停止

sudo systemctl stop httpd

 

自動起動(Boot時に自動でStartする)

sudo systemctl enable httpd

 

即時自動起動

sudo systemctl enable --now httpd

 

自動起動削除

sudo systemctl disable httpd

 

httpd 停止

sudo systemctl stop httpd

 

ステータス確認

systemctl status httpd

 

 

$>topコマンドで

 2194 root      20   0    6764   4692   3408 S   0.0   0.0   0:00.00 apache2
 2197 www-data  20   0 1998164  12252   2536 S   0.0   0.1   0:00.00 apache2
 2198 www-data  20   0 1998164  12252   2536 S   0.0   0.1   0:00.00 apache2

のようにプロセスが見える