2017-12-05 24 views
0

난에 CentOS 서버를하고 난 다음 명령을 사용하여 아파치 인증서를 설치하려고 해요 :을 만드는 중 오류 아파치 인증서

certbot --apache -d myDomain.com

을하지만 다음과 같은 오류 받고 있어요 :

Saving debug log to /var/log/letsencrypt/letsencrypt.log 
Plugins selected: Authenticator apache, Installer apache 
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org 
Obtaining a new certificate 
Performing the following challenges: 
tls-sni-01 challenge for myDomain.com 
Error while running apachectl graceful. 

Job for httpd.service invalid. 

Cleaning up challenges 
Error while running apachectl graceful. 

Job for httpd.service invalid. 

Encountered exception during recovery 
Error while running apachectl graceful. 

Job for httpd.service invalid. 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/site-packages/certbot/error_handler.py", line 100, in _call_registered 
    self.funcs[-1]() 
    File "/usr/lib/python2.7/site-packages/certbot/auth_handler.py", line 284, in _cleanup_challenges 
    self.auth.cleanup(achalls) 
    File "/usr/lib/python2.7/site-packages/certbot_apache/configurator.py", line 1945, in cleanup 
    self.restart() 
    File "/usr/lib/python2.7/site-packages/certbot_apache/configurator.py", line 1834, in restart 
    self._reload() 
    File "/usr/lib/python2.7/site-packages/certbot_apache/configurator.py", line 1845, in _reload 
    raise errors.MisconfigurationError(str(err)) 
MisconfigurationError: Error while running apachectl graceful. 

Job for httpd.service invalid. 

Error while running apachectl graceful. 

Job for httpd.service invalid. 

아파치가 실행 중인지 확인합니다 :

ps aux|grep httpd 
root  16569 0.0 0.0 9064 920 pts/1 S+ 14:44 0:00 grep --color=auto httpd 

나는 실행중인 아파치의 춤.

이 오류를 해결할 수있는 방법이나 해결 방법이 있다면 알고 계실 것입니다.

정말 감사드립니다.

답변

0

certbot이 분명히 아파치를 시작/재시작하려고하는데 실패하고 있습니다. 거기에는 여러 가지 이유가있을 수 있으며, 아파치 오류 로그를 찾고 그것이 무엇을 가지고 있는지부터 살펴볼 것입니다. 두 개 이상있을 수 있으므로 타임 스탬프를 확인하십시오.

아파치가 시작될 수 있는지 알아 보는 것도 재미있을 것입니다. 평범한 구식 인 apachectl start은 어떻게됩니까?

+0

다음 명령을 실행했습니다. 'certdot --apache -d myDomain.com을 실행 한 후에'httpd -k stop' 및'apachectl start'을 실행했지만 이제는이 오류가 발생합니다 :'인증 절차에 실패했습니다. myDomain.com (tls-sni-01) : urn : acme : error : unauthorized :: 클라이언트에게 충분한 승인이 없습니다 :: 어떤 아이디어? – user2924482

+0

LE 측과 같이 들리면 도전을 읽을 수 없습니다. 디렉토리가 설정 파일에서 잘못되었거나, 파일이 일부 액세스 규칙에 의해 차단되고 있으며, 위치가 http에서 https로 리디렉션되고 있습니다. 경로가없는 잘 알려진 디렉토리의 파일을 리디렉션없이 얻을 수 있는지 확인하십시오. . –

+0

어떻게 할 수 있습니까?. – user2924482