3

Redis启动多进程

 2 years ago
source link: https://blog.51cto.com/u_15414237/5682355
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Redis启动多进程

精选 原创

空城夜话 2022-09-16 11:28:04 博主文章分类:Linux ©著作权

文章标签 redis linux 文章分类 Linux 系统/运维 阅读数204

现部署一个新项目,需要用到redis,原先有一台服务器上已部署redis,我要做的是在部署redis的服务器上新增一个进程。

查看当前进程

ps -ef|grep redis

Redis启动多进程_linux

原先已启用redis进程。

进入配置文件目录。

Redis启动多进程_redis_02

复制一份新的配置文件修改部分配置。

修改端口号  port

修改     pidfile

修改     logfile

修改     dbfilename

新的端口如果要配置后台启动需要额外修改参数daemonize,把后面的no改为yes就不用在启动时带上&。

修改好后启动新的端口号进程。

/db/redis/bin/redis-server /db/redis/conf/6398.conf

再次查看进程。

Redis启动多进程_redis_03

可以看到新的进程已经开启。

  • 收藏
  • 评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK