共 36 篇文章 |
|
Logstash+ElasticSearch+Kibana处理nginx访问日志。[program:logstash_xxxx_shipper]command=/var/shell/logstash/bin/logstash -f /var/shell/logstash/configs/nginx-xxxx-shipper.confnumprocs=1autostart=trueautorestart=truelog_stdout=truelog_stderr=truelogfile=/data/logs/logstash/logstash_xxxx_access.log2. redis -> logstash... 阅10133 转90 评0 公众公开 15-05-12 09:40 |
Linux之TCPIP内核参数优化/proc/sys/net目录。所有的TCP/IP参数都位于/proc/sys/net目录下(请注意,对/proc/sys/net目录下内容的修改都是临时的,任何修改在系统重启后都会丢失),例如下面这些重要的参数:/proc/sys/net/ipv4/tcp_rmem./proc/sys/net/ipv4/tcp_wmem./proc/sys/net/ipv4/tcp_keepalive_time./proc/sys/net/ipv4/tcp_keepalive... 阅64 转0 评0 公众公开 15-03-06 13:53 |
web应用中listen函数的backlog默认会给我们内核参数的net.core.somaxconn限制到128,而nginx定义的NGX_LISTEN_BACKLOG默认为511,所以有必要调整这个值。比如nginx 定义NGX_LISTEN_BACKLOG默认到511, 却由于我们参数未曾优化会限制到128,只有128个connections can be queued in kernel listenqueue(by Igor Sysoev).define NGX_LISTEN_BACKLOG ... 阅9863 转9 评0 公众公开 15-03-06 13:49 |
这时我的一个同事仔细看了看 ./configure --help 然后让我看看下面这条原来是这样啊~~嗨--with-pcre force PCRE library usage--with-pcre=DIR set path to PCRE library sources原来这个路径指定的是 源码包所在的路径啊~~~晕,nginx为什么要去自己重现编译pcre 呢?指定源码包的路径吧 ./configure ....... 阅2291 转0 评0 公众公开 14-11-01 12:48 |
那么这样Location这个值肯定就是nginx或者Tomcat给搞出的问题了,这个地方nginx只是一个proxy server,那么response肯定是Tomcat发给nginx的,也就是说我们应该从Tomcat下手来分析这个问题。也就是说Tomcat在设计的时候是对这种代理服务器和Tomcat集成的情况做了考虑,80端口之所以没问题是因为port为空,浏览器会默认走80端口,如果nginx这代... 阅655 转0 评0 公众公开 13-08-09 10:03 |
Nginx如何处理一个请求,基于名字的虚拟主机基于名字的虚拟主机。server_name example.org www.example.org;在以上配置中,第一个被列出的虚拟主机即nginx的默认虚拟主机——这是nginx的默认行为。server { listen 80 default_server;例如,一个从192.168.1.1:80端口收到的访问www.example.com的请求将被监听192.168.1.1:80端口的默认虚拟主机处... 阅726 转0 评0 公众公开 12-12-27 09:23 |
nginx新版ssl握手不过的问题Nginx新版中启用了算法限制,只需将算法级别调低即可,或者直接启用全部算法。ssl_ciphers ALL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;ssl_ciphers.ssl_ciphers ciphers.This directive describes the list of cipher suites the server supports for establishing a secure connection.Since nginx ver... 阅1815 转6 评0 公众公开 12-12-11 08:58 |
max_clients = worker_processes * worker_connectionsBuffers.1. client_body_buffer_size: The directive specifies the client request body buffer size.For the overwhelming majority of requests it is completely sufficient a buffer size of 1K.3. client_max_body_size: Directive assigns the maximum accepted body size of clien... 阅1272 转7 评0 公众公开 12-12-05 13:24 |
nginx关于net.core.somaxconn设置的影响。比如nginx 定义NGX_LISTEN_BACKLOG默认到511, 却由于我们参数未曾优化会限制到128,只有128个connections can be queued in kernel listenqueue(by Igor Sysoev).#define NGX_LISTEN_BACKLOG 511/ls.backlog = NGX_LISTEN_BACKLOG;情景1,默认配置, net.core.somaxconn=128,服务器为nginx.情景2,调整配置... 阅5551 转7 评0 公众公开 12-11-29 09:43 |
2. 查看php-fpm.logtail -f /usr/local/php/logs/php-fpm.log复制代码无有价值信息3. 查看nginx错误日志tail -f /usr/local/nginx/logs/error.log复制代码无有价值信息4. 感觉问题可能出在了nginx的配置上,于是网上找关于nginx.conf 的配置说明,改来改去始终解决不了这难缠的502。 阅1582 转13 评0 公众公开 12-11-29 09:30 |