当前位置:网站首页>宝塔Linux环境下redis开启多端口
宝塔Linux环境下redis开启多端口
2022-08-11 05:11:00 【kdsnace】
宝塔服务器Linux环境下redis开启多端口
步骤一:
#在reids目录下,复制一份redis.conf,
cp redis.conf redis81.conf
步骤二:修改conf内容
vim redis81.conf
#93行
port 6381 #修改端口为需要的端口
#159行
pidfile /www/server/redis/redis81.pid #修改为新的pid
#172行
logfile "/www/server/redis/redis81.log" #修改为新的logfile
#254行
dbfilename dump81.rdb #修改为新的rdb文件名
#---------------------------------------------
vim:语句
按 i 进入insert模式,修改对应数据
按 esc 退出修改模式
按 :wq 保存退出
按 :q 不保存退出
步骤三:在redis目录下
/www/server/redis/src/redis-server /www/server/redis/redis81.conf
#其中redis81.conf为修改的配置文件
步骤四:redis-cli -p 6381
结果:ping ok
边栏推荐
猜你喜欢
Switch and Router Technology-31-Extended ACL
C statement: data storage
Optimization is a kind of habit low starting point is the "standing near the critical"
Sub-database sub-table ShardingSphere-JDBC notes arrangement
[E-commerce operation] How to formulate a social media marketing strategy?
一个月闭关直接面进大厂,这份Android面试笔记是真的牛逼
2022年Android面试中最常问的问题是什么?
交换机和路由器技术-29-OSPF虚链路
【嵌入式开源库】MultiTimer 的使用,一款可无限扩展的软件定时器
HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities
随机推荐
FPGA engineer interview questions collection 111~120
paddlepaddle实现CS_CE Loss且并入PaddleClas
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
MFC 进程间通信(共享内存)
报表控件Stimulsoft报告中的数据矩阵条形码介绍
HAVE FUN | “SOFA 星球”飞船计划、源码解析活动最新进展
Zabbix builds enterprise-level monitoring and alarm platform
ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx
K8s Review Notes 7--K8S Implementation of Redis Standalone and Redis-cluster
【ARM】rk3399挂载nfs报错
关于CC 攻击
Sub-database sub-table ShardingSphere-JDBC notes arrangement
C语句:数据存储
Idea提升工作效率的必备技巧
Switch and Router Technology - 22/23 - OSPF Dynamic Routing Protocol/Link State Synchronization Process
Australia cyberspace security system construction
Project Practice Lecture 27: Application of Status Mode in Duplicate Brands
async(异步)和await的使用
交换机和路由器技术-34-动态NAT
走出迷宫的最短路径