nginx安装脚本

cd /etc/yum.repos.d/
rm -rf *
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum -y install gcc
cd ~
wget http://nginx.org/download/nginx-1.4.4.tar.gz
tar -zxvf  nginx-1.4.4.tar.gz
cd nginx-1.4.4
./configure --without-http_rewrite_module --without-http_gzip_module
make&&make install
/usr/local/nginx/sbin/nginx
service iptables stop
chkconfig iptables off

运行命令

wget 172.16.94.83/nginx.sh
chmod +x nginx.sh
./nginx.sh

 

posted @ 2014-01-20 08:53  茗迹周  阅读(182)  评论(0编辑  收藏  举报