我在我的server.config 文件中添加了一个节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
Run Code Online (Sandbox Code Playgroud)
我正在跟踪日志文件。重新加载时,会记录以下错误。据我所知,没有使用新的配置。
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
Run Code Online (Sandbox Code Playgroud)
这是我正在运行的 nginx 版本:
root@server:~# yum info nginx
Loaded plugins: …Run Code Online (Sandbox Code Playgroud)