yum localinstall -y *.rpm
locate setup |grep post
postgresql-setup --initdb
systemctl start postgresql
systemctl status postgresql
su -l postgres
psql
\password
\du
CREATE USER chaojilaji WITH PASSWORD 'xxxxxx';
CREATE DATABASE spider_xxxxx OWNER chaojilaji;
GRANT ALL PRIVILEGES ON DATABASE spider_xxxxxx TO chaojilaji;
ALTER USER postgres with password 'xxxxxx';
psql -p 5432 -U chaojilaji spider_xxxxxxx
转载请注明原文地址:https://blackberry.8miu.com/read-2852.html