返回
顶部

修改密码

首页 > 数据库 > Redis > 正文
redis启动,停止,及端口占用处理方法

+1

-1

收藏

+1

-1

点赞0

评论0

启动进入etc目录下 启动redissudo ../bin/redis-server ./redis.conf停止 ./redis-cli shutdown 注释:这里关闭默认端口号 ./redis-cli -h 127.0.0.1 -p 7001 shutdown 注释:关闭指定端口号 实时查看日志 tail -f /usr/local/redis/log-redis.log //----------------端口占用…

启动

进入etc目录下 启动redis

sudo ../bin/redis-server ./redis.conf

停止 ./redis-cli shutdown 注释:这里关闭默认端口号 ./redis-cli -h 127.0.0.1 -p 7001 shutdown 注释:关闭指定端口号 实时查看日志 tail -f /usr/local/redis/log-redis.log //----------------端口占用问题处理 $ ps aux | grep redis Find the port that its running on.. In my case..

MyUser 8821 0.0 0.0 2459704 596 ?? S 4:54PM 0:03.40 redis-server *:6379

And then close the port manually

$ kill -9 8821

Re-run redis

$ redis-server
//------------------同一台机器启动多个实例redis
Sorry, the cluster configuration file nodes.conf is already used by a different Redis Cluster node. Please make sure that differen t nodes use different cluster configuration files.
需要在
redis.conf配置文件中配置
cluster-config-file nodes.conf
为不同名称

以上这篇redis启动,停止,及端口占用处理方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。

您可能感兴趣的文章:

  • Redis的配置、启动、操作和关闭方法
  • redis常用命令、常见错误、配置技巧等分享
  • redis中修改配置文件中的端口号 密码方法
  • CentOS系统下Redis安装和自启动配置的步骤

扫一扫在手机打开

评论
已有0条评论
0/150
提交
热门评论
相关推荐
数据库表连接的简单解释
  • 操作技巧
  • 2022-05-25 18:24
  • 22 0 0
+1
SQL 行转列,列转行
  • 操作技巧
  • 2022-05-25 18:24
  • 20 0 0
+1
一起看懂Redis两种持久化方式的原理
  • 操作技巧
  • 2022-05-25 18:24
  • 32 0 0
+1
为什么要用Redis
  • 操作技巧
  • 2022-05-25 18:24
  • 13 0 0
+1