输入
su - postgres
报错
su: warning: cannot change directory to /home/postgres: No such file or directory
解决
#退出并转换到home目录下
exit
cd /home
#创建postgres文件夹
sudo mkdir /home/postgres
#设置权限
sudo chmod 755 /home/postgres
#初始化
sudo cp -a /etc/skel/. /home/postgres
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)