当前位置:网站首页>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
边栏推荐
- PC uses wireless network card to connect to mobile phone hotspot. Why can't you surf the Internet
- 102. Sequence traversal of binary tree
- ros常用的函数——ros::ok(),ros::Rate,ros::spin()和ros::spinOnce()
- Read software engineering at Google (15)
- Learning record of uni app dark horse yougou project (Part 2)
- Excel quickly and automatically fills the contents of a row on a blank cell
- Uniapp custom search box adaptation applet alignment capsule
- Construction of functions in C language programming
- If you start from zero according to the frame
- Hcip fifth experiment
猜你喜欢

958. Complete binary tree test

Comparison between xtask and kotlin coroutine

Exercise: even sum, threshold segmentation and difference (two basic questions of list object)

2021 Great Wall Cup WP

2022年上海市安全员C证操作证考试题库及模拟考试

Double pointer advanced -- leetcode title -- container with the most water

On the problem of V-IF display and hiding

Compilation principle first set follow set select set prediction analysis table to judge whether the symbol string conforms to the grammar definition (with source code!!!)

stm32入门开发板选野火还是正点原子呢?

SystemVerilog (VI) - variable
随机推荐
Sword finger offer 22 The penultimate node in the linked list - speed pointer
In ancient Egypt and Greece, what base system was used in mathematics
SystemVerilog (VI) - variable
Add drag and drop function to El dialog
2022年上海市安全员C证操作证考试题库及模拟考试
Matlab / Simulink simulation of double closed loop DC speed regulation system
92. Reverse linked list II byte skipping high frequency question
402. 移掉 K 位数字-贪心
开期货,开户云安全还是相信期货公司的软件?
[appium] write scripts by designing Keyword Driven files
Come out after a thousand calls
MySQL advanced index [classification, performance analysis, use, design principles]
394. String decoding - auxiliary stack
Collection of common SQL statements
Chrome浏览器的跨域设置----包含新老版本两种设置
[related to zhengheyuan cutting tools]
Future 用法详解
48. Rotate image
Qt error: /usr/bin/ld: cannot find -lGL: No such file or directory
[difference between Oracle and MySQL]