redis多实例配置
来源:互联网 发布:java软件理论基础 编辑:程序博客网 时间:2024/04/30 07:39
如果需要使用redis多实例。可以直接在安装目录中找到/etc/redis.conf文件,并且将其复制成redis6380.conf文件。后面的数字就是想设置的端口号。需要修改这个文件中的下面几句话:
# By default Redis does not run as a daemon. Use 'yes' if you need it. # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. daemonize yes # When running daemonized, Redis writes a pid file in /var/run/redis.pid by # default. You can specify a custom pid file location here. pidfile /var/run/redis/redis6380.pid # Accept connections on the specified port, default is 6379. # If port 0 is specified Redis will not listen on a TCP socket. port 6380 # Specify the log file name. Also the empty string can be used to force # Redis to log on the standard output. Note that if you use standard # output for logging but daemonize, logs will be sent to /dev/null logfile /var/log/redis/redis6380.log # The working directory. # # The DB will be written inside this directory, with the filename specified # above using the 'dbfilename' configuration directive. # # The Append Only File will also be created inside this directory. # # Note that you must specify a directory here, not a file name. dir /var/lib/redis6380/
保存之后,使用使用redis-server /etc/redis6380.conf就能启动了服务器。
0 0
- redis多实例配置
- redis 主从配置实例
- Redis 安装和配置实例
- linux下redis的多实例安装配置
- redis 安装 多实例配置 基本命令使用
- 基于keepalived、redis sentinel的多实例redis集群【1】---路由以及哨兵配置
- 基于keepalived、redis sentinel的多实例redis集群【2】---realserver配置
- redis多实例部署
- redis开多实例
- Redis 启动多实例
- CentOS Redis 多实例
- Redis教程(九):主从复制配置实例
- Redis教程(九):主从复制配置实例
- Redis单实例安装与配置
- Redis单实例安装与配置
- Redis单实例安装与配置
- Spring Boot中redis的配置实例
- 启动多个Redis实例
- 【gulp.js】中大型项目构建发布实例
- 安卓在AndroidStudio中集成百度云推送(改良版)
- 【中间件】(三):CORBA规范
- Bash shell 的算术运算有四种方式
- 缓存外部系统接口返回信息的方案
- redis多实例配置
- Spring实现AOP的方式
- 隐藏网页的滚动条的方法
- 用jQuery实现遍历集合中的文本动态隐藏消失
- 无入侵的开屏广告插入方式
- 深陷邪淫,是因为上天给你安排了一场凄惨的命运
- 通达OA2015列表控件用多行输入框使设置每行的显示高度
- iOS--错误集锦--svn status 170004
- Linux:SAMBA文件共享服务