源码包
598078

禅道PMS系统是18.13已解决 悬赏5积分

提问者付先生 答案数1 阅读数34 发表时间2024-11-13 15:56:45

考虑到安全,通过xammp security设置了安全之后,突然访问禅道就弹出错误

15:53:42 ERROR: SQLSTATE[HY000] [2002] Connection refused in framework/base/router.class.php on line 2974, last called by framework/base/router.class.php on line 2882 through function connectByPDO.in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php on line 3066 when visitingFatal error: Uncaught exception 'EndResponseException' in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php:3521 Stack trace: #0 /opt/lampp/htdocs/zentaopms/framework/helper.class.php(323): EndResponseException::create('') #1 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3177): helper::end() #2 /opt/lampp/htdocs/zentaopms/framework/router.class.php(350): baseRouter->saveError(256, 'ERROR: SQLSTATE...', '/opt/lampp/htdo...', 3066) #3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', '/opt/lampp/htdo...', 3066, Array) #4 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3066): trigger_error('ERROR: SQLSTATE...', 256) #5 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(2974): baseRouter->triggerError('SQLSTATE[HY000]...', '/opt/lampp/htdo...', 2974, true) #6 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(2882): baseRouter->connectByPDO(Object(stdClass), 'MASTER') #7 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(433): baseRouter->connectDB in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php on line 352115:53:42 Uncaught exception 'EndResponseException' in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php:3521Stack trace:#0 /opt/lampp/htdocs/zentaopms/framework/helper.class.php(323): EndResponseException::create('')#1 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3177): helper::end()#2 /opt/lampp/htdocs/zentaopms/framework/router.class.php(350): baseRouter->saveError(256, 'ERROR: SQLSTATE...', '/opt/lampp/htdo...', 3066)#3 [internal function]: router->saveError(256, 'ERROR: SQLSTATE...', '/opt/lampp/htdo...', 3066, Array)#4 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3066): trigger_error('ERROR: SQLSTATE...', 256)#5 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(2974): baseRouter->triggerError('SQLSTATE[HY000]...', '/opt/lampp/htdo...', 2974, true)#6 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(2882): baseRouter->connectByPDO(Object(stdClass), 'MASTER')#7 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(433): baseRouter->connectDB in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php on line 3521 when visitingFatal error: Uncaught exception 'EndResponseException' in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php:3521 Stack trace: #0 /opt/lampp/htdocs/zentaopms/framework/helper.class.php(323): EndResponseException::create('') #1 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3177): helper::end() #2 /opt/lampp/htdocs/zentaopms/framework/router.class.php(350): baseRouter->saveError(1, 'Uncaught except...', '/opt/lampp/htdo...', 3521) #3 /opt/lampp/htdocs/zentaopms/framework/base/router.class.php(3032): router->saveError(1, 'Uncaught except...', '/opt/lampp/htdo...', 3521) #4 [internal function]: baseRouter->shutdown() #5 {main} thrown in /opt/lampp/htdocs/zentaopms/framework/base/router.class.php on line 3521

f_ac06db95e0eefefb667103aca3d96f9a&t=png

禅道版本:禅道开源版 18.13

安装包类型:源码包

操作系统:Ubuntu

客户端浏览器:

备注

已经找到方法,在 /opt/lampp/htdocs/zentaopms/config  配置文件中,修改my.php 的 $config->db->host = '127.0.0.1';  ,将 回环地址改为   localhost 后,恢复正常。

 

设置备注
内容
答案列表
2024-11-13 16:09:16

点赞,可以将帖子标记为已解决。

联系我们
联系人
张淑钧/高级客户经理
电话(微信)
13156280939
QQ号码
2082428410
联系邮箱
zhangshujun@chandao.com
返回顶部
张淑钧
高级客户经理
13156280939
2082428410
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。