系统相关
首页 > 系统相关> > 华为云下centos7.0+安装nginx

华为云下centos7.0+安装nginx

作者:互联网

RPM方式安装

下载nginx

rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

安装nginx

yum install nginx

切换到nginx目录

cd /etc/nginx/conf.d/default.conf

修改default.conf

重启nginx

service nginx restart

标签:centos,default,noarch,nginx,conf,centos7.0,云下,rpm
来源: https://www.cnblogs.com/lwdesire/p/15430687.html