メモブロ

IT技術のメモ

CentOS環境 コマンドメモ

OS起動後にApacheが起動できているかの確認。

以下のように表示されれば起動できてる

[root@localhost ~]# ps agx | grep httpd

1211 ?        Ss     0:00 /usr/sbin/httpd

1213 ?        S      0:00 /usr/sbin/httpd

1214 ?        S      0:00 /usr/sbin/httpd

1215 ?        S      0:00 /usr/sbin/httpd

1216 ?        S      0:00 /usr/sbin/httpd

1217 ?        S      0:00 /usr/sbin/httpd

1218 ?        S      0:00 /usr/sbin/httpd

1219 ?        S      0:00 /usr/sbin/httpd

1220 ?        S      0:00 /usr/sbin/httpd

1222 pts/0    S+     0:00 grep httpd

 

起動できてない場合、

[root@localhost ~]# ps agx | grep httpd

1230 pts/0    S+     0:00 grep httpd

 

OS起動時にApacheも起動するように設定

[root@localhost ~]# chkconfig httpd on