apacheの起動についてお伺いします。
$apachectl configtest
$ systemctl start httpd
$ systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since 月 2017-01-23 13:29:43 JST; 1s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 5252 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Main PID: 6763 (httpd)
Status: "Processing requests..."
CGroup: /system.slice/httpd.service
tq6763 /usr/sbin/httpd -DFOREGROUND
tq6771 /usr/sbin/httpd -DFOREGROUND
tq6772 /usr/sbin/httpd -DFOREGROUND
tq6773 /usr/sbin/httpd -DFOREGROUND
tq6774 /usr/sbin/httpd -DFOREGROUND
mq6775 /usr/sbin/httpd -DFOREGROUND
1月 23 13:29:43 hostuser systemd[1]: Starting The Apache HTTP Server...
1月 23 13:29:43 hostuse systemd[1]: Started The Apache HTTP Server.
[root@ftrwi21j conf]#
$ps -ef | grep httpd
root 6763 1 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 6771 6763 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 6772 6763 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 6773 6763 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 6774 6763 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 6775 6763 0 13:29 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 6991 21708 0 13:30 pts/0 00:00:00 grep --color=auto httpdi
apacheを立ち上げました。
この-DFOREGROUNDというのはバックグラウンドでhttpdデーモンが起動しているという意味でしょうか。
apacheは正常に立ち上がっている状態といっても問題ないでしょうか。
(index.htmlはwebブラウザで表示できました。)
使用
Ver:apache2.4.6
OS:CentOS7
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。