当前位置:网站首页>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
边栏推荐
- 【Rust 笔记】17-并发(上)
- Daily question - Search two-dimensional matrix PS two-dimensional array search
- 对for(var i = 0;i < 5;i++) {setTimeout(() => console.log(i),1000)}的深入分析
- 【Jailhouse 文章】Jailhouse Hypervisor
- leetcode-6111:螺旋矩阵 IV
- 884. Uncommon words in two sentences
- Collection: programming related websites and books
- 【Jailhouse 文章】Look Mum, no VM Exits
- 卷积神经网络——卷积层
- 剑指 Offer 05. 替换空格
猜你喜欢
随机推荐
shared_ Repeated release heap object of PTR hidden danger
Daily question 1984 Minimum difference in student scores
2022年贵州省职业院校技能大赛中职组网络安全赛项规程
[cloud native] record of feign custom configuration of microservices
多屏电脑截屏会把多屏连着截下来,而不是只截当前屏
Control unit
How to adjust bugs in general projects ----- take you through the whole process by hand
个人开发的渗透测试工具Satania v1.2更新
常见的最优化方法
Smart construction site "hydropower energy consumption online monitoring system"
Fried chicken nuggets and fifa22
从Dijkstra的图灵奖演讲论科技创业者特点
Sword finger offer 05 Replace spaces
Wazuh开源主机安全解决方案的简介与使用体验
【Rust 笔记】13-迭代器(下)
【Jailhouse 文章】Look Mum, no VM Exits
Graduation project of game mall
Educational codeforces round 109 (rated for Div. 2) C. robot collisions D. armchairs
Appium自动化测试基础 — Appium测试环境搭建总结
全国中职网络安全B模块之国赛题远程代码执行渗透测试 //PHPstudy的后门漏洞分析









