先后查阅几篇文章,就这篇文章最合适: https://www.cnblogs.com/sixiong/p/7048135.html
```
cd /www/server/php/56/etc/
vim php-fpm.conf
```
![](https://img.kancloud.cn/34/79/3479e0ca5869f246626030e07bbbb016_487x367.png)
之前报错:
![](https://img.kancloud.cn/18/46/18463290f08805d025db308e1709f4f9_843x54.png)
```
2019/12/24 14:44:48 [error] 26978#0: *25969269 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 39.108.1.43, server: www.dyhjw.com, request: "GET /mjcenter/789.html HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-56.sock:", host: "www.dyhjw.com"
2019/12/24 14:54:22 [error] 26979#0: *25997107 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 39.106.24.215, server: www.dyhjw.com, request: "GET /tag/1096/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-56.sock:", host: "www.dyhjw.com"
```
监控一下之后是否遇到此问题:
doing...
- (一)服务器架构
- ECS
- (二)宝塔安装
- 宝塔的webhook使用方法
- (三)配置更改
- php-fpm.conf
- proxy.conf
- nginx.conf
- (四)运维日志
- nginx日志
- nginx错误日志
- open socket
- fpm日志
- php-fpm错误日志
- seems busy
- slow.log
- 站点日志
- dyhjw.log
- 站点错误日志
- dyhjw.error.log
- 499错误
- recv()
- recv() failed
- recv() failed-第3种
- no live upstreams
- upstream prematurely
- cache_file_has_too_long_header
- FastCGI sent in stderr
- directory index of is forbidden
- recv() failed-第4种
- (五)站点配置
- appapi配置
- 用到redis的网站
- workman不能运行
- 快讯启动
- dyhjw伪静态
- (六)其他问题
- php-5.6重新启动报错
- 挂载盘命令
- 服务器怎么增加黑名单不让指定IP登录
- (七)自定义页面
- 自定义404页面
- 自定义502页面
- (八)问题
- 负载均衡的文件在哪里
- 站点的负载均衡服务器文件在哪里
- 其他知识
- Nginx--keepalive的配置
- Nginx反爬虫攻略:禁止某些User Agent抓取网站
- php脚本执行时间配置
- 运维记录