您的位置:首页 > 运维架构 > Nginx

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: