华为云下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

  • 举例如下
    华为云下centos7.0+安装nginx

重启nginx

service nginx restart
上一篇:windonw10 ,python3.7安装gevent


下一篇:字节面试:SYN 包在什么场景下会被丢弃?