#配置文件
vi config.my.cnf
[client]
user=root
password=123456
host=localhost
port=3306
# 运行
nohup ./mysqld_exporter --config.my-cnf=./config.my.cnf --collect.global_status --collect.info_schema.tables --collect.engine_innodb_status --collect.slave_status --web.listen-address=":9104" > ./out.log 2>&1 &
# 查看端口
netstat -tuln
#工作