当前位置:网站首页>liunx启动redis
liunx启动redis
2022-07-05 06:00:00 【一个风轻云淡】
1、进入redis安装目录,执行下面命令启动redis服务
./bin/redis-server redis.conf #开启服务
2、通过redis-cli测试redis是否可用,在redis安装目录执行下面命令:
./bin/redis-cli
注意:
这种启动方式不能退出控制台,如果退出,那么redis服务也会停止。如果想要redis以后台方式运行,需要修改redis的配置文件:redis.conf。将该配置文件中的daemonize no改为daemonize yes即可:
常见错误:
Could not connect to Redis at 127.0.0.1:6379: Connection refused
边栏推荐
- 1.13 - RISC/CISC
- One question per day 2047 Number of valid words in the sentence
- 【Rust 笔记】13-迭代器(中)
- The connection and solution between the shortest Hamilton path and the traveling salesman problem
- Sword finger offer 06 Print linked list from beginning to end
- Wazuh开源主机安全解决方案的简介与使用体验
- 卷积神经网络——卷积层
- 剑指 Offer 53 - II. 0~n-1中缺失的数字
- ALU逻辑运算单元
- CF1634E Fair Share
猜你喜欢
CCPC Weihai 2021m eight hundred and ten thousand nine hundred and seventy-five
Sword finger offer 06 Print linked list from beginning to end
[jailhouse article] jailhouse hypervisor
Solution to game 10 of the personal field
7. Processing the input of multidimensional features
剑指 Offer 35.复杂链表的复制
全排列的代码 (递归写法)
中职网络安全技能竞赛——广西区赛中间件渗透测试教程文章
网络工程师考核的一些常见的问题:WLAN、BGP、交换机
API related to TCP connection
随机推荐
剑指 Offer 04. 二维数组中的查找
剑指 Offer 53 - I. 在排序数组中查找数字 I
数据可视化图表总结(一)
2020ccpc Qinhuangdao J - Kingdom's power
2017 USP Try-outs C. Coprimes
884. Uncommon words in two sentences
Palindrome (csp-s-2021-palin) solution
Individual game 12
Kubedm series-00-overview
Annotation and reflection
剑指 Offer 05. 替换空格
2022 极术通讯-Arm 虚拟硬件加速物联网软件开发
Light a light with stm32
R语言【数据集的导入导出】
【Rust 笔记】17-并发(上)
Simple knapsack, queue and stack with deque
LaMDA 不可能觉醒吗?
leetcode-31:下一个排列
剑指 Offer 35.复杂链表的复制
How many checks does kubedm series-01-preflight have