空いているPCにCentOS7を入れています。
yumでapache, vsftpdを入れたのですが、
/etc/rc.d/init.d/ に起動スクリプトがなく、起動できません。
⇒ kaz.Suenagaさんよりsystemdに変わっていると回答を頂きました。
systemctl start httpd をしたのですが、上手く起動できません。
上記ができず、ハマっています。
以下、エラーログ
/*----------------------------------------------
■journalctl
6月 01 16:29:41 localhost.localdomain systemd[1]: Starting The Apache HTTP Server... 6月 01 16:29:41 localhost.localdomain httpd[5531]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message 6月 01 16:29:41 localhost.localdomain systemd[1]: Started The Apache HTTP Server. 6月 01 16:29:41 localhost.localdomain polkitd[876]: Unregistered Authentication Agent for unix-process:5525:78073 (system bus name :1.115, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale ja_JP.UTF-8) (disconnected from bus)
■/var/log/httpd/error_log
※# systemctl restart httpd 後
[Wed Jun 01 17:06:09.789028 2016] [mpm_prefork:notice] [pid 6857] AH00170: caught SIGWINCH, shutting down gracefully [Wed Jun 01 17:06:10.832534 2016] [core:notice] [pid 7507] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Wed Jun 01 17:06:10.833037 2016] [suexec:notice] [pid 7507] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Jun 01 17:06:10.845100 2016] [auth_digest:notice] [pid 7507] AH01757: generating secret for digest authentication ... [Wed Jun 01 17:06:10.845554 2016] [lbmethod_heartbeat:notice] [pid 7507] AH02282: No slotmem from mod_heartmonitor [Wed Jun 01 17:06:10.852792 2016] [mpm_prefork:notice] [pid 7507] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations [Wed Jun 01 17:06:10.852819 2016] [core:notice] [pid 7507] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
error_log を見ると問題なく起動しているように見えます。
「起動できない」と判断した理由は何でしょうか?

回答1件
あなたの回答
tips
プレビュー