Linux下root用户无法启动pgsql,授权777 权限过大也无法启动

Linux下root用户无法启动pgsql,授权777 权限过大也无法启动

1)创建postgres用户

   groupadd postgres //用户

   useradd postgres -g postgres

   passwd postgres bjca2012 //密码

2)设置用户和权限

   命令:chown -R postgres:postgres /opt/pgsql

   命令:chmod -R 0700 /opt/psql/data

   切换postgres启动

   命令:su postgres

   命令:/opt/pgsql/bin/postmaster -D /opt/pgsql/data &
————————————————
版权声明:本文为CSDN博主「u010786396」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u010786396/article/details/84031927

posted @ 2022-01-22 15:09  ★行者尚★  阅读(655)  评论(0编辑  收藏  举报