当前位置:网站首页>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
边栏推荐
- Commonly used functions -- spineros:: and spineros::)
- On the problem of V-IF display and hiding
- Advantages and disadvantages of several note taking software
- Sword finger offer 03 Duplicate number in array
- Oninput one function to control multiple oninputs (take the contents of this input box as parameters) [very practical, very practical]
- stm32入门开发板选野火还是正点原子呢?
- 開期貨,開戶雲安全還是相信期貨公司的軟件?
- Gets the time range of the current week
- [binary number] maximum depth of binary tree + maximum depth of n-ary tree
- JS parsing and execution process
猜你喜欢
双闭环直流调速系统matlab/simulink仿真
uni-app黑马优购项目学习记录(下)
JVM class loading mechanism
394. 字符串解码-辅助栈
Dry goods | how to extract thumbnails quickly?
On the method of outputting the complete name of typeID from GCC
470. Rand10() is implemented with rand7()
Future 用法详解
EasymodbusTCP之clientexample解析
958. Complete binary tree test
随机推荐
開期貨,開戶雲安全還是相信期貨公司的軟件?
读《Software Engineering at Google》(15)
编译原理 求first集 follow集 select集预测分析表 判断符号串是否符合文法定义(有源码!!!)
flink 学习(十二)Allowed Lateness和 Side Output
土地覆盖/利用数据产品下载
How to use the input table one-way service to send (occupy less) picture files (body transmission)? FileReader built-in object involved
Uniapp custom search box adaptation applet alignment capsule
440. The k-th small number of dictionary order (difficult) - dictionary tree - number node - byte skipping high-frequency question
This point in JS
Open futures, open an account, cloud security or trust the software of futures companies?
圆环回原点问题-字节跳动高频题
Hcip fifth experiment
Construction of functions in C language programming
QT modification UI does not take effect
239. 滑动窗口最大值(困难)-单向队列、大顶堆-字节跳动高频题
01 - get to know the advantages of sketch sketch
Solution of Navicat connecting Oracle library is not loaded
402. 移掉 K 位数字-贪心
为什么有些人说单片机简单,我学起来这么吃力?
Collection of common SQL statements