s11 day linxu nginx 部署

1. 下载NGINX 

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

2.解压

tar xf nginx-1.14.0.tar.gz 

3. 编译安装三部曲 

./configure # 指定安装位置    指定用户                            指定模块

       --prefix =/app/nginx-1.14.0    --user=                 --group 

make 

make install

4.开启服务

扫描二维码关注公众号,回复: 2843811 查看本文章

5.关闭防护墙

chkconfig iptables off  

永久关闭。
chkconfig|grep ipt
vim /etc/selinux/config

4. 测试 

curl 10.10.0.1

猜你喜欢

转载自www.cnblogs.com/mengbin0546/p/9499172.html
今日推荐