centos 7.2如何安装nginx 1.10.2.docVIP

  • 8
  • 0
  • 约1.23万字
  • 约 16页
  • 2017-05-13 发布于贵州
  • 举报
centos 7.2如何安装nginx 1.10.2

CentOS 7.2如何安装Nginx 1.10.2 ?  一、使用Yum安装(推荐)   使用Yum安装是推荐的方式,整体的流程非常的简单,也不容易出错,如果不需要什么特殊配置,建议使用Yum尽进行安装。   1、安装epel-release源并进行安装   yum install epel-release   yum update   yum install nginx   2、执行相关的应用操作   systemctl start nginx #启动   systemctl stop nginx #停止   systemctl restart nginx #重启   systemctl status nginx #查看运行状态   systemctl enable nginx #开机启动   3、设置防火墙   在启动完以后可能无法通过IP访问,需要进一步设置防火墙   firewall-cmd --permanent --zone=public --add-service=http   firewall-cmd --permanent --zone=public --add-service=https   firewall-cmd --reload   至此,安装完毕。   参考文章:https:///community/tutorials/how-to-install-

文档评论(0)

1亿VIP精品文档

相关文档