这几天总是打不开b站,或者总要刷新好多次才能打开。打不开的时候就显示
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
URL: http://www.bilibili.com/video/av904375/index_2.html
Server: us-newyork-ubi
Date: 2015/07/27 22:57:28
Powered by Tengine
或者显示连接错误什么的,求问怎么回事
一般解决思路:查看nginx、php的错误日志文件,从而看出端倪。如果是too many open files,修改nginx的worker_rlimit_nofile参数,使用ulimit查看系统打开文件限制。
修改/etc/security/limits.conf,还是出现too many open files,那就要考虑做负载均衡,把流量分散到不同服务器上去了。如果是脚本的问题,则需要修复脚本错误,优化代码。