美文网首页
centos7安装nginx

centos7安装nginx

作者: 路人甲_c520 | 来源:发表于2018-08-15 22:06 被阅读0次

第一步 - 添加Nginx存储库

要添加CentOS 7 EPEL仓库,请打开终端并使用以下命令:

yum install epel-release

第二步 - 安装Nginx

现在Nginx存储库已经安装在您的服务器上,使用以下yum命令安装Nginx :

yum install nginx

第三步 - 启动Nginx

Nginx不会自行启动。要运行Nginx,请输入:

systemctl start nginx

如果您正在运行防火墙,请运行以下命令以允许HTTP和HTTPS通信:

原文地址:https://blog.csdn.net/oldguncm/article/details/78855000

相关文章

网友评论

      本文标题:centos7安装nginx

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