Re: systemctl isolate httpd.service 명령어 실행에 관하여 > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

Re: systemctl isolate httpd.service 명령어 실행에 관하여

페이지 정보

profile_image
작성자 snow
댓글 2건 조회 1,227회 작성일 23-06-26 11:15

본문

안녕하세요.

isolate 명령 오류에 대해 답변 드리도록 하겠습니다.

해당 문의 사항은 두 가지로 나누어 확인할 수 있습니다.

 

문의사항 1) - isolate 실행 실패

Q.

 [root@localhost ~]# systemctl isolate httpd.service

Failed to start httpd.service: Operation refused, unit may not be isolated.

See system logs and 'systemctl status httpd.service' for details.

 

A.

"systemctl isolate" 명령으로 서비스를 제어할 땐, .service 파일 안에 "AllowIsolate" 옵션이 활성화되어있어야 합니다.

하지만 httpd 서비스는 해당 옵션이 기본적으로 false로 설정되어있으므로 해당 옵션을 활성화해주시면 됩니다.

 

[root@modi-host ~]# systemctl stop httpd

[root@modi-host ~]# systemctl status httpd | grep Active:

   Active: inactive (dead) (thawing) since Mon 2023-06-26 10:49:22 KST; 58s ago

[root@modi-host ~]# systemctl isolate httpd.service

Failed to start httpd.service: Operation refused, unit may not be isolated.

See system logs and 'systemctl status httpd.service' for details.

[root@modi-host ~]# sed -i'' -r -e "/\[Unit\]/a\AllowIsolate=true" /usr/lib/systemd/system/httpd.service 

[root@modi-host ~]# sed -n '/Unit/,/AllowIsolate/p' /usr/lib/systemd/system/httpd.service

[Unit]

AllowIsolate=true 

[root@modi-host ~]# systemctl daemon-reload

[root@modi-host ~]# systemctl isolate httpd.service

[root@modi-host ~]# systemctl status httpd | grep Active:

   Active: active (running) (thawing) since Mon 2023-06-26 11:00:18 KST; 10s ago

 


문의사항 2) - ServerName 정의 오류

Q.

---------------------------------------------------------------
systemctl status httpd.service
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using master.chul.com. Set the 'ServerName' directive globally to suppress this message

----------------------------------------------------------------

도메인 이름에 신뢰가지 않는다고 확인되었습니다. 이 오류때문에 "systemctl isolate httpd.service" 명령이 안되는 걸까요? 이 오류때문이라면 어떻게 문제를 해결할 수 있을까요?

 

A.

Apache가 서버의 FQDN을 신뢰할 수 있는 방식으로 결정할 수 없다는 것을 의미합니다. 이 오류는 서버에 DNS 설정이 없거나 FQDN으로 설정하지 않아서 나오는 오류이며,

/etc/httpd/conf/httpd.conf 설정 파일의 ServerName의 값에 대한 오류입니다.

 

해당 경고 구문를 없애기 위해선 두 가지 방법이 존재합니다.

1. 값을 "localhost" 또는 서버가 알고 있는 호스트 명 적기.

2. hosts 파일 또는 dns 서버에 master.chul.com 등록

 


댓글목록

profile_image

kk1124kk님의 댓글

kk1124kk 작성일
profile_image

snow님의 댓글의 댓글

snow 작성일

문제가 해결되어 다행입니다.

리눅스 입문자에게 추천드릴만한 책을 문의주셨는데요,
개인적인 의견으로는 입문자에게 자격증 공부를 추천해 드립니다.
그리고 직접 구매해보진 않았지만 아래와 같은 국내/해외 도서를 추천해 드립니다.

[국내 도서]
 - "2023 이기적 리눅스 마스터 1급 기본서": 기초 개념 및 명령어 설명, 순차적 학습 가능
 - "리눅스 입문자를 위한 명령어 사전" - 서수환(역): 입문자가 사용할 수 있는 명령어 모음
[해외 도서]
 - "Linux Pocket Guide" - Daniel J. Barrett (저): 이론 중심이 아닌 실용적 리눅스 명령어 가이드
 - "The Linux Command Line: A Complete Introduction" - William E. Shotts Jr. (저): 명령어 사용에 집중한 입문서

다른 문의사항이 있으시다면 언제든지 새 글로 작성해주시길 바랍니다.
감사합니다.

회원로그인

회원가입

사이트 정보

회사명 : (주)리눅스데이타시스템 / 대표 : 정정모
서울본사 : 서울특별시 강남구 봉은사로 114길 40 홍선빌딩 2층 / tel : 02-6207-1160
대전지사 : 대전광역시 유성구 노은로174 도원프라자 5층 / tel : 042-331-1161

접속자집계

오늘
712
어제
1,872
최대
3,935
전체
808,566
Copyright © www.linuxdata.org All rights reserved.