LINUX.ORG.RU
ФорумAdmin

Не стартует апач

 


0

1

Здравствуйте. На VPS - CentOS 7. Пытаюсь запустить апач:

[root@044 ~]# service httpd start
Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@044 ~]# journalctl -xe
....................приведен не весь вывод комманды (последние строки) ...................................
Sep 18 10:17:56 <мой_хост> systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Sep 18 10:17:56 <мой_хост> systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 18 10:17:56 <мой_хост> kill[1996]: kill: cannot find process ""
Sep 18 10:17:56 <мой_хост> systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 18 10:17:56 <мой_хост> systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 18 10:17:56 <мой_хост> systemd[1]: Unit httpd.service entered failed state.
Sep 18 10:17:56 <мой_хост> systemd[1]: httpd.service failed.

Также обнаружил, что

[root@044 ~]# df -i
Filesystem     Inodes  IUsed  IFree IUse% Mounted on
/dev/simfs     400000 350062  49938   88% /
devtmpfs       131072     53 131019    1% /dev
tmpfs          131072      1 131071    1% /dev/shm
tmpfs          131072    198 130874    1% /run
tmpfs          131072     10 131062    1% /sys/fs/cgroup
tmpfs          131072      1 131071    1% /run/user/0

88% - это много? Может ли из-за этого не стартовать?



Последнее исправление: sc_creator (всего исправлений: 1)

А чего так мало вырезал, оставил бы только

Sep 18 10:17:56 <мой_хост> systemd[1]: httpd.service failed.

Все и так сразу телепатически догадаются в чем причина.

constin ★★★★
()
Ответ на: комментарий от anonymous

[root@044 ~]# bash -x /etc/init.d/apache2 start bash: /etc/init.d/apache2: No such file or directory

(У меня Cent OS)

sc_creator
() автор топика
Ответ на: комментарий от constin

Форум больше не дает текста вставить

--
-- Unit session-4987046.scope has finished starting up.
--
-- The start-up result is done.
Sep 18 12:45:01 <мой_хост> systemd[1]: Starting Session 4987046 of user root.
-- Subject: Unit session-4987046.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987046.scope has begun starting up.
Sep 18 12:45:01 <мой_хост> CROND[2685]: (root) CMD (/usr/local/ispmgr/sbin/cron.sh sbin/ihttpd.check.sh)
Sep 18 12:45:29 <мой_хост> sshd[2695]: Received disconnect from 221.194.47.236: 11:  [preauth]
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: connect from 91-118-93-98.static.upcbusiness.at[91.118.93.98]
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: warning: connect to Milter service unix:/tmp/clamav-milter.socket: Permission denied
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: NOQUEUE: milter-reject: CONNECT from 91-118-93-98.static.upcbusiness.at[91.118.93.98]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: NOQUEUE: milter-reject: EHLO from 91-118-93-98.static.upcbusiness.at[91.118.93.98]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<liqcwfhkdd>
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: disconnect from 91-118-93-98.static.upcbusiness.at[91.118.93.98]
Sep 18 12:46:30 <мой_хост> clamd[745]: SelfCheck: Database status OK.
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max connection rate 1/60s for (smtp:66.146.76.130) at Sep 18 12:44:15
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max connection count 1 for (smtp:66.146.76.130) at Sep 18 12:44:15
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max cache size 1 at Sep 18 12:44:15
Sep 18 12:50:01 <мой_хост> systemd[1]: Started Session 4987204 of user root.
-- Subject: Unit session-4987204.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987204.scope has finished starting up.
--
-- The start-up result is done.
Sep 18 12:50:01 <мой_хост> systemd[1]: Starting Session 4987204 of user root.
-- Subject: Unit session-4987204.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987204.scope has begun starting up.
Sep 18 12:50:01 <мой_хост> CROND[2698]: (root) CMD (/usr/local/ispmgr/sbin/cron.sh sbin/ihttpd.check.sh)
Sep 18 12:50:56 <мой_хост> sshd[2708]: Received disconnect from 59.45.175.96: 11:  [preauth]
Sep 18 12:52:59 <мой_хост> sshd[2710]: Received disconnect from 59.45.175.98: 11:  [preauth]
[root@044 ~]# clear
[root@044 ~]# service httpd start
Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@044 ~]# journalctl -xe
-- Subject: Unit session-4987046.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987046.scope has finished starting up.
--
-- The start-up result is done.
Sep 18 12:45:01 <мой_хост> systemd[1]: Starting Session 4987046 of user root.
-- Subject: Unit session-4987046.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987046.scope has begun starting up.
Sep 18 12:45:01 <мой_хост> CROND[2685]: (root) CMD (/usr/local/ispmgr/sbin/cron.sh sbin/ihttpd.check.sh)
Sep 18 12:45:29 <мой_хост> sshd[2695]: Received disconnect from 221.194.47.236: 11:  [preauth]
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: connect from 91-118-93-98.static.upcbusiness.at[91.118.93.98]
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: warning: connect to Milter service unix:/tmp/clamav-milter.socket: Permission denied
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: NOQUEUE: milter-reject: CONNECT from 91-118-93-98.static.upcbusiness.at[91.118.93.98]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: NOQUEUE: milter-reject: EHLO from 91-118-93-98.static.upcbusiness.at[91.118.93.98]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<liqcwfhkdd>
Sep 18 12:45:42 <мой_хост> postfix/smtpd[2681]: disconnect from 91-118-93-98.static.upcbusiness.at[91.118.93.98]
Sep 18 12:46:30 <мой_хост> clamd[745]: SelfCheck: Database status OK.
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max connection rate 1/60s for (smtp:66.146.76.130) at Sep 18 12:44:15
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max connection count 1 for (smtp:66.146.76.130) at Sep 18 12:44:15
Sep 18 12:49:02 <мой_хост> postfix/anvil[2682]: statistics: max cache size 1 at Sep 18 12:44:15
Sep 18 12:50:01 <мой_хост> systemd[1]: Started Session 4987204 of user root.
-- Subject: Unit session-4987204.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987204.scope has finished starting up.
--
-- The start-up result is done.
Sep 18 12:50:01 <мой_хост> systemd[1]: Starting Session 4987204 of user root.
-- Subject: Unit session-4987204.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4987204.scope has begun starting up.
Sep 18 12:50:01 <мой_хост> CROND[2698]: (root) CMD (/usr/local/ispmgr/sbin/cron.sh sbin/ihttpd.check.sh)
Sep 18 12:50:56 <мой_хост> sshd[2708]: Received disconnect from 59.45.175.96: 11:  [preauth]
Sep 18 12:52:59 <мой_хост> sshd[2710]: Received disconnect from 59.45.175.98: 11:  [preauth]
Sep 18 12:54:31 <мой_хост> systemd[1]: Cannot add dependency job for unit systemd-vconsole-setup.service, ignoring: Unit systemd-vconsole-setup.service is masked.
Sep 18 12:54:31 <мой_хост> systemd[1]: Cannot add dependency job for unit systemd-sysctl.service, ignoring: Unit systemd-sysctl.service is masked.
Sep 18 12:54:31 <мой_хост> systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Sep 18 12:54:31 <мой_хост> systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 18 12:54:31 <мой_хост> kill[2730]: kill: cannot find process ""
Sep 18 12:54:31 <мой_хост> systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 18 12:54:31 <мой_хост> systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Sep 18 12:54:31 <мой_хост> systemd[1]: Unit httpd.service entered failed state.
Sep 18 12:54:31 <мой_хост> systemd[1]: httpd.service failed.

sc_creator
() автор топика
Ответ на: комментарий от constin

Да, исправил и уже работает. На днях пытался включить сайту https, но браузер так и не перестал ругаться на сертификат из-за SAN. Но это уже выходит за рамки темы.

P.S. Кстати, а то что у меня использовано 88% от возможного количества инод, это нормально?

sc_creator
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.