基础配置nginx,并且解决其中出现的各种错误

http://www.seekl.net/

根据以上地址配置nginx可能出现的各种错误:

1 make: *** No targets specified and no makefile found. Stop.错误解决办法

https://blog.csdn.net/weiyangdong/article/details/79203712

2./configure: error: SSL modules require the OpenSSL library.

执行
yum -y install openssl openssl-devel
./configure

3 重启nginx之后出现错误Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

https://www.cnblogs.com/keefer/p/6188427.html

4 配置路由,只需要在nginx.conf里面文件
在这里插入图片描述

#路由的条件,当地址有cloud-mall就会自动路由到你需要的ip上
 location ^~ /cloud-mall {     
                proxy_pass http://你自己需要路由到的ip+端口号;
                proxy_redirect default;
     }

版权声明:本文为qq_35099584原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。