摘要: 下载:https://github.com/Kong/lua-kong-nginx-module#install ./configure \ --prefix=/usr/local/openrestys/openresty-1.19.3.1 \ --with-cc-opt="-I/usr/local 阅读全文
posted @ 2021-06-29 17:05 豆腐居士 阅读(64) 评论(0) 推荐(0) 编辑
摘要: @SpringBootApplication public class NonInteractiveCliApp { /** * Configures non-interactive shell mode. */ @Configuration public static class NonInter 阅读全文
posted @ 2021-04-28 10:47 豆腐居士 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-04-16 14:18 豆腐居士 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Flags [ ]是包的标志,[P]表示是数据推送,比较常见的包格式如下: [S]:SYN,表示开始连接 [.]:没有标记,一般是确认 [P]:PSH,表示数据推送 [F]:FIN,表示结束连接 [R] :RST,表示重启连接 阅读全文
posted @ 2021-04-15 13:56 豆腐居士 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 查看tcp协议状态的命令: netstat -an | awk '/^tcp/ {++sta[$NF]} END {for(key in sta) print key,"\t",sta[key]}' 查询出大文件内容: ls -lh $(find / -type f -size +100M) 查看进 阅读全文
posted @ 2021-04-12 15:08 豆腐居士 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1. 500 Internal Server Error 产生原因:主要是PHP执行脚本过程中产生致命的一些错误。 nginx error中的记录: 2. 502 Bad Gateway 产生原因:fpm挂掉nginx链接不上、fpm不再接受请求(请求打爆)、fpm 执行超时(request_ter 阅读全文
posted @ 2021-04-08 18:17 豆腐居士 阅读(330) 评论(0) 推荐(0) 编辑
摘要: PHP timeout配置: 1. php.ini max_execution_time 2. php-fpm.conf request_terminate_timeout Nginx timout参数 1. fastcgi fastcgi_connect_timeout 60s; 与FastCGI 阅读全文
posted @ 2021-04-08 16:59 豆腐居士 阅读(742) 评论(0) 推荐(0) 编辑
摘要: PHP官方OPcache文档 https://www.php.net/manual/zh/book.opcache.php 使用下列推荐设置来获得较好的 性能: zend_extension=opcacheopcache.memory_consumption=128 opcache.interned 阅读全文
posted @ 2021-04-07 11:54 豆腐居士 阅读(231) 评论(0) 推荐(0) 编辑
摘要: process_control_timeout 设置子进程接受主进程复用信号的超时时间。可用单位:s(秒)、m(分)、h(小时)或者 d(天)。默认单位:s(秒)。参数缺省是 0。即reload的时候,如果有正在执行的请求进程便会等待该进程设置的时长。而其他进程直接就结束掉。等待正在执行的进程执行完 阅读全文
posted @ 2021-04-06 16:54 豆腐居士 阅读(786) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; default_type text/plain; server_name fpm.haosheng.vip; # Syntax: root path; # Default:root html; # Context: http, server, location 阅读全文
posted @ 2021-03-25 15:08 豆腐居士 阅读(236) 评论(0) 推荐(0) 编辑