首页> 实战笔录 >系统及服务器 >Apache Apache
apache 504 gateway time-out怎么解决
作者:小萝卜 2019-05-28 【 Apache 】 浏览 4060
简介网站在并发稍微大点的时候,就会出现504 gateway time-out请求超时,过会又好了
apache 504 gateway time-out怎么解决
设置php.ini
php ini max_execution_time 300
设置apache的配置文件 /usr/local/apache/conf/httpd.conf也可能是这个文件 /usr/local/apache/conf/extra/httpd-default.conf
# Timeout: The number of seconds before receives and sends time out.
Timeout 600
设置完成后,重启apache问题解决。如果这样设置还不管用的话,就得去优化代码了 比如查询优化 缓存等等。。
很赞哦! (1)