在VM环境中安装和启动Postgresql
操作系统的使用
[vagrant@localhost data]$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
进行安装操作
yum -y install postgresql-server
数据库初始化
postgresql-setup initdb
查看数据库启动停止状态
systemctl status postgresql
开始 DB
systemctl start postgresql
自动启动设置
systemctl enable postgresql
请循此以作参照
以下是一些链接,它们提供有关CentOS上安装PostgreSQL的信息:
– https://www.hack-log.net/entry/centos-postgresql-install/
– https://qiita.com/LowSE01/items/84af05449f96dedd0edc
– https://wiki.postgresql.org/wiki/Developer_FAQ/ja
– https://qiita.com/uhooi/items/44ed9370740c7521dce4
– https://qiita.com/tomlla/items/9fa2feab1b9bd8749584