Ubuntu Server安装Nginx

先安装build-essential
引用
sudo apt-get install build-essential


再安装pcre
引用

wget -c ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
tar -zxvf pcre-8.12.tar.gz
cd pcre-8.12
./configure
make
sudo make install

安装openssl
引用

sudo apt-get install openssl
sudo apt-get install libssl-dev


安装nginx
引用

wget -c http://nginx.org/download/nginx-1.0.0.tar.gz
tar -zxvf nginx-1.0.0.tar.gz
cd nginx-1.0.0
./configure --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-debug --with-http_gzip_static_module --add-module=../nginx_http_push_module-0.692
make
sudo make install

你可能感兴趣的:(C++,c,nginx,C#,ubuntu)