美文网首页
Nginx安装

Nginx安装

作者: 杨凯飞 | 来源:发表于2018-11-15 16:14 被阅读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)

相关文章

网友评论

      本文标题:Nginx安装

      本文链接:https://www.haomeiwen.com/subject/huuyfqtx.html