当前位置:网站首页>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
边栏推荐
- Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
- VS克隆时显示403错误
- shardingsphere动态数据源
- Spark on yarn resource optimization ideas notes
- Nanning water leakage detection: warmly congratulate Guangxi Zhongshui on winning the first famous brand in Guangxi
- Summary of electromagnetic spectrum
- [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
- [mathematical logic] propositions and connectives (propositions | propositional symbolization | truth connectives | no | conjunction | disjunction | non truth connectives | implication | equivalence)
- The file marked by labelme is converted to yolov5 format
- Idea set method call ignore case
猜你喜欢

900w+ data, from 17s to 300ms, how to operate

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

numpy之 警告VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences

The idea cannot be loaded, and the market solution can be applied (pro test)

VS 2019配置tensorRT

Idea format code idea set shortcut key format code

Pat class B "1104 forever" DFS optimization idea

Pytorch轻量级可视化工具wandb(local)
![[MySQL] the difference between left join, right join and join](/img/d4/8684cd59cd1bd77e70bd4d7c7074c3.jpg)
[MySQL] the difference between left join, right join and join

递归:快速排序,归并排序和堆排序
随机推荐
[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 |
Hi3536c v100r001c02spc040 cross compiler installation
VS 2019安装及配置opencv
403 error displayed when vs cloning
【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(一)
Basic operations of mongodb [add, delete, modify, query]
Pytoch lightweight visualization tool wandb (local)
[mathematical logic] propositions and connectives (propositions | propositional symbolization | truth connectives | no | conjunction | disjunction | non truth connectives | implication | equivalence)
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
Yolov5 project based on QT
使用InputFilter限制EditText时踩坑及解决方案
PHP generates PDF tcpdf
用Three.js做一個簡單的3D場景
MySQL practice 45 lecture [transaction isolation]
Pytorch multi card distributed training distributeddataparallel usage
递归:快速排序,归并排序和堆排序
Solve high and send system Currenttimemillis Caton
[MySQL] the difference between left join, right join and join
Why does thread crash not cause JVM crash
Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte