Commit 6392587f authored by 郑伟's avatar 郑伟

增加数据库配置详细步骤

parent b1bfc861
1 备份mysql,pg,rdb
ssh ubuntu@wanmeizhensuo.com
cd /var/lib/redis
sudo tar cvzf dump.tar.gz dump.rdb
ssh ubuntu@42.62.78.49
cd /data
pg_dump -U postgres -W -h 127.0.0.1 > pg.sql
mysqldump -u work -p -h 10.6.5.246 zhengxing > zhengxing.sql
tar cvzf sql.tar.gz .
ssh ubuntu@121.42.156.188
cd /data/dump/
scp ubuntu@42.62.78.49:/data/sql.tar.gz ./
scp ubuntu@wanmeizhensuo.com:/var/lib/redis/dump.rdb ./
tar xf sql.tar.gz
import database
2 backend停机
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment