02 2023 档案
摘要:注意:首先安装好docker并且保证网络顺畅 docker安装_Steven-Russell的博客-CSDN博客 1、pull 镜像 docker pull postgres 2、启动postgres容器 docker run --name postgres \ -p 5432:5432 \ -e
阅读全文
摘要:1、查看防火墙状态 systemctl status firewalld 2、查看当前放开的端口信息 firewall-cmd --list-all 3、放开指定端口 firewall-cmd --add-port=8888/tcp 4、放开指定端口并且防止重启后失效 --permanent fir
阅读全文
摘要:1、安装ntpdate工具 yum -y install ntp ntpdate 2、同步网络时钟 ntpdate 0.asia.pool.ntp.org 3、写入硬件时间,防止重启导致时钟被重置 hwclock --systohc 4、若发现时间少12小时,则进行如下操作即可 5、备份/etc/l
阅读全文
摘要:1、pull 镜像 docker pull prom/prometheus docker pull prom/node-exporter 2、启动node-exporter,注意时间同步,避免查询不到指标 docker run -d -p 9100:9100 \ -v "/proc:/host/pr
阅读全文