oneproxy的基本配置实例。
示例
#/bin/bash
#
export ONEPROXY_HOME=/usr/local/oneproxy
# valgrind --leak-check=full --show-reachable=yes \
${ONEPROXY_HOME}/oneproxy --keepalive --proxy-address=:3307 \
--vip-address=172.30.12.14/em1:0 \
--proxy-master-addresses=172.30.12.5:3306@data1 \
--proxy-master-addresses=172.30.12.4:3306@data2 \
--proxy-user-list=test/1378F6CC3A8E8A43CA388193FBED5405982FBBD3@test \
--proxy-part-tables=${ONEPROXY_HOME}/partdemo.txt \
--proxy-charset=gbk_chinese_ci \
--proxy-group-security=data1:0 \
--proxy-group-security=data2:0 \
--log-file=${ONEPROXY_HOME}/oneproxy.log \
--pid-file=${ONEPROXY_HOME}/oneproxy.pid