当前位置:网站首页>redis在服务器linux下的启动的相关命令(安装和配置)
redis在服务器linux下的启动的相关命令(安装和配置)
2022-07-03 03:29:00 【南风~古草】
1、在redis官网下载安装包
2、将安装包上传到FianlShell
3、建好对应文件路径,切换至安装包所在文件夹下
输入命令:(里面的路径根据实际情况进行改变)
tar -zvxf redis-6.0.5.tar.gz -C /urs/local/redis
4、编译:(需要使用gcc,如果linux尚未安装gcc需要先进行安装)
使用命令:
yum install gcc-c++
5、然后进入redis-6.0.5,然后执行make
6、然后输入安装命令:
make PREFIX=/urs/local/redis install
7、客户端启动redis的命令(进入redis-6.0.5,然后进入src,在里面敲下列命令):
./redis-cli
8、后台启动redis的命令(同样在src下敲命令):
./redis-server
可以修改redis.conf的配置来让redis以守护进程的形式启动:
输入:
vim redis.conf
进入配置文件,找到daemonize no,将no改成yes,这样启动后不会有图形化界面。
如果需要远程连接可以取消保护模式,将protected-mode设置为no,同时将bind注释,这样连接的主机就不会有限制,可以远程连接。
9、检查redis运行情况:
ps -ef|grep redis
边栏推荐
- Don't use the new Dede collection without the updated Dede plug-in
- Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
- Stepping on pits and solutions when using inputfilter to limit EditText
- 将时间戳转为指定格式的时间
- [algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
- Mysql Mac版下载安装教程
- VS 2019 配置tensorRT生成engine
- PAT乙级“1104 天长地久”DFS优化思路
- Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
- docker安装及启动mysql服务
猜你喜欢
Pytorch轻量级可视化工具wandb(local)
Avec trois. JS fait une scène 3D simple
Tidal characteristics of the Bohai Sea and the Yellow Sea
[MySQL] the difference between left join, right join and join
FileZilla Client下載安裝
MongoDB复制集【主从复制】
为什么线程崩溃不会导致 JVM 崩溃
Ffmpeg one / more pictures synthetic video
Limit of one question per day
Pytoch configuration
随机推荐
MongoDB安装 & 部署
Vs 2019 configuration tensorrt
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
@The difference between Autowired, @qualifier, @resource
Using jasmine to monitor constructors - spying on a constructor using Jasmine
Nanning water leakage detection: warmly congratulate Guangxi Zhongshui on winning the first famous brand in Guangxi
UMI route interception (simple and rough)
Pytorch multi card distributed training distributeddataparallel usage
900W+ 数据,从 17s 到 300ms,如何操作
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions
小程序获取用户头像和昵称
Change and access of median value of listening object
Idea set method call ignore case
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
900w+ data, from 17s to 300ms, how to operate
com.fasterxml.jackson.databind.exc.InvalidFormatException问题
LVGL使用心得
[Chongqing Guangdong education] cultural and natural heritage reference materials of China University of Geosciences (Wuhan)
BigVision代码
【PyG】理解MessagePassing过程,GCN demo详解