Redis Docker installation and normal installation

docker installation

docker run -d -p 6379:6379 --name redis -v /usr/local/docker/redis/redis.conf:/etc/redis/redis.conf -v /usr/local/docker/redis/data:/data redis --requirepass 123456

Normal installation

cd /usr/local/
wget http://download.redis.io/releases/redis-5.0.7.tar.gz
tar -zxvf redis-5.0.7.tar.gz
cd redis-5.0.7/
make
make install

Modify redis.conf

# 需要远程访问,注释掉绑定地址
# bind 127.0.0.1
# 以守护进程的方式运行
daemonize yes
# 设置连接密码
requirepass 123456

redis-server redis.conf

bloom filter

git clone https://github.com/RedisBloom/RedisBloom.git
cd RedisBloom/
git checkout 2.2
make
cd …/
redis-server redis.conf --loadmodule ./RedisBloom/redisbloom.so

Limiting

mkdir redis-cell
cd redis-cell/
wget https://github.com/brandur/redis-cell/releases/download/v0.2.4/redis-cell-v0.2.4-x86_64-unknown-linux-gnu.tar.gz
tar -zxvf redis-cell-v0.2.4-x86_64-unknown-linux-gnu.tar.gz
cd …/
redis-server redis.conf --loadmodule ./redis-cell/libredis_cell.so

Guess you like

Origin blog.csdn.net/qq_45594962/article/details/127609301