redhat5.5 安装 nginx1.9.2
来源:互联网 发布:中国移动网络宽带 编辑:程序博客网 时间:2024/06/13 23:11
1、安装必备工具:
$ yum -y
install
gcc
gcc
-c++ autoconf automake
$ yum -y
install
zlib zlib-devel openssl openssl-devel pcre-devel
pcre: 用来作地址重写的功能。
zlib:nginx 的gzip模块,传输数据打包,省流量(但消耗资源)。
openssl:提供ssl加密协议。
2、新建一个系统级用户组和匿名用户,以及下面编译时使用
$
sudo
groupadd -r nginx
$
sudo
useradd
-s
/sbin/nologin
-g nginx -r nginx-user
3、下载Nginx:http://nginx.org/en/download.html
4、解压编译:
$
tar
-zxvf nginx-1.9.2.
tar
.gz
$
cd
nginx-1.9.2/
$ .
/configure
--user=nginx --group=nginx --prefix=/usr/local/nginx--with-http_stub_status_module--with-openssl=/usr/lib/openssl5、查看编译结果:
6、安装:
$
make
&&
make
install
6、启动:
$/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
7、关闭:
[root@localhost ~]# ps -ef | grep nginx
root 26834 1 0 16:08 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
root 26835 26834 0 16:08 ? 00:00:00 nginx: worker process
root 26857 26687 0 16:09 pts/1 00:00:00 grep nginx
root 26834 1 0 16:08 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
root 26835 26834 0 16:08 ? 00:00:00 nginx: worker process
root 26857 26687 0 16:09 pts/1 00:00:00 grep nginx
$kill -9 26834
$kill -9 26835
0 0
- redhat5.5 安装 nginx1.9.2
- centos7 安装 nginx1.9.2
- RedHat5.5安装Oracle10g
- redhat5.5 上安装svnserve
- U盘安装Redhat5.5
- RedHat5.5 安装Postgresql步骤
- redhat5.5 下安装tomcat
- VMware安装RedHat5.5注意事项
- vm6.5,redhat5安装oracle11gR2
- Debian下编译安装NginX1.5
- CentOS5安装Nginx1.4+PHP5.5 FastCGI
- CentOS5安装Nginx1.4+PHP5.5 FastCGI
- Nginx1.6 for centos6.5安装
- CentOS6.5下Nginx1.7.4安装记录
- CentOS6.5-64-bit安装nginx1.6.2
- centos6.5下安装nginx1.8.0
- nginx1.6 centos6.5 安装配置
- CentOS6.5下安装nginx1.10
- fork之后子进程到底复制了父进程什么
- Android Studio使用Lint进行代码检查
- Mac安装神器-brew之安装nginx
- Python之shell清屏
- SQL对Xml字段的操作
- redhat5.5 安装 nginx1.9.2
- 第三方框架/服务/类库介绍链接汇总
- 缓存是怎么工作的?
- 网站极限优化-百度评分49分提升到95分实战
- RESTClient
- 提交form表单,数据是怎么传的
- spring_mvc注解总结
- org.hibernate.InvalidMappingException: Could not parse mapping document from resource
- UVALive 3266 田忌赛马