Nginx安装部署
1.下载安装包:
Nginx下载地址:http://sysoev.ru/nginx/nginx-0.8.54.tar.gz
PCRE??ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.12.tar.gz
opensslhttp://www.openssl.org/source/openssl-0.9.8k.tar.gz
zlibhttp://www.zlib.net/zlib-1.2.3.tar.gz
2.解压安装包
tar?-xzvfnginx-0.8.54.tar.gz
tar?-xzvfpcre-8.12.tar.gz
tar?-xzvfopenssl-0.9.8k.tar.gz
tar?-xzvfzlib-1.2.3.tar.gz
3.cd??nginx-0.8.54
./configure?--prefix=/home/zhangmao/nginx/nginx?--with-pcre=/home/zhangmao/nginx/pcre-8.12?--with-openssl=/home/zhangmao/nginx/openssl-0.9.8k?--with-zlib=/home/zhangmao/nginx/zlib-1.2.3??--with-cc-opt="-I?/home/zhangmao/nginx/openssl-0.9.8k/include/"??--with-http_ssl_module
请修改命令中相应安装目录路径!
4.make
make?install
5.设置Nginx访问目录
新建data文件夹,在data文件夹下新建play文件夹并分配相应的读写权限。