生成tls证书
mkdir /certs
openssl req -x509 -nodes -newkey rsa:2048 -keyout /certs/server-key.pem -out /certs/server-cert.pem -days 365 -subj "/CN=test.maxscale.com" && openssl req -new -x509 -key /certs/server-key.pem -out /certs/ca-cert.pem -days 365 -subj "/CN=test.maxscale.com"
chown -R maxscale:maxscale /certs
更改配置文件
vim /etc/maxscale.cnf
[maxscale]
admin_host=0.0.0.0
admin_ssl_key=/certs/server-key.pem
admin_ssl_cert=/certs/server-cert.pem
admin_ssl_ca_cert=/certs/ca-cert.pem
重启服务
systemctl restart maxscale
访问8989端口,默认账户:密码
admin:mariadb
删除默认账户,增添新账户
maxctrl create user wakamizu wakamizu --type=admin
maxctrl destroy user admin
接下来就可以进行各种可视化管理啦