如何把阿里云上redis实例的数据迁移到另外的实例?
来源:互联网 发布:长城网络还原怎么卸载 编辑:程序博客网 时间:2024/06/07 10:24
参考:
https://help.aliyun.com/document_detail/43850.html
做好公网连接Redis
用 github 上的 redis 迁移工具 redis-migrate-tool 就可以解决。
系统:阿里云CentOS Linux release 7.2.1511
1、安装git
a.sudo yum install “Development Tools”
b.sudo yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel
c.wget https://Github.com/Git/Git/archive/v2.3.0.tar.gz
d.tar xvf v2.3.0.tar.gz
e.cd git-2.3.0
f.安装依赖包:
yum install libcurl-dev libcurl-devel
yum install expat-devel
g.make install
h.git –version
2、安装 autoconf 和 automake
curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure
make
sudo make install
cd ..
//here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure
make
sudo make install
3、编译生成 redis-migrate-tool
yum -y install bzip2
git clone https://github.com/vipshop/redis-migrate-tool.git
cd redis-migrate-tool
autoreconf -fvi
./configure
make
4、修改 redis-migrate-tool 的 rmt.conf 配置文件
[source]
type:rdb file
servers :
-/data/hins-xxxxxx.rdb
[target]
type:single
servers:
-xxxxxx.redis.rds.aliyuncs.com:6379
redis_auth:xxxxxx
[common]
listen: 0.0.0.0:8888
并拷贝一份rmt.conf 到 src文件夹下
5、完成迁移
src/redis-migrate-tool -c rmt.conf -o log -d
需要查看过程的话,使用:
src/redis-migrate-tool -c rmt.conf
- 如何把阿里云上redis实例的数据迁移到另外的实例?
- [大数据新手上路]“零基础”系列课程--如何将ECS上的Hadoop数据迁移到阿里云数加·MaxCompute
- 用数据交换方式把表数据迁移到分区表实例
- 把一个数据库的数据插入到另外一个数据库
- 如何把索引移动到另外的表空间
- 单实例到RAC数据迁移
- 如何从把mysql的数据迁移到oracle上来---------Oracle SQL Developer技术
- 将本地的mongodb迁移到阿里云的mongodb上
- ORACLE 从一个实例迁移到另外一个实例实战记录
- ORACLE 从一个实例迁移到另外一个实例实战记录
- EC2的实例如何从一个区迁移到另一个区?
- 单实例文件管理的数据库迁移到RAC+ASM
- 从MySQL到Redis,提升数据迁移的效率
- 从MySQL到Redis 提升数据迁移的效率
- 从MySQL到Redis,提升数据迁移的效率
- 腾讯云,阿里云 把网站的数据放到数据盘上
- 如何将git上的代码迁移到Coding上
- 查找某个数据,找到后把符合条件数据的一行复制到另外一个地方
- C++中的std详解
- UVa 156 STL之map的运用
- 2015中国十大域名注册商排名
- eureka配置修改
- linux中mysql如何创建存储过程
- 如何把阿里云上redis实例的数据迁移到另外的实例?
- fedora Samba配置
- 从Variance说起:回归、聚类、残差和方差
- 分页查询的重复数据问题
- android studio 注释模板
- IntelliJ
- UDP简单实现
- Hibernate Criteria的 Criterion,Projection,Restrictions等条件设置
- vue2.0翻页组件