一命令安装nginx

#!/bin/bash

yum -y install wget pcre-devel openssl openssl-devel libtool gcc automake autoconf libtool make

wget http://nginx.org/download/nginx-1.8.0.tar.gz

tar -zxvf nginx-1.8.0.tar.gz -C /usr/local

cd /usr/local/nginx-1.8.0 

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

make && make install‍

posted @ 2017-11-22 23:39  kingsy.lin  阅读(357)  评论(0编辑  收藏  举报