Installing ProxySQL Packages Directly
Released packages can be found here: https://github.com/sysown/proxysql/releases
Just download a package and use your systems package manager to install it:
1 2 3 |
wget https://github.com/sysown/proxysql/releases/download/v2.0.14/proxysql_2.0.14-ubuntu16_amd64.deb dpkg -i proxysql_2.0.14-ubuntu16_amd64.deb |
Installing ProxySQL from the available repositories:
Ubuntu / Debian:
Adding the repository:
1 2 3 4 5 |
apt-get install -y lsb-release wget -O - 'https://repo.proxysql.com/ProxySQL/repo_pub_key' | apt-key add - echo deb https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/$(lsb_release -sc)/ ./ \ | tee /etc/apt/sources.list.d/proxysql.list |
Note: For 1.4.x series releases use https://repo.proxysql.com/ProxySQL/proxysql-1.4.x/$(lsb_release -sc)/ ./
instead.
Installing ProxySQL:
1 2 3 |
apt-get update apt-get install proxysql OR apt-get install proxysql=version |
Red Hat / CentOS:
Adding the repository:
1 2 3 4 5 6 7 8 |
cat <<EOF | tee /etc/yum.repos.d/proxysql.repo [proxysql_repo] name= ProxySQL YUM repository baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/centos/\$releasever gpgcheck=1 gpgkey=https://repo.proxysql.com/ProxySQL/repo_pub_key EOF |
Note: For 1.4.x series releases use https://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/\$releasever
instead
Installing ProxySQL:
1 2 |
yum install proxysql OR yum install proxysql-version |
Amazon Linux Servers (AMI):
Adding the repository:
1 2 3 4 5 6 7 |
vi /etc/yum.repos.d/proxysql.repo [proxysql_repo] name= ProxySQL YUM repository baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/centos/latest gpgcheck=1 gpgkey=https://repo.proxysql.com/ProxySQL/repo_pub_key |
Note: For 1.4.x series releases use https://repo.proxysql.com/ProxySQL/proxysql-1.4.x/centos/latest
instead
Note: For Amazon Linux 1, use baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.0.x/centos/6
Installing ProxySQL:
1 2 |
yum install proxysql OR yum install proxysql-version |
Check out First steps after installing for useful post installation information.