![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Nginx服务器
文章平均质量分 87
Field_Yang
这个作者很懒,什么都没留下…
展开
-
配置keepalived实现Nginx高可用(单主、双主模式)
配置keepalived实现Nginx高可用(单主、双主模式)一、前置条件:(1).Http作为后端web服务器:192.168.88.130:80 test.field.com[root@testconf.d]# cat /var/www/html/index.html<h1>Welcometo Http on test.field.com!!</h1>...原创 2018-04-24 00:39:29 · 3259 阅读 · 0 评论 -
nginx+php-fpm配置使用fastcgi模块和facgi_cache缓存
ngx_http_fastcgi_module fastcgi模块http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html The ngx_http_fastcgi_module module allowspassing requests to a FastCGI server.配置示例: location / {...原创 2018-04-21 14:46:13 · 3845 阅读 · 0 评论 -
Nginx配置使用upstream负载均衡和proxy_cache缓存
ngx_http_upstream_module模块:Nginx负载均衡模块Syntax: upstreamname { ... }Default: —Context: httpDefines a group of servers. Servers can listen ondifferent ports. In addition, servers list...原创 2018-04-20 23:41:35 · 5159 阅读 · 0 评论 -
Nginx反向代理时传递客户端真实IP&Nginx配置使用缓存机制&压力测试
win7客户端请求web服务,win7 ;nginx作为反向代理服务器:192.168.88.130:8080 test.field.com ;nginx作为后端web服务器:192.168.88.131:8080 www.field.com ;httpd作为后端web服务器:192.168.88.131:80 www.field.com ; 1、Nginx反向代理时传递客户...原创 2018-04-20 13:40:30 · 4453 阅读 · 0 评论 -
Nginx反向代理配置、动静分离配置及应用
前期准备:为便于测试域名访问,此处在虚拟机搭建DNS服务器。DNS主从服务器搭建参考:《DNS主从服务器配置实战解析及案例:https://blog.csdn.net/Field_Yang/article/details/78596944》关闭防火墙[root@testnginx]# service iptables stop启动DNS服务器[root@testnginx]...原创 2018-04-19 00:42:46 · 1743 阅读 · 0 评论 -
nginx环境下配置支持php5.6(nginx+PHP)
该文主要讲述在nginx环境下如何配置支持php5.6,主要分为三部分:配置安装PHP5.6.25,配置php-fpm组件,配置nginx支持PHP(请自行编译安装nginx) 1、配置安装PHP5.6.25[root@localhost share]# cp php-5.6.25.tar.gz/usr/local[root@localhost share]# cd /usr/loca...原创 2016-09-02 16:32:51 · 14807 阅读 · 0 评论 -
Nginx的启动、关闭和重启
Nginx的启动关闭和重启nginx可以通过信号指令控制进程,常用的信号有:QUIT:处理完当前请求后关闭进程HUP:重新加载配置,也就是关闭原有的进程,开启新的进程,此操作不会中断用户的访问请求,所以又称为平滑重启nginxUSR1:用于nginx的日志切换,也就是重新打开一个日志文件,每天要生成一个新的日志文件时,可以使用该信号控制。USR2:平滑升级可执行程序WINC...原创 2016-09-01 17:37:56 · 2451 阅读 · 0 评论 -
PHP5.6中php-fpm的配置、启动、关闭和重启
该文主要讲述:如何配置php-fpm、常见报错解决方法和php-fpm的启动、关闭和重启。LNMP环境中的nginx是不支持php的,需要通过fastcgi插件来处理有关php的请求。而php需要php-fpm这个组件提供该功能。在php5.3.3以前的版本php-fpm是以一个补丁包的形式存在的,而php5.3.3以后只需在编译安装时使用–enable-fpm加载该模块即可,无需另行安装。...原创 2016-09-01 17:33:48 · 50732 阅读 · 1 评论 -
Nginx服务器配置文件nginx.conf实例详解
nginx配置文件主要分为六个区域:main(全局设置)、events(nginx工作模式)、http(http设置)、sever(主机设置)、location(URL匹配)、upstream(负载均衡服务器设置)。其中还有若干模块,如HttpGzip模块,stubstatus模块等等结构类似如下:mainevents { ....}http ...原创 2016-08-22 17:01:40 · 10279 阅读 · 0 评论