我一直在尝试在这台机器上安装 postgres 10.5,尽管我设置了安装路径,但它总是每次都选择那个特定的目录。请专家帮助我。
[root@DBSRV01 postgres10upd]# ./postgresql-10.4-1-linux-x64.run --datadir /opt/postgres/10.5/data --prefix /opt/postgres/10.5/ --debuglevel 4 --serverport 5433 --superpassword postgrespwd --servicename postgres-10
----------------------------------------------------------------------------
Welcome to the PostgreSQL Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.
PostgreSQL Server [Y/n] :y
pgAdmin 4 [Y/n] :n
Stack Builder [Y/n] :n
Command Line Tools [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Please select a directory under which to store your data.
Data Directory [/opt/postgres/10.5/data]:
----------------------------------------------------------------------------
Please provide a password for the database superuser (postgres). A locked Unix user account (postgres) will be created if not present.
Password [********] :
Retype password [********] :
----------------------------------------------------------------------------
Please select the port number the server should listen on.
Port [5433]:
.
.
[222] en_US
.
.
[716] zu_ZA
[717] zu_ZA.iso88591
[718] zu_ZA.utf8
Please choose an option [1] : 222
----------------------------------------------------------------------------
Pre Installation Summary
The following settings will be used for the installation::
Installation Directory: /root/postgres10upd/y
Server Installation Directory: /root/postgres10upd/y
Data Directory: /opt/postgres/10.5/data
Database Port: 5433
Database Superuser: postgres
Operating System Account: postgres
Database Service: postgresql-10
Command Line Tools Installation Directory: /root/postgres10upd/y
Press [Enter] to continue:^Z
[3]+ Stopped ./postgresql-10.4-1-linux-x64.run --datadir /opt/postgres/10.5/data --prefix /opt/postgres/10.5/ --debuglevel 4 --serverport 5433 --superpassword Mam5pg@1 --servicename postgres-10
[root@DBSRV01 postgres10upd]#
我哪里做错了?为什么它一次又一次地选择那个目录?is 存储在某处并从那里读取,这就是为什么总是选择相同的目录?
PS:使用 LVM 将 SAN 挂载到 opt 目录。而且我已经成功地安装在其他两台具有相同硬件和软件配置的机器上,除了没有安装 SAN。
刚刚安装在另一台具有相同配置的计算机上 + SAN.. 工作得很好 [root@DBSRV02 postgres]# service postgresql-10 status pg_ctl: server is running (PID: 53224) /opt/postgres/10.5/bin/postgres " -D" "/opt/postgres/10.5/data"。
是不是因为安装曾经失败并且该位置从那时起就固定了。有人可以告诉我如何去除第一次安装失败的残留物。