最新消息:

linux安装nginx(ubuntu)

Linux笔记 Skiychan 1324浏览

ubuntu install nginx教程

ubuntu install nginx教程
download ngnix: http://nginx.org/en/download.html
nginx configure: http://nginx.org/en/docs/configure.html

如果出错提示缺少prce和zlib则要下载并解压(本人解压至 /usr/local)
pcre: http://www.pcre.org/
zlib: http://zlib.net/

提示错误:You need a C++ compiler for C++ support
则需要安装gcc: apt-get install build-essential

[install nginx]
./configure –with-pcre=../pcre-8.36 –with-zlib=../zlib-1.2.8 –sbin-path=/usr/local/nginx/nginx –conf-path=/usr/local/nginx/nginx.conf –pid-path=/usr/local/nginx/nginx.pid

转载请注明:SKIY开发笔记 » linux安装nginx(ubuntu)