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
相关推荐
tntxia18 小时前
linux curl命令详解_curl详解
linux
扛枪的书生20 小时前
Linux 网络管理器用法速查
linux
顺风尿一寸1 天前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
XIAOHEZIcode1 天前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
唐青枫1 天前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
用户3074596982072 天前
Redis 延时队列详解
redis
烤代码的吐司君2 天前
Redis 数据结构 ZSet, BIT, HyperLogLog,Geo 空间数据
redis·后端
AlfredZhao3 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
leeyi4 天前
Checkpoint 机制:Agent 怎么在断电后接着跑
redis·aigc·agent
戴为沐4 天前
Linux内存扩容指南
linux