标题个人总结:Centos 7 安装postgresql-10.15.1 常见问题解决
如大家遇到其他问题,可以互相交流分享!!谢谢~~
1. 问题: postgresql is not in the sudoers file. This incident will be reported.
分析:新建的角色权限不足
解决办法:切换root用户,执行命令:visudo 或vi /etc/sudoers
(本质修改 /etc/sudoers文件)
su root
visudo 或vi /etc/sudoers
添加配置:postgresql ALL=(ALL) NOPASSWD:ALL
2. 问题: fixing permissions on existing directory /data/service/postgresql/data … initdb: could not change permissions of directory “/data/service/postgresql/data”: Operation not permitted
分析:文件夹或文件权限不够
chown -R postgresql.postgresql pgsql
3. 远程无法连接数据库
分析:配置 pgsql/data/postgresql.conf 和 pgsql/data/pg_hba.conf
解决办法:参考文章

本文总结了在Centos 7上安装postgresql-10.15.1时可能遇到的问题,包括sudoers文件权限不足、目录权限问题、远程连接配置以及端口连接错误,并提供了详细的解决方案。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



