毕设环境-Redis配置-Ubuntu

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#安装
sudo apt-get install redis-server

#修改,让Redis服务器被远程访问
sudo vi /etc/redis/redis.conf
#让Redis服务器被远程访问
#注释bind
#bind 127.0.0.1

#使用Redis的访问账号
#取消注释requirepass、后面的是密码
#requirepass laker#redis#server

#修改后,重启Redis服务器。
sudo /etc/init.d/redis-server restart



运行状态查看

1
2
3
4
ps -agx|grep redis
netstat -nlt|grep 6379
redis-cli
sudo vi /etc/redis/redis.conf
1
2
3



本文标题:毕设环境-Redis配置-Ubuntu

文章作者:

发布时间:2020年01月14日 - 14:16:45

最后更新:2020年02月06日 - 18:43:26

原始链接:http://laker.xyz/2020/01/14/Redis%E9%85%8D%E7%BD%AE-Ubuntu/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。