当前位置:网站首页>Linux软件:如何安装Redis服务
Linux软件:如何安装Redis服务
2022-07-02 23:31:00 【首席摸鱼师】
第一步:将redis安装包上传到我们服务器里

第二步:解压文件并移动到/usr/local/redis目录内,没有则自行创建
1、解压
[[email protected] home]# tar -zxvf redis-4.0.8.tar.gz
2、移动
[[email protected] home]# mv redis-4.0.8 /usr/local/redis/
第三步:编译并安装
1、进入redis目录执行make命令编译
[[email protected] redis-4.0.8]# make

**此时遇到cc错误执行如下命令,重新编译即可
[[email protected] redis-4.0.8]# yum -y install gcc automake autoconf libtool make

[[email protected] redis-4.0.8]# make

**此时如遇到致命错误,命令后添加MALLOC=libc
[[email protected] redis-4.0.8]# make MALLOC=libc

2、安装redis
[[email protected] redis-4.0.8]# make install PREFIX=/usr/local/redis

3、启动redis
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

第四步:将redis启动改为后台运行
1、修改redis.conf配置文件将该配置文件中的daemonize no改为daemonize yes即可
[[email protected] redis-4.0.8]# vi redis.conf

2、重新启动并使用ps -ef | grep redis查看状态
[[email protected] redis-4.0.8]# ./src/redis-server redis.conf

[[email protected] redis-4.0.8]# ps -ef | grep redis

安装完毕!
百度网盘
提取码: 4kss
边栏推荐
- zhvoice
- 多进程编程(四):共享内存
- FRP reverse proxy +msf get shell
- [target detection] r-cnn, fast r-cnn, fast r-cnn learning
- TypeError: Cannot read properties of undefined (reading ***)
- Go custom sort
- 为什么网站打开速度慢?
- [IELTS reading] Wang Xiwei reading P1 (reading judgment question)
- Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
- NC50965 Largest Rectangle in a Histogram
猜你喜欢

奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习

Monitor container runtime tool Falco

秒杀系统设计

Mutual exclusion and synchronization of threads
![[target detection] r-cnn, fast r-cnn, fast r-cnn learning](/img/f0/df285f01ffadff62eb3dcb92f2e04f.jpg)
[target detection] r-cnn, fast r-cnn, fast r-cnn learning

Chinatelecom has maintained a strong momentum in the mobile phone user market, but China Mobile has opened a new track

Multiprocess programming (II): Pipeline

Is the multitasking loss in pytoch added up or backward separately?

FAQ | FAQ for building applications for large screen devices

setInterval定时器在ie不生效原因之一:回调的是箭头函数
随机推荐
请问大家在什么网站上能查到英文文献?
Where can I check the foreign literature of economics?
在线预览Word文档
英文论文有具体的格式吗?
node_ Modules cannot be deleted
秒杀系统设计
[Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
About the practice topic of screen related to unity screen, unity moves around a certain point inside
Sysdig analysis container system call
maya渔屋建模
redis21道经典面试题,极限拉扯面试官
Install docker and use docker to install MySQL
程序分析与优化 - 9 附录 XLA的缓冲区指派
免费自媒体必备工具分享
Program analysis and Optimization - 9 appendix XLA buffer assignment
Blue decides red - burst CS teamserver password
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
UART、RS232、RS485、I2C和SPI的介绍
Go custom sort
[golang syntax] map common errors golang panic: assignment to entry in nil map