codis icon indicating copy to clipboard operation
codis copied to clipboard

配置错了redis ip

Open oliu opened this issue 10 years ago • 7 comments

在admin主页上手动添加一个group_2,并且添加一个redis地址,但是一不小心,redis的ip写错了。一保存完,admin页就崩掉了。 然后敲 bin/codis-config dashboard 报:2016/02/29 15:41:57 dashboard_apis.go:74: [ERROR] get redis stat failed 连接我的配错ip的redis超时。 想要移走这个错误的ip,敲codis-config server remove 报:2016/02/29 15:46:49 utils.go:49: [ERROR] can't connect to dashboard, please check 'dashboard_addr' is corrent in config file

这不是一个死循环吗?要移走那个ip需要dashboard起来,dashboard要启动就需要每个ip都通过……

oliu avatar Feb 29 '16 07:02 oliu

用 release 3.0 吧。

spinlock avatar Feb 29 '16 08:02 spinlock

用的就是最新版的。应该是3.0.2的吧

oliu avatar Feb 29 '16 08:02 oliu

最新的是指 master 分支的话,是 release 2.x,不是 3.x

spinlock avatar Feb 29 '16 08:02 spinlock

嗯,查看了一下,用go get -u -d github.com/CodisLabs/codis 这个命令弄的,安装后的版本,是2.8.21.那我改下。

oliu avatar Feb 29 '16 08:02 oliu

直接下载3.0的zip,解压后放到对应的目录下。执行make命令报:

[root@centos6 codis]# make make -j -C extern/redis-2.8.21/ make[1]: Entering directory `/usr/local/gowork/src/github.com/CodisLabs/codis/extern/redis-2.8.21' cd src && make all sh: ./mkreleasehdr.sh: 权限不够

oliu avatar Feb 29 '16 09:02 oliu

是不是 /usr/local/gowork/src/github.com/CodisLabs/codis/extern/redis-2.8.21 下面要求 root 权限?

spinlock avatar Mar 01 '16 02:03 spinlock

已经是用root权限去操作了

oliu avatar Mar 01 '16 02:03 oliu