nginx安装-del
2015-10-10 13:04
627 查看
1.检测是否安装 rpm -q xxx
2. 安装nginx前,我们首先要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件,可通过如图所示命令进行检测
3.安装
yum install gcc-c++
yum -y install make gcc gcc-c++ ncurses-devel
yum install -y pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl--devel
4.下载nginx http://nginx.org/en/download.html 5.解压tar zxvf nginx-1.9.5.tar.gz
6.安装nginx
#cd nginx-1.4.1
#./configure --prefix=/usr/local/nginx
#make
#make install
7、启动服务
#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
8、停止服务
#/usr/local/nginx/sbin/nginx -s stop
9、查看端口占用情况
#netstat -tunlp
10.查找文件路径
whereis openssl
11.多个文件打包
tar czvf weshalong.tar.gz weishalong.newchinalife.com.crt weishalong.newchinalife.com.csr weishalong.newchinalife.com.key
http://www.2cto.com/os/201212/176520.html
2. 安装nginx前,我们首先要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件,可通过如图所示命令进行检测
3.安装
yum install gcc-c++
yum -y install make gcc gcc-c++ ncurses-devel
yum install -y pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl--devel
4.下载nginx http://nginx.org/en/download.html 5.解压tar zxvf nginx-1.9.5.tar.gz
6.安装nginx
#cd nginx-1.4.1
#./configure --prefix=/usr/local/nginx
#make
#make install
7、启动服务
#/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
8、停止服务
#/usr/local/nginx/sbin/nginx -s stop
9、查看端口占用情况
#netstat -tunlp
10.查找文件路径
whereis openssl
11.多个文件打包
tar czvf weshalong.tar.gz weishalong.newchinalife.com.crt weishalong.newchinalife.com.csr weishalong.newchinalife.com.key
http://www.2cto.com/os/201212/176520.html
相关文章推荐
- nginx 配置虚拟主机
- 【Nginx探究系列二】Nginx配置篇之客户Nginx白名单访问配置
- 为你的网站开启 gzip 压缩功能(nodejs、nginx)
- nginx 反向跳转
- NGINX 安装&配置
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- centos 6.5 配置nginx环境
- window系统中利用dos 重启 nginx
- nginx设置代理配置
- nginx详解
- ubuntu下安装nginx
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- nginx图片缓存和防盗链
- nginx伪静态rewrite规则写法实例
- windows下nginx安装、配置与使用
- LB集群之nginx
- NGINX开篇
- nginx编译安装和未编译模块的添加
- 源码编译Nginx&MySQL&PHP实现LNMP
- nginx各种常用的配置