首页 > 数据库技术 > 详细

ProxySQL

时间:2018-08-23 14:51:35      阅读:159      评论:0      收藏:0      [点我收藏+]

安装

下载安装包:下载

下载完成后用系统包管理器安装程序:

wget https://github.com/sysown/proxysql/releases/download/v1.4.9/proxysql_1.4.9-ubuntu16_amd64.deb
dpkg -i proxysql_1.4.9-ubuntu16_amd64.deb

你也可以配置apt(deb/ubuntu)或者yum(centos/redhat/...)源来安装

Ubuntu / Debian:

配置repo

apt-get install -y lsb-release
wget -O - ‘http://repo.proxysql.com/ProxySQL/repo_pub_key‘ | apt-key add -
echo deb http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/$(lsb_release -sc)/ ./ \
| tee /etc/apt/sources.list.d/proxysql.list

安装

apt-get update
apt-get install proxysql OR apt-get install proxysql=version

Red Hat / CentOS:

配置repo

cat <<EOF | tee /etc/yum.repos.d/proxysql.repo
[proxysql_repo]
name= ProxySQL YUM repository
baseurl=http://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/\$releasever
gpgcheck=1
gpgkey=http://repo.proxysql.com/ProxySQL/repo_pub_key
EOF

安装

yum install proxysql OR yum install proxysql-version

ProxySQL

原文:https://www.cnblogs.com/geek-ace/p/9523615.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!