1 搭建docker

centos 下 参考文档搭建docker  https://www.cnblogs.com/brady-wang/p/11543237.html

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.1.1 /bin/true docker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:1.1.1

如果报错

docker: Error response from daemon: driver failed programming external connectivity on endpoint pmm-server (0590b182d1390597128b8d44ec7d488ec376e876326208aaad35480eeccadaa2):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.

下面链接解决

https://blog.csdn.net/qq_37674858/article/details/79761558

安装客户端

wget https://www.percona.com/downloads/pmm-client/pmm-client-1.1.1/binary/tarball/pmm-client-1.1.1.tar.gz

tar zxf pmm-client-1.1.1.tar.gz
cd pmm-client-1.1.1
./install

以上都是在mac下搭建的,在linux下搭建后,浏览器无法访问,pmm-admin连不上 不知道什么原因

[root@localhost pmm-client-1.1.1]# pmm-admin config --server 127.0.0.1:80

Unable to connect to PMM server by address: 127.0.0.1:80

Get http://127.0.0.1:80: dial tcp 127.0.0.1:80: getsockopt: connection refused

* Check if the configured address is correct.

* If server is running on non-default port, ensure it was specified along with the address.

* If server is enabled for SSL or self-signed SSL, enable the corresponding option.

* You may also check the firewall settings.

参考文档

https://www.cnblogs.com/yancun8141/articles/10837638.html

https://www.imooc.com/article/26728

最新文章

  1. 基于Socket客户端局域网或广域网内共享同一短信猫收发短信的开发解决方案
  2. WPF/Silverlight 下的图片局部放大
  3. [Nodejs]十分钟快速编写简单静态文件服务器
  4. js异步加载
  5. JAVA设计模式之责任链模式
  6. Redis安装及HA(High Availability)配置
  7. ocument的createDocumentFragment()方法
  8. Android闹钟【复杂版】
  9. Google Developers中国网站发布!(转)
  10. jQuery prop 全选和全不全
  11. VPS 上ubuntu 里搭建VPN服务器
  12. 【微信开发】PHP中奖概率经典算法实例
  13. C++queue容器学习(详解)
  14. git 版本控制的简单应用
  15. 运行 python *.py 文件出错,如:python a.py
  16. leecode第一百六十九题(求众数)
  17. 剪格子 dfs 蓝桥杯
  18. MySQL基础之 支持的数据类型
  19. Swift3 Scanner用法之判断是否数字、提取字符串里的数字
  20. SQL Server 访问URL 调用WebServer

热门文章

  1. linux基础:控制台
  2. 面试:为了进阿里,重新翻阅了Volatile与Synchronized
  3. 吴恩达《深度学习》-第五门课 序列模型(Sequence Models)-第一周 循环序列模型(Recurrent Neural Networks) -课程笔记
  4. 按正常步骤对github的仓库进行push自己本地的代码提示push rejected
  5. 【二叉树-所有路经系列(根->叶子)】二叉树的所有路径、路径总和 II、路径总和、求根到叶子节点数字之和(DFS)
  6. [LeetCode]347. 前 K 个高频元素(堆)
  7. Video.js + HLS 在production环境下webpack打包后出错的解决方案
  8. Centos6.5 离线 Openssh 升级
  9. netty学习心得1
  10. javascript操作多选下拉列表