nginx安装体验
时间:2015-10-06 22:46 来源:linux.it.net.cn 作者:IT
闲来无事,装装nginx 顺便熟悉熟悉配置 。写篇小博客。
我的操作系统是centos
cento平台编译环境使用如下指令
安装make:
yum -y install gcc automake autoconf libtool make
安装g++:
yum install gcc gcc-c++
因为 nginx 需要pcre, zlib,前者为了重写rewrite,后者为了gzip压缩

我的目录是:
/home/zhangyong/soft
下载完 pcre, zlib后 configure 然后 make 最后 make install
然后安装 nginx
我的配置如下
1
2
3
4
./configure --sbin-path=/home/zhangyong/programes/nginx/nginx --conf-path=/home/zhangyong/programes/nginx/nginx.conf \
--pid-path=//home/zhangyong/programes/nginx/nginx.pid \
--with-pcre=/home/zhangyong/soft/pcre-8.21 \
--with-zlib=/home/zhangyong/soft/zlib-1.2.8 \
启动nginx 正常 呵呵 可以休息了天天进步一点点 总会更好的
(责任编辑:IT)
闲来无事,装装nginx 顺便熟悉熟悉配置 。写篇小博客。 我的操作系统是centos cento平台编译环境使用如下指令 安装make:
安装g++:
因为 nginx 需要pcre, zlib,前者为了重写rewrite,后者为了gzip压缩
我的目录是: /home/zhangyong/soft 下载完 pcre, zlib后 configure 然后 make 最后 make install 然后安装 nginx 我的配置如下
(责任编辑:IT) |