pg_ctl cannot be run as root 错误表明你尝试以 root 用户身份运行 PostgreSQL 的 pg_ctl 命令,但出于安全考虑,PostgreSQL 不建议以 root 用户身份运行其服务。以下是一些解决步骤和建议: 1. 确认 pg_ctl 无法以 root 身份运行的具体错误信息 当你尝试以 root 用户身份运行 pg_ctl 时,通常会看到类似以下的...
pg_ctl: cannot be runasroot Please login(using, e.g.,"su")asthe (unprivileged) user that will own the server process. 问题原因 用户错误的使用了root用户来执行命令。 --切换到操作系统数据库管理员用户下运行命令 解决方案 1 2 3 [root@db1 root~]# su - highgo [highgo@db1 ~]$ pg_ctl ...
/usr/lib/postgresql/12/bin/pg_ctl /usr/lib/postgresql/12/bin/pg_ctl start -D /var/lib/postgresql/12/main -l /var/log/postgresql/postgresql-12-main.log -s -o -c config_file="/etc/postgresql/12/main/postgresql.conf" exited with status 1: pg_ctl: cannot be run as root Please log...
pg_ctl: cannot be run as root 使用pg_ctl管理postgresql数据库报错: 原因是用户错误的使用了root用户来执行命令。 PG是禁止使用超级管理员来运行该命令的。 切换到操作系统数据库管理员用户下运行命令。 By 徐云鹤...使用pg_ctl启动数据库时报错 使用pg_ctl启动数据库时出现报错: 通过报错信息我们可以得知...