Nginx安装

2018-11-15  本文已影响0人  杨凯飞

1、在安装Nginx之前,首先要安装基本库

基本库:gcc gcc-c++ autoconf pcre pcre-devel make automake 

工具包:vim wget httpd-tools

2、关闭iptables规则

首先查看 一下是否有iptables规则(命令:iptables -L  与  iptables -t nat -L)

如果有先关闭(命令:iptables -F  与 iptables -t nat -F)

3、下载

    a.首先进入官网(http://nginx.org)

   b. 点击 download 

   c.下载稳定版本 stable version

  d.根据不同的linux系统选择相应的yum,然后进行配置(请查看官网)

 e. 安装 (yum install nginx)

上一篇 下一篇

猜你喜欢

热点阅读