[root@h102 codis]# bin/codis-proxy -c config.ini -L /tmp/proxy.log --cpu=2 --addr=0.0.0.0:19000 --http-addr=0.0.0.0:11000
_____ ____ ____/ / (_) _____
/ ___/ / __ \ / __ / / / / ___/
/ /__ / /_/ / / /_/ / / / (__ )
\___/ \____/ \__,_/ /_/ /____/
...
...
...
[root@h102 codis]# bin/codis-config proxy help
usage:
codis-config proxy list
codis-config proxy offline <proxy_name>
codis-config proxy online <proxy_name>
[root@h102 codis]# bin/codis-config -c config.ini proxy list
[
{
"addr": "h102.temp:19000",
"debug_var_addr": "h102.temp:11000",
"description": "",
"id": "proxy_1",
"last_event": "",
"last_event_ts": 0,
"pid": 36715,
"start_at": "2015-12-04 22:37:24.576758464 +0800 CST",
"state": "offline"
}
]
[root@h102 codis]# bin/codis-config -c config.ini proxy online proxy_1
{
"msg": "OK",
"ret": 0
}
[root@h102 codis]#
管理界面中的proxy状态
[root@h102 ~]# vim /etc/sysconfig/iptables
[root@h102 ~]# grep 1.000 /etc/sysconfig/iptables
-A INPUT -p tcp -m state --state NEW -m tcp --dport 19000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 11000 -j ACCEPT
[root@h102 ~]# /etc/init.d/iptables reload
iptables: Trying to reload firewall rules: [ OK ]
[root@h102 ~]# iptables -L -nv | grep 1.000
3 148 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:19000
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:11000
[root@h102 ~]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。