Codis 基础6

2022-03-22 16:22:38 浏览数 (3)

启动codis dashboard

使用 bin/codis-config dashboard 启动 dashboard

代码语言:javascript复制
[root@h102 codis]# bin/codis-config dashboard
2015/12/04 17:56:00 dashboard.go:160: [INFO] dashboard listening on addr: :18087
2015/12/04 17:56:00 dashboard.go:143: [INFO] dashboard node created: /zk/codis/db_test/dashboard, {"addr": "192.168.100.102:18087", "pid": 35057}
2015/12/04 17:56:00 dashboard.go:144: [WARN] ********** Attention **********
2015/12/04 17:56:00 dashboard.go:145: [WARN] You should use `kill {pid}` rather than `kill -9 {pid}` to stop me,
2015/12/04 17:56:00 dashboard.go:146: [WARN] or the node resisted on zk will not be cleaned when I'm quiting and you must remove it manually
2015/12/04 17:56:00 dashboard.go:147: [WARN] *******************************
...
...
...

会在当前终端启动一个端口为18087的web server


打开防火墙
代码语言:javascript复制
[root@h102 codis]# iptables -L -nv | grep  18087 
[root@h102 codis]# vim /etc/sysconfig/iptables
[root@h102 codis]# grep  18087  /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 18087 -j ACCEPT 
[root@h102 codis]# /etc/init.d/iptables  reload 
iptables: Trying to reload firewall rules:                 [  OK  ]
[root@h102 codis]# iptables -L -nv | grep  18087 
   0   0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:18087 
[root@h102 codis]# 
访问dashboard

0 人点赞