我一直试图在这台机器上安装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]#我哪里错了?为什么它一次又一次地选择该目录?是否存储在某个地方,并从那里读取,这就是为什么总是选择相同的目录?
PS:使用LVM将SAN挂载到opt目录。而且我已经成功地在另外两台机器上安装了相同的h/w & s/w配置,只是它们没有安装SAN。
刚刚安装在另一台具有相同配置+SAN的计算机上。运行良好的root@DBSRV02数据服务postgresql-10状态数据:服务器正在运行(PID: 53224) /opt/postgres/10.5/bin/postgres "-D“”/opt/postgres/10.5/pg_ctl“。
是不是因为安装曾经失败过,这个位置从此就固定了?有人能告诉我如何清除第一次安装失败的残留物吗?
发布于 2018-09-18 18:27:56
好了,伙计们,谢谢你们的帮助!我通过使用以下命令搜索目录找到了罪魁祸首
grep -rlw "postgres10upd“
然后我意识到有这个文件
/etc/postgres-reg.ini
带有一个条目
根安装目录=/
/postgres10upd/y
我将其编辑为"/opt/postgres/10.5“
然后在安装时没有任何问题,安装到我想要的位置。
https://stackoverflow.com/questions/52374611
复制相似问题