非常小众 Rotating Header Image

在Ubuntu环境的VPS上编译Nginx-0.8.53

1. 从Nginx官方下载Nginx-0.8.53 源码

wget http://nginx.org/download/nginx-0.8.53.tar.gz

2. 准备编译环境和相关依赖的库

sudo apt-get install build-essential
sudo apt-get install libpcre3-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev

3. 解压并开始编译

tar xvzf nginx-0.8.53.tar.gz
cd nginx-0.8.53
./configure
make

如果不出意外,在obj目录,可以看到nginx,运行检查版本,显示如下,

# ./nginx
# nginx version: nginx/0.8.53

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>