将postgresql加入Linux启动项

来源:互联网 发布:托马斯游戏小游戏软件 编辑:程序博客网 时间:2024/05/16 08:28

要让postgresql开机自启动,一行命令即可:

sudo systemctl enable postgresql

如果启动有问题,可能是安装后没有初始化,可参考此文初始化:

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-7

0 0
原创粉丝点击