暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
ProxySQL官方文档.pdf
325
168页
1次
2022-10-18
100墨值下载
Getting started
Installation
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:
wget
https://github.com/sysown/proxysql/releases/download/v1.4.9/proxysql_1.4.9-ubu
ntu16_amd64.deb
dpkg -i proxysql_1.4.9-ubuntu16_amd64.deb
Alternatively you can also use the available repositories:
Ubuntu / Debian:
Adding repository:
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
Installing:
apt-get update
apt-get install proxysql OR apt-get install proxysql=version
Red Hat / CentOS:
Adding repository:
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
Installing:
yum install proxysql OR yum install proxysql-version
Service management
Once the software is installed, you can use the service command to control the
process:
Starting ProxySQL:
service proxysql start
Stopping ProxySQL:
service proxysql stop
Or alternatively via the Admin interface:
$ mysql -u admin -padmin -h 127.0.0.1 -P6032 --prompt='Admin> '
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.5.30 (ProxySQL Admin Module)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Admin> proxysql stop
Restarting ProxySQL:
service proxysql restart
Or alternatively via the Admin interface:
$ mysql -u admin -padmin -h 127.0.0.1 -P6032 --prompt='Admin> '
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.5.30 (ProxySQL Admin Module)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Admin> proxysql restart
Reinitializing ProxySQL from the config file (after first startup the DB file is used
instead of the config file):
service proxysql initial
Upgrades
Just install the new package and restart ProxySQL:
wget
https://github.com/sysown/proxysql/releases/download/v1.4.9/proxysql_1.4.9-ubu
ntu16_amd64.deb
dpkg -i proxysql_1.4.9-ubuntu16_amd64.deb
service proxysql restart
How to check the ProxySQL version
$ proxysql --version
ProxySQL version v1.4.9-1.1, codename Truls
A debug version has _DEBUG in its version string. It is slower than non-debug version,
but easier to debug in case of failures.
$ proxysql --version
Main init phase0 completed in 0.000146 secs.
ProxySQL version v1.4.9-1.1_DEBUG, codename Truls
of 168
100墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文档被以下合辑收录

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜