【待反馈】pgsql 和 mysql 会冲突吗?
面板、插件版本:Linux面板11.5.0
系统版本:
系统:CentOS 7.6.1810 x86_64(Py3.7.9)问题描述:
之前运行 python+pgsql,一直正常,前天安装 php8.2+mysql5.6 环境,安装 wordpress 后,python 项目无法访问,pgsql 无法在面板启动,命令行启动后,仍然提示无法连接数据库。
您好,看日志提示是没有权限导致的
2026-01-29 00:00:00.961 CST LOG:could not open log file "/www/server/pgsql/logs/postgresql-2026-01-29.log": Permission denied
执行下面命令后,重启下pgsql
chown -R postgres:postgres /www/server/pgsql
如果还是不行,请留言 pgsql 管理器 ——当前状态——报错——请求过程发现错误。
日志:
2025-12-04 10:22:22.183 CST LOG:redirecting log output to logging collector process
2025-12-04 10:22:22.183 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 10:23:34.400 CST LOG:redirecting log output to logging collector process
2025-12-04 10:23:34.400 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 11:31:37.779 CST LOG:redirecting log output to logging collector process
2025-12-04 11:31:37.779 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 16:35:13.813 CST LOG:redirecting log output to logging collector process
2025-12-04 16:35:13.813 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 16:41:04.877 CST LOG:redirecting log output to logging collector process
2025-12-04 16:41:04.877 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2025-12-04 17:09:11.591 CST LOG:redirecting log output to logging collector process
2025-12-04 17:09:11.591 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
2026-01-29 00:00:00.961 CST 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 LOG:disabling automatic rotation (use SIGHUP to re-enable)
2026-01-29 22:57:17.629 CST LOG:redirecting log output to logging collector process
2026-01-29 22:57:17.629 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
大炮运维V587 发表于 2026-1-30 10:06
您好,看日志提示是没有权限导致的
不行,搜索到类似的帖子,执行过。还是一样的日志。。。 大炮运维V587 发表于 2026-1-30 10:06
您好,看日志提示是没有权限导致的
会不会是因为面板的 pgsql 和软件安装的 pg 不在一个目录,我看数据库有同步功能。 老吴的服务器 发表于 2026-1-30 10:24
会不会是因为面板的 pgsql 和软件安装的 pg 不在一个目录,我看数据库有同步功能。 ...
上面命令执行完,pgsql也无法启动?
大炮运维V587 发表于 2026-1-30 15:31
上面命令执行完,pgsql也无法启动?
面板显示启动,但是 pgsql 日志显示:2026-01-29 00:00:00.961 CST 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 LOG:disabling automatic rotation (use SIGHUP to re-enable)
2026-01-29 22:57:17.629 CST LOG:redirecting log output to logging collector process
2026-01-29 22:57:17.629 CST HINT:Future log output will appear in directory "/www/server/pgsql/logs".
大炮运维V587 发表于 2026-1-30 15:31
上面命令执行完,pgsql也无法启动?
是的,回复一直没有显示出来。 卸载 16.10 版本 pgsql ,重装,重新导入数据库,设置访问权限后恢复,究竟哪里出的问题也不知道。
页:
[1]