1进入Postgressql安装目录,进入子目录data
2)su postgres
3)openssl req -new -text -out server.req
4)openssl rsa -in privkey.pem -out server.key
5)rm privkey.pem
6)openssl req -x509 -in server.req -text -key server.key -out server.crt
7)chmod og-rwx server.key
8) pg_ctl start
原文链接:https://www.f2er.com/postgresql/197055.html