Ubuntu 18 + Redis安装
?
1.安装命令:
?
opengis@gisserver20:~$ sudo apt-get install redis-server
?
?
2.查看tcp 连接
?
opengis@gisserver20:~$ sudo netstat -ap | grep 6379
?
?
3.修改配置
opengis@gisserver20:~$ sudo vim /etc/redis/redis.conf
?
bind 0.0.0.0 ::1
requirepass gis
?
4.重启服务
opengis@gisserver20:~$ sudo systemctl restart redis
opengis@gisserver20:~$
?
5.客户端登录
opengis@gisserver20:~$ redis-cli
127.0.0.1:6379> auth gis
OK
127.0.0.1:6379> exit
?
?
原文地址:https://www.cnblogs.com/gispathfinder/p/10471666.html
时间: 2024-11-08 06:27:41