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
相关推荐
Vcaker25 分钟前
Linux学习36-k8s集群升级及kube-vip高可用
linux·运维·学习
skywalk81631 小时前
Deepseek harness的4种模式 配置文件内容
linux·人工智能·ubuntu·deepseek·harness
沫璃染墨1 小时前
《从零入门Linux系统篇(五十一):线程篇·四——pthread线程库详解:从线程创建到终止与分离》
linux·运维·服务器·开发语言·c++·系统架构·线程
YYRAN_ZZU1 小时前
GMSL开发加解串配置介绍
linux·嵌入式硬件
云计算练习生2 小时前
什么是上下文切换?进程切换时 CPU 到底在保存什么
linux·服务器·操作系统·进程切换
用户0510122572962 小时前
RGA(二)——RK3588 的核拓扑与能力差异
linux·嵌入式
用户0510122572962 小时前
RGA(一)——基础知识
linux·嵌入式
qetfw2 小时前
Debian 综合服务实训:Apache2、Samba、LDAP、vsftpd 与 OpenVPN
linux·服务器·debian
用户0510122572962 小时前
RGA(三)——实宽高、虚宽高与对齐约束
linux·嵌入式
fastjson_2 小时前
帆软看板 - 问题收集
linux·前端·javascript