环境
OS:Centos 7
PG_RMAN:1.3.6
PG:10.4
1.下载地址
选择相应版本
我下载的是pg_rman-1.3.6-1.pg10.rhel7.x86_64.rpm
2.安装
[root@localhost soft]# rpm -ivh pg_rman-1.3.6-1.pg10.rhel7.x86_64.rpm
error: Failed dependencies:
libpq.so.5()(64bit) is needed by pg_rman-1.3.6-1.pg10.rhel7.x86_64
postgresql10-libs is needed by pg_rman-1.3.6-1.pg10.rhel7.x86_64
需要安装相关依赖
[root@localhost soft]# yum install
[root@localhost soft]# rpm -ivh pg_rman-1.3.6-1.pg10.rhel7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:pg_rman-1.3.6-1.pg10.rhel7 ################################# [100%]
3.检查是否安装成功
[root@localhost /]# find . -name pg_rman
./usr/pgsql-10/bin/pg_rman
[root@localhost /]# /usr/pgsql-10/bin/pg_rman --help
4.加入到postgres用户的环境变量
[postgres@localhost ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PG_HOME=/db/pgsql
PATH=$PG_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin:/usr/pgsql-10/bin
export PATH
--The End --
阅读(3996) | 评论(0) | 转发(0) |