CentOS启动PostgreSQL的方法

不懂CentOS启动PostgreSQL的方法?其实想解决这个问题也不难,下面让小编带着大家一起学习怎么去解决,希望大家阅读完这篇文章后大所收获。

CentOS如何启动PostgreSQL

CentOS启动PostgreSQL使用systemctl start  postgresql-9.4.service命令即可。

推荐:postgresql教程

其他命令如下:

1、查看正在运行的服务

systemctl

2、启动,停止,重启服务

systemctl start  postgresql-9.4.service
systemctl stop postgresql-9.4.service
systemctl restart postgresql-9.4.service

CentOS启动PostgreSQL的方法

3、查看一个服务的状态

systemctl status postgresql-9.4.service

4、开机时启用一个服务

systemctl enable postgresql-9.4.service

5、开机时关闭一个服务

systemctl disable postgresql-9.4.service

6、查看服务是否开机启动

systemctl is-enabled postgresql-9.4.service

感谢你能够认真阅读完这篇文章,希望小编分享CentOS启动PostgreSQL的方法内容对大家有帮助,同时也希望大家多多支持亿速云,关注行业资讯频道,遇到问题就找亿速云,详细的解决方法等着你来学习!