Redis - 事务(ACID)分析
前言 ACID,是指数据库管理系统(DBMS)在写入或更新资料的过程中,为保证事务(transaction)是正确可靠的,所必须具备的四个特性:原子性(atomicity,或称不可分割性)、一致性(consistency)、隔离性(isolation,又称独立性)、持久性(durability)。
常见支持事务的数据库或其部分引擎有:Oracle、DB2、MySQL…
可以看到上面的举例都是关系型 …
…前言 ACID,是指数据库管理系统(DBMS)在写入或更新资料的过程中,为保证事务(transaction)是正确可靠的,所必须具备的四个特性:原子性(atomicity,或称不可分割性)、一致性(consistency)、隔离性(isolation,又称独立性)、持久性(durability)。
常见支持事务的数据库或其部分引擎有:Oracle、DB2、MySQL…
可以看到上面的举例都是关系型 …
…迁移单机到单机 ./redis-shake sync.toml
迁移集群到集群 python3 cluster_helper.py ../redis-shake ../sync.toml
pip3 install redis
pip3 install toml
[source]
version = 3.2 # redis version, such as 2.8, 4.0, 5.0, 6.0, …问题: 系统部署到客户服务器上面,客户把服务器重启,导致redis的aof文件损坏,启动不了 解决: 查看日志文件,发现报错
~]# vim /ww/server/redis.log
[2716] 28 Apr 10:17:27.915 Bad file format reading the append only file: make a backup of your AOF file, …
服务端
1.配置/etc/rsyncd.conf
添加配置
[mygin]
path=/www/mygin/
read only = no
list = no
auth users = dong
secrets file = /etc/rsyncd.password
密码文件,xx:xxxx,用户名:密码,权限600
不配置gid默认用户nobody,需要配置的pat是nobody …
sed -i 's/[http:///git@/g](http:///git@/g)' */.git/config