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
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 基本配置
本文链接:https://www.haomeiwen.com/subject/oetbpftx.html
网友评论