多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
1. 下载文件redis6.2.14 ``` wget https://download.redis.io/releases/redis-6.2.14.tar.gz ``` 2. 解压并迁移到指定目录 ``` tar -zvxf redis-6.2.6.tar.gz mv redis-6.2.14 /usr/local/redis ``` 3. 进行编译 ~~~ cd redis make ~~~ 4. 安装redis ``` [root@MyServer redis]# make install cd src && make install make[1]: 进入目录“/usr/local/redis/src” CC Makefile.dep make[1]: 离开目录“/usr/local/redis/src” make[1]: 进入目录“/usr/local/redis/src” Hint: It's a good idea to run 'make test' ;) INSTALL redis-server INSTALL redis-benchmark INSTALL redis-cli make[1]: 离开目录“/usr/local/redis/src” ``` 5. 创建bin,etc文件 ``` mkdir bin mkdir etc ``` 6. 将redis.conf移动到etc下面 ``` mv redis.conf ./etc/ ``` 7. 将**mkreleasehdr.sh redis-benchmark redis-check-aof redis-cli redis-server**移动到bin下面 ``` cd src mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-cli redis-server /usr/local/redis/bin/ ``` 8. 启动redis ``` ./redis-server /usr/local/redis/etc/redis.conf ``` 9. 启动后查看进程/查看端口 ``` ps -ef|grep redis#查询进程号 netstat -ntlp #查看端口 ```