
server
my 에 스탠자를 추가했는데 virtual.conf
이제 nginx에서 구성을 다시 로드하는 데 문제가 있는 것 같습니다.
이 시점에서 나는 정확히 무엇이 잘못되고 있는지 또는 어떻게 더 나은 디버그 방법을 알지 못합니다. 어떤 도움이라도 주시면 감사하겠습니다.
구성 테스트가 성공했습니다.
root@server:~# service nginx configtest
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
로그 파일을 추적 중입니다. 다시 로드하면 다음 오류가 기록됩니다. 내가 볼 수 있는 한, 새로운 구성은 사용되지 않습니다.
root@server:~# service nginx reload
Reloading nginx: [ OK ]
root@server:~#
==> /var/log/nginx/error.log <==
nginx object version 0.8.54 does not match bootstrap parameter 1.0.15 at /usr/lib64/perl5/XSLoader.pm line 94.
Compilation failed in require.
BEGIN failed--compilation aborted.
2012/10/18 12:31:07 [alert] 9620#0: perl_parse() failed: 2
제가 실행 중인 nginx 버전은 다음과 같습니다.
root@server:~# yum info nginx
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: ftp.udc.es
* epel: mirror.nl.leaseweb.net
* extras: ftp.udc.es
* updates: ftp.cica.es
Installed Packages
Name : nginx
Arch : x86_64
Version : 1.0.15
Release : 2.el6
[...]
서버 OS: CentOS 릴리스 6.3(최종)
답변1
서비스를 다시 시작하지 않고 nginx 패키지가 업그레이드된 것으로 나타났습니다.
서비스를 다시 시작하면 문제가 해결됩니다.