ubuntu redis 基本配置

1. apt install redis-server

2. 如果需要密码

vim /etc/redis/reids.conf

requirepass your-password

systemctl restart redis-server.service

3. 如果需要外网访问

vim /etc/redis/redis.conf

bind 0.0.0.0

systemctl restart redis-server.service

你可能感兴趣的:(ubuntu redis 基本配置)