当前位置:网站首页>Summary of common server error codes
Summary of common server error codes
2022-04-23 17:44:00 【Youyoujing】
One :500 error
1、500 Internal Server Error Internal service error : seeing the name of a thing one thinks of its function 500 An error is usually an unexpected situation on the server , And can't complete the request .
2、500 The possibility of error :
a、 Programming language syntax error ,web Script error
b、 Concurrent high time , Because of system resource constraints , You can't open too many files
3、 General solutions :
a、 see nginx、php Error log file for , So we can see the clue
b、 If it is too many open files, modify nginx Of worker_rlimit_nofile Parameters , Use ulimit Check the system open file limit , modify /etc/security/limits.conf, Still there too many open files, Then consider load balancing , Spread the traffic to different servers
c、 If it's a script problem , You need to fix script errors , Optimize the code
Two :502、504 error
1、502 Bad Gateway error 、504 Bad Gateway timeout gateway timeout
2、502、504 The possibility of occurrence
web Server failure 、 The program process is not enough
3、 General solutions
a、 Use nginx agent , And the back-end server fails ; perhaps php-cgi Not enough processes ;
php Long execution time , Or is it php-cgi The process is dead ; already fastCGI Usage and so on can lead to 502、504 error .
b、502 It means requested php-fpm Has been performed , But for some reason it didn't finish , Eventually lead to php-fpm Process termination .
Generally speaking , And php-fpm.conf The settings of , Also with the php Is related to the performance of the program , There's a lot of traffic on the site , and php-cgi Less processes .
In view of this situation 502 error , Just add php-cgi The number of processes .
Specifically, it is to modify /usr/local/php/etc/php-fpm.conf file , Will be one of the max_children A proper increase in value .
This data should be set according to the configuration of your server .
Generally one php-cgi Process accounting 20M Memory , You can calculate it yourself , Moderate increase .
/usr/local/php/sbin/php-fpm reload Then restart .
c、504 Said the timeout , That is, the request from the client did not arrive at the gateway , The request is not available for execution php-fpm.
And nginx.conf It also has something to do with the configuration of .
501 The server does not have the function to complete the request . for example , This code may be returned when the server does not recognize the request method .
503 The server is currently unavailable ( Maintenance due to overload or shutdown ). Usually , It's just a temporary situation .( Service not available )
505 The server does not support the HTTP Protocol version .(HTTP Version not supported )
Other related articles :
Web Server error code :https://blog.csdn.net/weixin_33778544/article/details/94172117
版权声明
本文为[Youyoujing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230550532129.html
边栏推荐
- stm32入门开发板选野火还是正点原子呢?
- Sword finger offer 22 The penultimate node in the linked list - speed pointer
- Collection of common SQL statements
- 587. 安装栅栏 / 剑指 Offer II 014. 字符串中的变位词
- 開期貨,開戶雲安全還是相信期貨公司的軟件?
- JS forms the items with the same name in the array object into the same array according to the name
- 92. 反转链表 II-字节跳动高频题
- 958. Complete binary tree test
- In embedded system, must the program code in flash be moved to ram to run?
- Generating access keys using JSON webtoken
猜你喜欢

440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题

Index: teach you index from zero basis to proficient use

Tell the truth of TS

For the space occupation of the software, please refer to the installation directory

48. 旋转图像

If you start from zero according to the frame

双闭环直流调速系统matlab/simulink仿真

958. 二叉树的完全性检验

SystemVerilog(六)-变量

Future usage details
随机推荐
On the method of outputting the complete name of typeID from GCC
Future 用法详解
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
干货 | 快速抽取缩略图是怎么练成的?
92. Reverse linked list II byte skipping high frequency question
2022年茶艺师(初级)考试模拟100题及模拟考试
编译原理 求first集 follow集 select集预测分析表 判断符号串是否符合文法定义(有源码!!!)
Land cover / use data product download
41. 缺失的第一个正数
2021长城杯WP
Kubernetes 服务发现 监控Endpoints
Listen for click events other than an element
uni-app黑马优购项目学习记录(下)
Ring back to origin problem - byte jumping high frequency problem
For the space occupation of the software, please refer to the installation directory
Double pointer advanced -- leetcode title -- container with the most water
[related to zhengheyuan cutting tools]
Sword finger offer 03 Duplicate number in array
102. 二叉树的层序遍历
Comparison between xtask and kotlin coroutine