가상 호스트를 구성한 후 Apache가 다시 시작되지 않습니다

가상 호스트를 구성한 후 Apache가 다시 시작되지 않습니다

웹 서버를 생성하려고 하는데 가상 호스트 구성을 추가한 후 Apache가 다시 시작되지 않습니다. 몇 가지 버그가 있지만 대부분을 고칠 수 있었습니다. 이제 journalctl -xn아무런 힌트도 주어지지 않았기 때문에 무슨 일이 일어나고 있는지 전혀 모릅니다 .

로그는 다음과 같습니다.

[root@localhost victorscarone]# systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@localhost victorscarone]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since vie 2015-09-11 22:54:27 PYT; 2s ago
  Process: 2681 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2679 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2679 (code=exited, status=1/FAILURE)

sep 11 22:54:27 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
sep 11 22:54:27 localhost.localdomain kill[2681]: kill: cannot find process ""
sep 11 22:54:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 11 22:54:27 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
sep 11 22:54:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
[root@localhost victorscarone]# journalctl -xn
-- Logs begin at vie 2015-09-11 22:20:49 PYT, end at vie 2015-09-11 22:54:27 PYT. --
sep 11 22:48:29 localhost.localdomain kill[2658]: kill: cannot find process ""
sep 11 22:48:29 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 11 22:48:29 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
--
-- Unit httpd.service has failed.
--
-- The result is failed.
sep 11 22:48:29 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
sep 11 22:54:27 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
--
-- Unit httpd.service has begun starting up.
sep 11 22:54:27 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
sep 11 22:54:27 localhost.localdomain kill[2681]: kill: cannot find process ""
sep 11 22:54:27 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 11 22:54:27 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
--
-- Unit httpd.service has failed.
--
-- The result is failed.
sep 11 22:54:27 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

도와주세요. 좋은 목적을 위한 것입니다(내 대학 과제 :D)

편집 #1(2015년 9월 12일 19:30 GMT -4)

방금 무엇을 했는지는 모르겠지만 "httpd -t" 명령을 테스트해 본 @garethTheRed가 알려주었고 도움이 되는지 확인하고 싶어서 "httpd -H"를 시도하고 실행했습니다. 그런 다음 "apachectl restart"를 실행하면 동일한 오류가 발생했습니다. 하지만 이번에는 "journalctl -xn"을 보고 뭔가 달라졌습니다. Apache에서는 여전히 오류가 발생하지만 테스트 페이지 123에서는 이미 실행 중입니다. 하지만 vhost는 아직 작동하지 않습니다.

이후의 출력입니다.

[root@localhost victorscarone]# httpd -t
Syntax OK
[root@localhost victorscarone]# httpd --help
[root@localhost victorscarone]# httpd --h
httpd (pid 2977) already running
[root@localhost victorscarone]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since sáb 2015-09-12 19:12:42 PYT; 4min 53s ago
  Process: 2965 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2963 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2963 (code=exited, status=1/FAILURE)

sep 12 19:12:42 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
sep 12 19:12:42 localhost.localdomain kill[2965]: kill: cannot find process ""
sep 12 19:12:42 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 12 19:12:42 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
sep 12 19:12:42 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost victorscarone]# apachectl restart
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
[root@localhost victorscarone]# journalctl -xn
-- Logs begin at sáb 2015-09-12 19:07:51 PYT, end at sáb 2015-09-12 19:18:32 PYT. --
sep 12 19:18:18 localhost.localdomain kill[2993]: kill: cannot find process ""
sep 12 19:18:18 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 12 19:18:18 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
--
-- Unit httpd.service has failed.
--
-- The result is failed.
sep 12 19:18:18 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
sep 12 19:18:32 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun with start-up
-- Defined-By: systemd
--
-- Unit httpd.service has begun starting up.
sep 12 19:18:32 localhost.localdomain httpd[3001]: httpd (pid 2977) already running
sep 12 19:18:32 localhost.localdomain kill[3003]: kill: cannot find process ""
sep 12 19:18:32 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
sep 12 19:18:32 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
--
-- Unit httpd.service has failed.
--
-- The result is failed.
sep 12 19:18:32 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.

[root@localhost victorscarone]# httpd -t
Syntax OK

어떤 아이디어가 있나요?

편집 #2 2015년 9월 24일 19:29 (GMT -4) 지연되어 죄송합니다. 계속할 시간이 없었지만 이제 다시 시작합니다. @garethTheRed가 말한 내용을 시도했지만 어느 시점에서 멈췄습니다.

[root@localhost victorscarone]# httpd -DFOREGROUND -e debug
[Thu Sep 24 19:26:01.249663 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module access_compat_module from /etc/httpd/modules/mod_access_compat.so
[Thu Sep 24 19:26:01.249913 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module actions_module from /etc/httpd/modules/mod_actions.so
[Thu Sep 24 19:26:01.249975 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module alias_module from /etc/httpd/modules/mod_alias.so
[Thu Sep 24 19:26:01.250021 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module allowmethods_module from /etc/httpd/modules/mod_allowmethods.so
[Thu Sep 24 19:26:01.250065 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module auth_basic_module from /etc/httpd/modules/mod_auth_basic.so
[Thu Sep 24 19:26:01.250130 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module auth_digest_module from /etc/httpd/modules/mod_auth_digest.so
[Thu Sep 24 19:26:01.250180 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_anon_module from /etc/httpd/modules/mod_authn_anon.so
[Thu Sep 24 19:26:01.250230 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_core_module from /etc/httpd/modules/mod_authn_core.so
[Thu Sep 24 19:26:01.250277 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_dbd_module from /etc/httpd/modules/mod_authn_dbd.so
[Thu Sep 24 19:26:01.250324 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_dbm_module from /etc/httpd/modules/mod_authn_dbm.so
[Thu Sep 24 19:26:01.250368 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_file_module from /etc/httpd/modules/mod_authn_file.so
[Thu Sep 24 19:26:01.250422 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authn_socache_module from /etc/httpd/modules/mod_authn_socache.so
[Thu Sep 24 19:26:01.250484 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_core_module from /etc/httpd/modules/mod_authz_core.so
[Thu Sep 24 19:26:01.250541 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_dbd_module from /etc/httpd/modules/mod_authz_dbd.so
[Thu Sep 24 19:26:01.250597 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_dbm_module from /etc/httpd/modules/mod_authz_dbm.so
[Thu Sep 24 19:26:01.250650 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_groupfile_module from /etc/httpd/modules/mod_authz_groupfile.so
[Thu Sep 24 19:26:01.250701 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_host_module from /etc/httpd/modules/mod_authz_host.so
[Thu Sep 24 19:26:01.250857 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_owner_module from /etc/httpd/modules/mod_authz_owner.so
[Thu Sep 24 19:26:01.250914 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module authz_user_module from /etc/httpd/modules/mod_authz_user.so
[Thu Sep 24 19:26:01.250986 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module autoindex_module from /etc/httpd/modules/mod_autoindex.so
[Thu Sep 24 19:26:01.251082 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module cache_module from /etc/httpd/modules/mod_cache.so
[Thu Sep 24 19:26:01.251370 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module cache_disk_module from /etc/httpd/modules/mod_cache_disk.so
[Thu Sep 24 19:26:01.251431 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module data_module from /etc/httpd/modules/mod_data.so
[Thu Sep 24 19:26:01.251498 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dbd_module from /etc/httpd/modules/mod_dbd.so
[Thu Sep 24 19:26:01.251662 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module deflate_module from /etc/httpd/modules/mod_deflate.so
[Thu Sep 24 19:26:01.251805 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dir_module from /etc/httpd/modules/mod_dir.so
[Thu Sep 24 19:26:01.251873 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dumpio_module from /etc/httpd/modules/mod_dumpio.so
[Thu Sep 24 19:26:01.251929 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module echo_module from /etc/httpd/modules/mod_echo.so
[Thu Sep 24 19:26:01.251985 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module env_module from /etc/httpd/modules/mod_env.so
[Thu Sep 24 19:26:01.252044 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module expires_module from /etc/httpd/modules/mod_expires.so
[Thu Sep 24 19:26:01.252113 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module ext_filter_module from /etc/httpd/modules/mod_ext_filter.so
[Thu Sep 24 19:26:01.252184 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module filter_module from /etc/httpd/modules/mod_filter.so
[Thu Sep 24 19:26:01.252309 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module headers_module from /etc/httpd/modules/mod_headers.so
[Thu Sep 24 19:26:01.252392 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module include_module from /etc/httpd/modules/mod_include.so
[Thu Sep 24 19:26:01.252475 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module info_module from /etc/httpd/modules/mod_info.so
[Thu Sep 24 19:26:01.252547 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module log_config_module from /etc/httpd/modules/mod_log_config.so
[Thu Sep 24 19:26:01.252611 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module logio_module from /etc/httpd/modules/mod_logio.so
[Thu Sep 24 19:26:01.252684 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module mime_magic_module from /etc/httpd/modules/mod_mime_magic.so
[Thu Sep 24 19:26:01.252822 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module mime_module from /etc/httpd/modules/mod_mime.so
[Thu Sep 24 19:26:01.252916 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module negotiation_module from /etc/httpd/modules/mod_negotiation.so
[Thu Sep 24 19:26:01.252985 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module remoteip_module from /etc/httpd/modules/mod_remoteip.so
[Thu Sep 24 19:26:01.253050 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module reqtimeout_module from /etc/httpd/modules/mod_reqtimeout.so
[Thu Sep 24 19:26:01.253150 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module rewrite_module from /etc/httpd/modules/mod_rewrite.so
[Thu Sep 24 19:26:01.253219 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module setenvif_module from /etc/httpd/modules/mod_setenvif.so
[Thu Sep 24 19:26:01.253303 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module slotmem_plain_module from /etc/httpd/modules/mod_slotmem_plain.so
[Thu Sep 24 19:26:01.253373 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module slotmem_shm_module from /etc/httpd/modules/mod_slotmem_shm.so
[Thu Sep 24 19:26:01.253440 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module socache_dbm_module from /etc/httpd/modules/mod_socache_dbm.so
[Thu Sep 24 19:26:01.253503 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module socache_memcache_module from /etc/httpd/modules/mod_socache_memcache.so
[Thu Sep 24 19:26:01.253567 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module socache_shmcb_module from /etc/httpd/modules/mod_socache_shmcb.so
[Thu Sep 24 19:26:01.253638 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module status_module from /etc/httpd/modules/mod_status.so
[Thu Sep 24 19:26:01.253747 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module substitute_module from /etc/httpd/modules/mod_substitute.so
[Thu Sep 24 19:26:01.253823 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module suexec_module from /etc/httpd/modules/mod_suexec.so
[Thu Sep 24 19:26:01.253884 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module unique_id_module from /etc/httpd/modules/mod_unique_id.so
[Thu Sep 24 19:26:01.253960 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module unixd_module from /etc/httpd/modules/mod_unixd.so
[Thu Sep 24 19:26:01.254028 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module userdir_module from /etc/httpd/modules/mod_userdir.so
[Thu Sep 24 19:26:01.254094 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module version_module from /etc/httpd/modules/mod_version.so
[Thu Sep 24 19:26:01.254157 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module vhost_alias_module from /etc/httpd/modules/mod_vhost_alias.so
[Thu Sep 24 19:26:01.254350 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dav_module from /etc/httpd/modules/mod_dav.so
[Thu Sep 24 19:26:01.254491 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dav_fs_module from /etc/httpd/modules/mod_dav_fs.so
[Thu Sep 24 19:26:01.255042 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module dav_lock_module from /etc/httpd/modules/mod_dav_lock.so
[Thu Sep 24 19:26:01.255892 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module lua_module from /etc/httpd/modules/mod_lua.so
[Thu Sep 24 19:26:01.256053 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module mpm_prefork_module from /etc/httpd/modules/mod_mpm_prefork.so
[Thu Sep 24 19:26:01.256261 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_module from /etc/httpd/modules/mod_proxy.so
[Thu Sep 24 19:26:01.256362 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module lbmethod_bybusyness_module from /etc/httpd/modules/mod_lbmethod_bybusyness.so
[Thu Sep 24 19:26:01.256434 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module lbmethod_byrequests_module from /etc/httpd/modules/mod_lbmethod_byrequests.so
[Thu Sep 24 19:26:01.256505 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module lbmethod_bytraffic_module from /etc/httpd/modules/mod_lbmethod_bytraffic.so
[Thu Sep 24 19:26:01.256709 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module lbmethod_heartbeat_module from /etc/httpd/modules/mod_lbmethod_heartbeat.so
[Thu Sep 24 19:26:01.256904 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_ajp_module from /etc/httpd/modules/mod_proxy_ajp.so
[Thu Sep 24 19:26:01.257042 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_balancer_module from /etc/httpd/modules/mod_proxy_balancer.so
[Thu Sep 24 19:26:01.257142 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_connect_module from /etc/httpd/modules/mod_proxy_connect.so
[Thu Sep 24 19:26:01.257227 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_express_module from /etc/httpd/modules/mod_proxy_express.so
[Thu Sep 24 19:26:01.257334 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_fcgi_module from /etc/httpd/modules/mod_proxy_fcgi.so
[Thu Sep 24 19:26:01.257421 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_fdpass_module from /etc/httpd/modules/mod_proxy_fdpass.so
[Thu Sep 24 19:26:01.257543 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_ftp_module from /etc/httpd/modules/mod_proxy_ftp.so
[Thu Sep 24 19:26:01.257736 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_http_module from /etc/httpd/modules/mod_proxy_http.so
[Thu Sep 24 19:26:01.257861 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module proxy_scgi_module from /etc/httpd/modules/mod_proxy_scgi.so
[Thu Sep 24 19:26:01.258128 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module systemd_module from /etc/httpd/modules/mod_systemd.so
[Thu Sep 24 19:26:01.258301 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module cgi_module from /etc/httpd/modules/mod_cgi.so
[Thu Sep 24 19:26:01.272364 2015] [so:debug] [pid 2603] mod_so.c(266): AH01575: loaded module php5_module from /etc/httpd/modules/libphp5.so

답변1

비슷한 문제가 있었는데 Apache가 VirtualHost 컨테이너의 ErrorLog 및 CustomLog 줄을 좋아하지 않는 것으로 나타났습니다. 나는 그것들을 주석 처리했고 서비스는 문제없이 시작되었습니다.

나는 이것이 httpd.conf의 권한과 관련이 있다고 생각합니다.

답변2

앞으로 이 문제가 발생하는 경우 SElinux를 비활성화하지 말고 사용 방법을 배우십시오. 이를 비활성화하는 것은 총을 쏘려고 할 때 방아쇠가 작동하지 않기 때문에 총의 모든 안전 장치를 제거하는 것과 거의 같습니다.

이 문제를 해결하는 올바른 방법은 다음과 같습니다.

semanage fcontext -a httpd_sys_rw_content_t "/var/www/html(/.*)?"

주어진 디렉토리에 대한 읽기 및 쓰기에 대한 아파치 권한을 허용합니다.

그 후에는 다음을 수행할 수 있어야 합니다.restorecon -Rv /var/www/html

이렇게 하면 문제가 해결될 것입니다.

@MADforFUNandHappy가 게시한 내용

답변3

전체 시스템 재부팅을 시도했는데 더 이상 존재하지 않는 프로세스를 종료하려는 것 같습니다.

sudo reboot

시스템이 완전히 다시 시작되면 명령을 다시 실행해 보세요.

sudo systemctl restart httpd

작동해야 합니다. 그렇지 않은 경우 "journalctl -xn" 출력을 게시하세요.

답변4

나에게는 CentOS7에서 selinux를 비활성화하여 달성되었습니다.

재부팅 후 영구적으로 비활성화하려면:

sudo nano/etc/selinux/config

SELINUX=허용 또는 비활성화

문서 저장

sudo setenforce 0

그리고 확인

상태

관련 정보