当前位置:网站首页>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/redis4、编译:(需要使用gcc,如果linux尚未安装gcc需要先进行安装)
使用命令:
yum install gcc-c++
5、然后进入redis-6.0.5,然后执行make
6、然后输入安装命令:
make PREFIX=/urs/local/redis install7、客户端启动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
边栏推荐
- Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
- 文件重命名
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- 递归:深度优先搜索
- labelme标记的文件转换为yolov5格式
- Avec trois. JS fait une scène 3D simple
- Node start server
- Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
- User value is the last word in the competition of mobile phone market
- Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
猜你喜欢

Download and install node, NPM and yarn

Vs 2019 configuration du moteur de génération de tensorrt

VS code配置虚拟环境
![[pyg] understand the messagepassing process, GCN demo details](/img/8b/8490aac98fd2753e661f74e284f43d.png)
[pyg] understand the messagepassing process, GCN demo details

Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0

Why does thread crash not cause JVM crash
![MySQL practice 45 lecture [transaction isolation]](/img/a5/5420651d6be51e892976f02be8c43c.png)
MySQL practice 45 lecture [transaction isolation]

Lvgl usage experience

Tidal characteristics of the Bohai Sea and the Yellow Sea

Avec trois. JS fait une scène 3D simple
随机推荐
Mongodb master profile
umi 路由拦截(简单粗暴)
900W+ 数据,从 17s 到 300ms,如何操作
Hutool动态添加定时任务
[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
ffmpeg录制屏幕和截屏
float与0比较
Download and install node, NPM and yarn
Mongodb installation & Deployment
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
[MySQL] the difference between left join, right join and join
Summary of electromagnetic spectrum
递归:深度优先搜索
Tidal characteristics of the Bohai Sea and the Yellow Sea
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
FileZilla client download and installation
MySQL practice 45 lecture [transaction isolation]
[combinatorics] basic counting principle (addition principle | multiplication principle)
Pytoch configuration