1.安装oneproxy
选择oneproxy6.2版本
wget http://www.onexsoft.com/software/oneproxy-rhel6-linux64-v6.2.0-ga.tar.gz
解压缩后放入/usr/local下,在目录下的oneproxy.service 用于对oneproxy的启动,停止,重启
修改demo.sh 的安装路径为/usr/local/oneproxy
运行demo.sh
可以把oneproxy.service 复制到/etc/init.d/oneproxy,修改里面的安装路径,
chkconfig oneproxy on
2.conf/proxy.conf配置文件
[oneproxy]
proxy-license = A2FF461456A67F28,D2F6A5AD70C9042D
user = oneproxy
keepalive = 1
event-threads = 4
log-file = log/oneproxy.log
pid-file = log/oneproxy.pid
proxy-charset = utf8_general_ci
# admin user:admin ;admin password:oneproxy
admin-username = admin
admin-password =4841E43E59A4337D61C5D14291D737EAA1A38B4E
#proxy-group-security = 0
proxy-httpserver = 0.0.0.0:8080
proxy-address = :3307
proxy-auto-readonly = 0
#proxy-slave-addresses.1 = db1:3306@default
proxy-master-addresses.1 =127.0.0.1 :3306@cluster_slog
proxy-group-policy = cluster_slog:master_only
#user :root ,password:root ;user:snow ,password:snow
proxy-user-list.1 = root/77A7916E10A51A9DC83F17390071DC003982F785@slog
proxy-user-list.2 = snow/15BA3A957175EE9897137F9E94E941CBAC8F3E68@slog
remote-address.1 = 192.168.33.11:4041
#proxy-part-template = conf/template.txt
#proxy-part-tables = conf/part.txt
proxy-part-tables = conf/part_slog.txt
proxy-table-map.1=tool_uselocation_log:cluster_slog
proxy-table-map.1=tool_operate_log:cluster_slog
proxy-table-map.1=gift_log:cluster_slog
#proxy-sequence-gro