centos 安装nginx
1,下载安装包到你安装的位置
cd /user/dev/
wget http://nginx.org/download/nginx-1.5.10.tar.gz
2,安装编译软件
yum install gcc-c++
yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
3,执行安装
tar -zxv -f nginx-1.5.10.tar.gz mv nginx-1.5.10 ngTemp cd ./ngTemp ./configure --prefix=/user/dev/nginx make make install
4,启动
cd /user/dev/nginx cd ./sbin ./nginx
5,测试运行
http://ip:80/