Chinaunix首页 | 论坛 | 博客
  • 博客访问: 40201
  • 博文数量: 18
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 60
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-15 12:25
文章分类

全部博文(18)

文章存档

2018年(3)

2017年(3)

2016年(12)

我的朋友

分类: 系统运维

2016-05-19 14:52:47

我在 centos 5.8 下安装 nginx(1.2.5版本),过程没有很多网文说的那么顺利,最终在同事的指导下,完成了安装,这是完整的过程

yum install gcc*

useradd -M -s /sbin/nologin nginx

yum install pcre-devel.x86_64 

yum install openssl-devel.x86_64 

下载nginx 1.7.8
wget http://nginx.org/download/nginx-1.7.8.tar.gz

tar -zxvf nginx-1.7.8.tar.gz


cd nginx-1.7.8.tar.gz

./configure --user=nginx --group=nginx --prefix=/usr/local/nginx-1.7.8 --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module  --with-pcre


make

make install
安装完成后 cd /usr/local/nginx-1.7.8/sbin
启动nginx
./nginx
查看端口
netstat -tunlp

阅读(1095) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~