약 6개월 전에 Plesk를 설치했고 서버를 다시 시작할 때마다 nginx가 부팅 시 시작되지 않아 수동으로 다시 시작해야 했기 때문에 Debian에서 Plesk를 실행하고 있습니다. 오늘은 서버를 다시 시작해야 했는데 이번에는 nginx를 수동으로 다시 시작할 수도 없었습니다.
알겠어요:
Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed.
See 'systemctl status nginx.service' and 'journalctl -xn' for details.
failed!
systemctl status nginx.service는 다음을 반환합니다.
● nginx.service - Startup script for nginx service
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Wed 2016-03-09 23:00:15 MST; 25min ago
Process: 4723 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 4720 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: [emerg] bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
Mar 09 23:00:15 fineartschool.net nginx[4723]: nginx: configuration file /etc/nginx/nginx.conf test failed
Mar 09 23:00:15 fineartschool.net systemd[1]: nginx.service: control process exited, code=exited status=1
Mar 09 23:00:15 fineartschool.net systemd[1]: Failed to start Startup script for nginx service.
Mar 09 23:00:15 fineartschool.net systemd[1]: Unit nginx.service entered failed state.
로그 -xn 읽기
-- Logs begin at Wed 2016-03-09 22:49:30 MST, end at Wed 2016-03-09 23:10:01 MST. --
Mar 09 23:05:01 fineartschool.net CRON[6067]: pam_unix(cron:session): session closed for user root
Mar 09 23:09:01 fineartschool.net CRON[7188]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:09:01 fineartschool.net CRON[7189]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
Mar 09 23:09:01 fineartschool.net CRON[7188]: pam_unix(cron:session): session closed for user root
Mar 09 23:09:47 fineartschool.net CRON[4606]: pam_unix(cron:session): session closed for user root
Mar 09 23:10:01 fineartschool.net CRON[7505]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:10:01 fineartschool.net CRON[7506]: pam_unix(cron:session): session opened for user root by (uid=0)
Mar 09 23:10:01 fineartschool.net CRON[7507]: (root) CMD (/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/magicspam/script|
Mar 09 23:10:01 fineartschool.net CRON[7508]: (root) CMD (/opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/plesk-mobile/scr
Mar 09 23:10:01 fineartschool.net CRON[7505]: pam_unix(cron:session): session closed for user root
및 nginx 오류 로그
2016/03/09 22:28:57 [emerg] 952#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:31:14 [emerg] 2675#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:34:56 [emerg] 914#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:38:36 [emerg] 2670#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:39:26 [emerg] 941#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:42:17 [emerg] 2795#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:42:32 [emerg] 2912#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:46:17 [emerg] 4026#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:46:26 [emerg] 4092#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:49:49 [emerg] 795#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 22:52:31 [emerg] 2517#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
2016/03/09 23:00:15 [emerg] 4723#0: bind() to 64.4.6.100:80 failed (99: Cannot assign requested address)
어떤 도움이라도 대단히 감사하겠습니다!
미리 감사드립니다!
답변1
그것 참 부끄럽 네. 그래서 "(99: 요청한 주소를 할당할 수 없습니다)"라는 반복 패턴을 살펴본 후 IP 주소를 할당하는 서버를 살펴보기로 결정했고 고정 IP 주소를 얻는 대신 동적 IP 주소를 얻고 있다는 것을 발견했습니다.
이 문제를 해결한 후 nginx를 다시 시작할 수 있었습니다. 다른 사람들도 이로부터 혜택을 받을 수 있기를 바랍니다.