当前位置:网站首页>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
边栏推荐
- Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
- The file marked by labelme is converted to yolov5 format
- 900w+ data, from 17s to 300ms, how to operate
- navicat 导出数据库的表结构
- The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
- Docker install and start MySQL service
- el-tree搜索方法使用
- Convert binary stream to byte array
- Idea set method call ignore case
- Introduction à mongodb
猜你喜欢
随机推荐
[combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Mysql Mac版下载安装教程
labelme标记的文件转换为yolov5格式
监听对象中值变化及访问
Download and install node, NPM and yarn
FileZilla Client下載安裝
Application of derivative in daily question
[mathematical logic] normal form (conjunctive normal form | disjunctive normal form | major item | minor item | maximal item | minor item | principal conjunctive normal form | principal disjunctive no
Solve high and send system Currenttimemillis Caton
PAT乙级“1104 天长地久”DFS优化思路
numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences
Pytoch configuration
[combinatorics] basic counting principle (addition principle | multiplication principle)
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
Téléchargement et installation du client Filezilla
Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop
Ansible简介【暂未完成(半成品)】
解决高并发下System.currentTimeMillis卡顿
Convert binary stream to byte array








![MySQL practice 45 lecture [transaction isolation]](/img/a5/5420651d6be51e892976f02be8c43c.png)
