1、首先打开redis官网

简介
     Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

下载
利用Linux命令 wget http://download.redis.io/releases/redis-5.0.5.tar.gz 进行下载

2、redis安装配置

1、直接cd到解压后的redis目录下(解压命令tar zxvf redis-5.0.5.tar.gz ),进行make,redis包已经做好其他处理
2、执行完成后,make PREFIX=/usr/local/redis install 指定安装目录(之前有一个提示:make test,用来检测系统是否符合)
3、执行完后,cd到redis目录cp /usr/local/redis-5.0.5/redis.conf ./ 在解压的redis包里边拷贝一个配置文件到安装目录
4、执行命令启动redis ./bin/redis-server ./redis.conf (前边是运行,后边是指定哪一个配置)
5、修改配置文件、让redis在后台运行,不占用命令窗口。修改redis.conf配置文件里边daemonize 为yes就可以了

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐