Linux服务器部署NTP,实现时间同步


1、安装ntpd同步网络时间: yum install -y ntpd 2、编辑 ntp.conf 文件: vim /etc/ntp.conf server ntp1.aliyun.com iburst server ntp2.aliyun.com iburst server ntp3.aliyun

CentOS7升级内核版本:


1、下载新的 rpm内核包: wget http://mirrors.coreix.net/elrepo-archive-archive/kernel/el7/x86_64/RPMS/kernel-lt-devel-5.4.226-1.el7.elrepo.x86_64.rpm wget http:

CentOS7替换yum源为阿里源


1、清除原来的yum源: cd /etc/yum.repos.d rm -rf ./* 2、下载阿里yum的reop源: wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo 或

docker-compose部署CoreDNS,实现解析企业内部域名效果


1、下载CoreDNS镜像: docker pull coredns/coredns:1.12.0 2、查看镜像是否下载下来: docker images 3、创建 CoreDNS目录:

Git提交代码


1、克隆Gitlab仓库: git clone http://192.168.248.131:30080/root/test.git 2、克隆GitHub仓库: git clone https://github.com/huanzi-qch/springBoot.git

ssh免密


1、在本地客户端生成公私钥: 1、创建公私钥: ssh-keygen 一直回车 直至生成公私钥

修改ssh端口号


1、编辑ssh配置文件: 1、ssh连接服务器 2、编辑配置文件: vim /etc/ssh/sshd_config Port 22 取消注释,端口号改为 xxxxx

Ubuntu 22.04.4 LTS系统升级open ssh版本修复漏洞


1、系统版本: Ubuntu 22.04.4 LTS 2、更新系统、安装依赖项: apt -y update apt install -y build-essential zlib1g-dev lib

部署prometheus、alertmanager、grafana、node-exporter、cadvisor(docker compose方式)


1、Github地址: https://github.com/zorn-zhao/docker-compose-prometheus 2、克隆代码到本地服务器: git clone https://github.com/zorn-zhao/docker-compose-

Prometheus、Alertmanager、node_export被扫出pprof漏洞


1、监控系统被扫除pprof漏洞: 1、pprof功能是go中用于性能分析的,但总部非说是漏洞让关闭。只能修改源码关闭pprof功能。 2、通过docker compose部署的,给docker传命令关闭不了。 2、在源码中关闭pprof功能: