linx下redis安装与配置
2020-05-18 本文已影响0人
Jeffery大侠
1一:安装主要参考:https://www.cnblogs.com/marvinn/p/11081106.html,https://redis.io/download
1::新建redis目录:mkdir redis
2:wgetlinux包:在 redis中执行:wget http://download.redis.io/releases/redis-4.0.9.tar.gz
3:解压:tar xzf redis-4.0.9.tar.gz
4:cd redis-4.0.9
5:make
6:cd redis-4.0.9/src
7:make install (root权限)
8:为了方便管理,将Redis文件中的conf配置文件和常用命令移动到统一文件中
9:cd redis
10:mkdir etc mkdir bin
11:mv redis.conf /redis/etc/
12:mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server /redis/bin/
13:执行redis-server 启动redis
14:cd redis-4.0.9/bin
15:./redis-server