10 3.1最新版后台首页无法访问,一直是502

网站其他页面正常,同一服务器下其他网站也正常,不知道为什么tipask管理后台进不去,一直都是502

错误日志显示:2017/03/27 20:02:15 [error] 27244#0: *411978 recv() failed (104: Connection reset by peer) while reading response header from upstream,


请先 登录 后评论

最佳答案 2017-04-25 02:30

您的php版本是否过低呢?建议PHP 5.5.9及以上,MySQL 5.0 及以上。

多站点请查看 Apachemod_rewrite 是否正常

如何开启:

开启Apache 的mod_rewrite功能:
在Apahce的配置文件httpd.conf中把#LoadModule rewrite_module modules/mod_rewrite.so
前的#去掉,改为LoadModule rewrite_module modules/mod_rewrite.so
在httpd.conf中找到下面这段

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

将AllowOverride None 改成 AllowOverride ALL

这样Apache的mod_rewrite就开启了。


如果您的服务器性能和资源较为充足请尝试这种办法(修改前请做好备份):如果版本没问题,对于PHP引起的(104: Connection reset by peer) while reading response header from upstream,这个问题,建议修改/usr/local/php/etc/php-fpm.conf 文件中【request_terminate_timeou】这个参数,去掉; 设置为:

request_terminate_timeout=0


然后保存重启php-fpm;

重启指令:killall php-fpm   然后 /etc/init.d/php-fpm

如果提示killall指令不存在:-bash: killall: command not found

执行如下命令安装就行:

debian、ubuntu系统下:

apt-get install psmisc

centos或、rhel系统下:

yum install psmisc


如果尝试还不行 建议调整为原来的数据。建议你把tipask设置到单独的服务器上



请先 登录 后评论

其它 0 个回答