nginx安装体验


nginx安装体验
 
闲来无事,装装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
./configure --sbin-path=/home/zhangyong/programes/nginx/nginx --conf-path=/home/zhangyong/programes/nginx/nginx.conf \
2
--pid-path=//home/zhangyong/programes/nginx/nginx.pid \
3
--with-pcre=/home/zhangyong/soft/pcre-8.21 \
4
--with-zlib=/home/zhangyong/soft/zlib-1.2.8 \
启动nginx 正常 呵呵 可以休息了天天进步一点点 总会更好的

相关内容

    暂无相关文章