• 技术文章 >数据库 >PostgreSQL

    CentOS如何启动PostgreSQL

    月亮邮递员月亮邮递员2020-03-30 10:53:32原创2992

    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

    微信截图_20200330104738.png

    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

    更多技术请关注Python视频教程

    专题推荐:centos postgresql
    品易云
    上一篇:PostgreSQL如何更改数据类型 下一篇:PostgreSQL中drop表失败怎么办

    相关文章推荐

    • Centos怎么用vim?• centos中vim不是命令的原因与解决方法

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网