![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx
文章平均质量分 87
金麟十三少
擅长JAVA,系统架构设计
展开
-
centos 7 环境下nginx 1.14.2安装和启动
访问nginx官网http://nginx.org/en/download.htmlwgethttp://nginx.org/en/download.html下载nginx-1.14.2.tar.gz,解压压缩包tar -zxvfnginx-1.14.2.tar.gzrewrite 模块需要 pcre 库 ( 下载: http://www.pcre.org/ )ssl 功能需...原创 2019-04-16 21:28:03 · 848 阅读 · 0 评论 -
nginx: [emerg] directive "location" has no opening "{" in /usr/local/nginx/conf/nginx.conf:56
nginx: [emerg] directive "location" has no opening "{" in /usr/local/nginx/conf/nginx.conf:56这里设置location的时候,大括号前面需要留空格原创 2019-04-18 15:47:02 · 3172 阅读 · 0 评论 -
nginx 实现负载均衡、动静分离、反向代理案例
Nginx可以实现高并发情况下的负载均衡,有效地转发客户端对服务器的请求,使得后端服务器平稳运行。Nginx的三大功能:反向代理、动静分离、负载均衡1、反向代理:反向代理(ReverseProxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,简单来说就是真实的服务器不能直接被外...原创 2019-04-18 17:09:40 · 544 阅读 · 1 评论 -
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
nginx -s stop发生错误:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory),logs目录下缺少pid文件。解决方法:使用指定nginx.conf文件的方式重启nginx/usr/local/nginx/sbin/nginx -c /usr/l...原创 2019-07-05 15:43:05 · 11939 阅读 · 2 评论