yum install -y Percona-Server-devel-55.x86_64 Percona-Server-client-55.x86_64 Percona-Server-shared-55 jemalloc jemalloc-devel libevent libevent-devel openssl openssl-devel lua lua-devel bison flex libtool.x86_64
wget http://pkgs.fedoraproject.org/repo/pkgs/mingw-glib2/glib-2.42.0.tar.xz/71af99768063ac24033ac738e2832740/glib-2.42.0.tar.xz
tar Jxf glib-2.42.0.tar.xz
cd glib-2.42.0
./configure --prefix=/opt/websuite/dbproxy
make && make install
git clone https://github.com/Meituan-Dianping/DBProxy.git
cd DBProxy
运行./bootstrap.sh
make && make install
PS:
yum -y install git
然后 /etc/hosts
增加地址 ip github.com
如果提示没有权限
需要生成key然后到git去验证sshkey
[root@product-C etc]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
按Enter既可
找到生成的id.rsa.pub文件
cat id_rsa.pub
把内容复制到github的key里面即可