Redis单机安装

1.编译
复制代码
cd redis安装目录
make
复制代码
make install
2.修改配置文件redis.conf
bash 复制代码
#端口修改
port 6379
#后台进程启动 yes
daemonize yes # daemonize no
#注释掉 为了可以远程连接
#bind 127.0.0.1
#设置密码
requirepass pwd
3.启动
复制代码
./redis-server ../redis.conf

查看进程

复制代码
[root@localhost src]# ps -ef|grep redis
root       5866      1  0 14:14 ?        00:00:00 ./redis-server *:8379
root       5878   3171  0 14:14 pts/0    00:00:00 grep --color=auto redis
相关推荐
不染尘.3 分钟前
Linux的基本管理及命令(上)
linux·windows·ssh
杨了个杨89825 分钟前
XRDP 服务部署
运维·centos
米高梅狮子6 分钟前
12. SELinux 加固 Linux 安全
linux·运维·安全
weixin_462446237 分钟前
【原创实践】Windows 和 Linux 下使用 Python 3.10 搭建 PaddleOCRVL 识别图片并100%还原表格
linux·windows·python·飞浆
想摆烂的不会研究的研究生8 小时前
每日八股——Redis(1)
数据库·经验分享·redis·后端·缓存
Sumlll_8 小时前
Ubuntu系统下QEMU的安装与RISC-V的测试
linux·ubuntu·risc-v
猫头虎8 小时前
2025最新OpenEuler系统安装MySQL的详细教程
linux·服务器·数据库·sql·mysql·macos·openeuler
晚风吹人醒.10 小时前
SSH远程管理及访问控制
linux·运维·ssh·scp·xshell·访问控制·远程管理
Uncertainty!!11 小时前
Linux多用户情况下个别用户输入密码后黑屏
linux·远程连接
necessary65312 小时前
使用Clion查看linux环境中的PG源码
linux·运维·服务器