Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6546324
  • 博文数量: 1005
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 13071
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-25 20:19
个人简介

脚踏实地、勇往直前!

文章分类

全部博文(1005)

文章存档

2020年(2)

2019年(93)

2018年(208)

2017年(81)

2016年(49)

2015年(50)

2014年(170)

2013年(52)

2012年(177)

2011年(93)

2010年(30)

分类: Mysql/postgreSQL

2018-08-31 11:35:53


环境
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 --
阅读(3860) | 评论(0) | 转发(0) |
0

上一篇:ogg11.2安装

下一篇:pg_rman恢复数据库

给主人留下些什么吧!~~