Java秒杀系统-1.5 linux 安装redis

1. 上传redis 压缩包

 2.解压

3.移动到 local 目录下重命名为redis

 

4. make  编译   4  表示4个cpu  ,加快编译。

5.make  install

 

6.vi 修改redis 的配置文件 redis.conf 

 7.默认只允许 bind 127.0.0.1 改为  分布式   bind 0.0.0.0

8.端口不需要修改

 

9. daemonnize  yes  允许后台执行

 

 10. 指定配置文件启动

11.ps  -ef   |   grep  redis   

 

 12. 启动 客户端

 

 13.设置密码     requirepass   123456

 

14.安装  ./install_server.sh

 设置配置文件位置

 

 

15.查看服务  chkconfig --list  | grep  redis

 

 16. 重新启动服务

 17.修改redis 服务名称

  vi   /etc/init.d/redis_6379

 

 18.登录客户端

发布了221 篇原创文章 · 获赞 8 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/oDianZi1234567/article/details/104084743