当前位置:网站首页>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
边栏推荐
- 394. 字符串解码-辅助栈
- ES6 new method
- Solution of Navicat connecting Oracle library is not loaded
- Ouvrir des contrats à terme, ouvrir des comptes en nuage ou faire confiance aux logiciels des sociétés à terme?
- How to sort the numbers with text in Excel from small to large instead of the first number
- 2022年茶艺师(初级)考试模拟100题及模拟考试
- 440. 字典序的第K小数字(困难)-字典树-数节点-字节跳动高频题
- SQL optimization for advanced learning of MySQL [insert, primary key, sort, group, page, count]
- Router object, route object, declarative navigation, programmed navigation
- Allowed latency and side output
猜你喜欢

48. Rotate image

How to change input into text

01 - get to know the advantages of sketch sketch

In embedded system, must the program code in flash be moved to ram to run?

102. 二叉树的层序遍历
Compare the performance of query based on the number of paging data that meet the query conditions

Index: teach you index from zero basis to proficient use

On the method of outputting the complete name of typeID from GCC

Client example analysis of easymodbustcp

JVM class loading mechanism
随机推荐
2021长城杯WP
How to use the input table one-way service to send (occupy less) picture files (body transmission)? FileReader built-in object involved
MySQL installation
In ancient Egypt and Greece, what base system was used in mathematics
Metaprogramming, proxy and reflection
Type judgment in [untitled] JS
Ring back to origin problem - byte jumping high frequency problem
Flask项目的部署详解
239. Maximum value of sliding window (difficult) - one-way queue, large top heap - byte skipping high frequency problem
198. Looting - Dynamic Planning
圆环回原点问题-字节跳动高频题
Double pointer advanced -- leetcode title -- container with the most water
Sword finger offer 22 The penultimate node in the linked list - speed pointer
402. Remove K digits - greedy
Abnormal resolution of Xiaomi camera
2022年上海市安全员C证操作证考试题库及模拟考试
48. Rotate image
SiteServer CMS5. 0 Usage Summary
JS forms the items with the same name in the array object into the same array according to the name
394. 字符串解码-辅助栈