Centos7安装与配置Nginx
安装与配置 1.安装nginx yum intsall nginx sudo systemctl start nginx 启动服务 sudo firewall-cmd --permanent --zone=public --add-service=http 允许http通信 sudo firewall-cmd --permanent --zone=public --add-service=https允许https通信 sudo firewall-cmd --reload 重新加载配置 2.配置 在 /etc/nginx/conf.d 目录中新建一个my.conf文件,在此之前先将nginx.conf 配置文件中的server节点注释掉 server { listen 80; #映射端口 location / { proxy_pass http://localhost:5000; #监听端口 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connect...











