要让postgresql开机自启动,一行命令即可:
sudo systemctl enable postgresql
如果启动有问题,可能是安装后没有初始化,可参考此文初始化:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-7
要让postgresql开机自启动,一行命令即可:
sudo systemctl enable postgresql
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-7