禅道PMS系统是18.13已解决 悬赏5积分
考虑到安全,通过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
禅道版本:禅道开源版 18.13
安装包类型:源码包
操作系统:Ubuntu
客户端浏览器:
禅道-阿龙
2024-11-13 16:09:16
点赞,可以将帖子标记为已解决。
回复
|
已经找到方法,在 /opt/lampp/htdocs/zentaopms/config 配置文件中,修改my.php 的 $config->db->host = '127.0.0.1'; ,将 回环地址改为 localhost 后,恢复正常。