当前位置:网站首页>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
边栏推荐
- FileZilla client download and installation
- Bigvision code
- [set theory] partial order relation (partial order relation definition | partial order set definition | greater than or equal to relation | less than or equal to relation | integer division relation |
- Ffmpeg one / more pictures synthetic video
- ffmpeg录制屏幕和截屏
- MongoDB复制集【主从复制】
- Nce detail of softmax approximation
- Avec trois. JS fait une scène 3D simple
- ffmpeg之 一张/多张图片合成视频
- VS 2019 配置tensorRT生成engine
猜你喜欢
Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!
渤、黄海的潮汐特征
Pat class B "1104 forever" DFS optimization idea
User value is the last word in the competition of mobile phone market
Lvgl usage experience
On the adjacency matrix and adjacency table of graph storage
递归:深度优先搜索
VS 2019配置tensorRT
MySQL MAC download and installation tutorial
UMI route interception (simple and rough)
随机推荐
Pytoch configuration
[embedded module] OLED display module
ffmpeg下载安装教程及介绍
Spark on yarn resource optimization ideas notes
MongoDB复制集【主从复制】
ffmpeg录制屏幕和截屏
VS 2019 配置tensorRT生成engine
Why does thread crash not cause JVM crash
Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
umi 路由拦截(简单粗暴)
labelimg生成的xml文件转换为voc格式
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
Ansible introduction [unfinished (semi-finished products)]
Pytorch multi card distributed training distributeddataparallel usage
MySQL practice 45 lecture [transaction isolation]
ffmpeg之 一张/多张图片合成视频
User value is the last word in the competition of mobile phone market
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf