刚把新VPS的Nginx升级到了 0.8.54,使用10.04 的官方包修改在 Ubuntu 10.04 amd64 环境编译而成,改动如下。
1. 由 0.7.56 升级至 0.8.54
2. 增加并应用了 HTTP Owner Match 模块
下载地址
源代码包
nginx_0.8.54-1heiher_i386.deb
nginx_0.8.54-1heiher_amd64.deb
Over!
刚把新VPS的Nginx升级到了 0.8.54,使用10.04 的官方包修改在 Ubuntu 10.04 amd64 环境编译而成,改动如下。
1. 由 0.7.56 升级至 0.8.54
2. 增加并应用了 HTTP Owner Match 模块
下载地址
源代码包
nginx_0.8.54-1heiher_i386.deb
nginx_0.8.54-1heiher_amd64.deb
Over!
果断的,沙发
root@ubuntu:/tmp# dpkg -i nginx_0.8.54-1heiher_i386.deb
(Reading database … 43068 files and directories currently installed.)
Preparing to replace nginx 0.7.67-3ubuntu1 (using nginx_0.8.54-1heiher_i386.deb) …
Unpacking replacement nginx …
Setting up nginx (0.8.54-1heiher) …
Installing new version of config file /etc/nginx/mime.types …
Installing new version of config file /etc/nginx/sites-available/default …
Installing new version of config file /etc/init.d/nginx …
Trying a soft restart
PID IS RIGHT
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
WAITING
Nginx ‘soft’ update failed, doing restart
Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
[emerg]: still could not bind()
nginx.
Processing triggers for ufw …
Processing triggers for ureadahead …
Processing triggers for man-db …
80 端口被占用,检查是否进行着其它Web服务器,如果没有一会应该就好了。
root@ubuntu:~# lsof -i tcp:80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 890 root 7u IPv4 7198 0t0 TCP *:www (LISTEN)
nginx 1174 www-data 7u IPv4 7198 0t0 TCP *:www (LISTEN)