当前位置:论坛首页 > Linux面板 > 求助

【待反馈】pgsql 和 mysql 会冲突吗?

发表在 Linux面板4 小时前 [复制链接] 4 16

面板、插件版本:

                 Linux面板11.5.0

系统版本:

               系统:CentOS 7.6.1810 x86_64(Py3.7.9)
问题描述:

             之前运行 python+pgsql,一直正常,前天安装 php8.2+mysql5.6 环境,安装 wordpress 后,python 项目无法访问,pgsql 无法在面板启动,命令行启动后,仍然提示无法连接数据库。

使用道具 举报 只看该作者 回复
发表于 1 小时前 | 显示全部楼层
您好,看日志提示是没有权限导致的

2026-01-29 00:00:00.961 CST [18299] LOG:  could not open log file "/www/server/pgsql/logs/postgresql-2026-01-29.log": Permission denied

执行下面命令后,重启下pgsql
  1. chown -R postgres:postgres /www/server/pgsql
复制代码

如果还是不行,请留言
使用道具 举报 回复 支持 反对
发表于 4 小时前 | 显示全部楼层
pgsql 管理器 ——当前状态——报错——请求过程发现错误。


日志:
2025-12-04 10:22:22.183 CST [5755] LOG:  redirecting log output to logging collector process
2025-12-04 10:22:22.183 CST [5755] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 10:23:34.400 CST [6352] LOG:  redirecting log output to logging collector process
2025-12-04 10:23:34.400 CST [6352] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 11:31:37.779 CST [1602] LOG:  redirecting log output to logging collector process
2025-12-04 11:31:37.779 CST [1602] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 16:35:13.813 CST [4478] LOG:  redirecting log output to logging collector process
2025-12-04 16:35:13.813 CST [4478] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 16:41:04.877 CST [6959] LOG:  redirecting log output to logging collector process
2025-12-04 16:41:04.877 CST [6959] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 17:09:11.591 CST [18298] LOG:  redirecting log output to logging collector process
2025-12-04 17:09:11.591 CST [18298] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".
2026-01-29 00:00:00.961 CST [18299] LOG:  could not open log file "/www/server/pgsql/logs/postgresql-2026-01-29.log": Permission denied
2026-01-29 00:00:00.964 CST [18299] LOG:  disabling automatic rotation (use SIGHUP to re-enable)
2026-01-29 22:57:17.629 CST [9824] LOG:  redirecting log output to logging collector process
2026-01-29 22:57:17.629 CST [9824] HINT:  Future log output will appear in directory "/www/server/pgsql/logs".


使用道具 举报 回复 支持 反对
发表于 1 小时前 | 显示全部楼层
大炮运维V587 发表于 2026-1-30 10:06
您好,看日志提示是没有权限导致的

不行,搜索到类似的帖子,执行过。还是一样的日志。。。
使用道具 举报 回复 支持 反对
发表于 1 小时前 | 显示全部楼层
大炮运维V587 发表于 2026-1-30 10:06
您好,看日志提示是没有权限导致的

会不会是因为面板的 pgsql 和软件安装的 pg 不在一个目录,我看数据库有同步功能。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表