环境 | 详细 |
---|---|
系统 | mac |
cms | october cms |
php环境 | valet nginx |
在我下载插件和主题时
开始报504 Gateway Time-out
我一想就知道肯定是nginx超时 更改一下参数就ok了
但是对于nginx不熟悉的我来说 也确实费了牛劲
-
nginx更改位置:
usr/local/etc/nginx/nginx.conf -
更改项:
keepalive_timeout 300
- 重启
sudo nginx -s reload
这就好了
耗费了我40分钟来回查找
续
查询
php-fpm.conf
valet-fpm.conf
request_terminate_timeou设置在900s左右,
而max_children值根据服务器内存大小和CGI请求数目设置为合理的数值,一般设置为800M左右。
上述方法不好使
最新方法
Leave your October CMS install as is at the error and your browser open.
Open Git Bash
cd ~
cd Homestead
vagrant ssh
sudo nano /etc/nginx/nginx.conf
Arrow down and add the following fastcgi_ lines
fastcgi_buffers 16 32k;
fastcgi_buffer_size 64k;
fastcgi_connect_timeout 600;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
sendfile on;
Type vagrant reload.
Select “Try Again” in the October CMS install within your existing browser.