我添加了一个server
节到我的virtual.conf
,现在nginx似乎有一个问题重新加载configuration。
在这一点上,我不知道到底是怎么回事,或者如何更好地debugging。 非常感激任何的帮助。
configurationtesting成功:
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
我在拖尾日志文件。 重新加载时,会logging以下错误。 据我所见,新的configuration不被使用。
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 [...]
服务器操作系统:CentOS版本6.3(最终版)
事实certificate,nginx软件包已升级,而服务没有重新启动。
只需重新启动服务就可以解开它。