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
相关推荐
orion5721 小时前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
vivo互联网技术1 天前
从 10 分钟到 1 秒:ES 深度分页任意跳页的三轮优化实战
服务器·数据库·redis·elasticsearch·深度分页
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698031 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
tntxia3 天前
linux curl命令详解_curl详解
linux
扛枪的书生3 天前
Linux 网络管理器用法速查
linux
顺风尿一寸3 天前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux