If the database is not hosted on the same server as the Backstage app, the PostgreSQL port needs to be accessible (the default is 5432 or 5433)
PostgreSQL数据库默认端口为5432或5433,如果数据库与Backstage应用不在同一台机器上,需开放PostgreSQL端口。
① 安装PostgreSQL
参见 在Linux系统上安装PostgreSQL数据库
② 初始化
sudo /usr/pgsql-12/bin/postgresql-12-setup initdb
sudo systemctl enable postgresql-12
sudo systemctl start postgresql-12

③ 测试是否运行
安装完毕后,系统会创建一个数据库超级用户 postgres,密码为空。
这时使用以下命令进入 postgres,输出以下信息,说明安装成功:
[root@localhost yum.repos.d]# sudo -u postgres psql
psql (12.13)
输入 "help" 来获取帮助信息.
postgres=#
④ 修改密码
自行将sec