linux中如何使用yum安装docker
这篇文章主要介绍linux中如何使用yum安装docker,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!
yum -y install docker*
systemctl start docker
yum -y install mariadb-server
docker pull percona/pmm-server:1.0.6
docker create \
-v /opt/prometheus/data \
-v /opt/consul-data \
-v /var/lib/mysql \
-v /var/lib/grafana \
--name pmm-data \
percona/pmm-server:1.0.6 /bin/true
docker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:1.0.6
docker start pmm-server
docker stop pmm-server
docker start pmm-server
yum install pmm-client
pmm-admin config --server 10.15.5.203
pmm-admin add mysql:metrics --host 10.15.5.203 --user=sbtest --password=sbtest --port 55118 --disable-tablestats
pmm-admin list
清理被监控的选项:
pmm-admin stop mysql:queries
pmm-admin remove mysql:queries
服务端添加管理账户
docker ps
docker exec -it 2dcafd7fea44 /bin/bash
mysql
-- 创建对应的管理账户
mysql> create user 'sbtest'@'%' identified by 'sbtest';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on *.* to sbtest;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
以上是"linux中如何使用yum安装docker"这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!