摘要: chrony介绍 chrony 的优势: 更快的同步只需要数分钟而非数小时时间,从而最大程度减少了时间和频率误差,对于并非全天 24 小时运行的虚拟计算机而言非常有用 能够更好地响应时钟频率的快速变化,对于具备不稳定时钟的虚拟机或导致时钟频率发生变化的节 能技术而言非常有用 在初始同步后,它不会停止 阅读全文
posted @ 2021-01-19 14:07 浩浩呀 阅读(184) 评论(0) 推荐(0)
摘要: #修改sshd服务配置文件 vim /etc/ssh/sshd_config #PermitRootLogin prohibit-password 注释掉此行 PermitRootLogin yes 修改为下面形式 systemctl restart sshd 阅读全文
posted @ 2021-01-16 13:22 浩浩呀 阅读(102) 评论(0) 推荐(0)
摘要: 10.0.0.28机器上安装telnet服务 [root@CentOS8-8 ~]# yum -y install telnet-server 10.0.0.28机器上启动telnet服务 [root@CentOS8-8 ~]# systemctl enable --now telnet.socke 阅读全文
posted @ 2021-01-16 13:20 浩浩呀 阅读(239) 评论(0) 推荐(0)
摘要: #!/bin/bash# #********************************************************************#Author: will#QQ: 1052165684#Date: 2021-01-16#FileName: push_ssh_key 阅读全文
posted @ 2021-01-16 11:31 浩浩呀 阅读(155) 评论(0) 推荐(0)
摘要: 建立私有CA: OpenCA:OpenCA开源组织使用Perl对OpenSSL进行二次开发而成的一套完善的PKI免费软件 openssl:相关包 openssl和openssl-libs 证书申请及签署步骤: 1、生成证书申请请求 2、RA核验 3、CA签署 4、获取证书 配置文件: [root@c 阅读全文
posted @ 2021-01-14 16:54 浩浩呀 阅读(358) 评论(0) 推荐(0)
摘要: [root@centos8 ~]#getent shadow wang wang:$6$Y16DiwuVQtL6XCQK$DAQO4BhVbfQmaUMFWKR61hVwFvxk7J9U4pZaFcwf6nBwERUN6bL3wAL PonDRebk3CgooupeXHfRuFKRciUe6q.:1 阅读全文
posted @ 2021-01-14 11:46 浩浩呀 阅读(892) 评论(0) 推荐(0)
摘要: 实战案例1:centos 7 ,8 破坏MBR后进行恢复 dd if=/dev/zero of=/dev/sda bs=1 count=446 光盘进入救援模式 grub2-install --root-directory=/mnt/sysimage /dev/sda 实战案例2:entos 7 , 阅读全文
posted @ 2021-01-12 16:17 浩浩呀 阅读(88) 评论(0) 推荐(0)
摘要: 方法一 启动时任意键暂停启动 按e键进入编辑模式 将光标移动linux 开始的行,添加内核参数rd.break 按ctrl-x启动 mount –o remount,rw /sysroot chroot /sysroot passwd root #如果SELinux是启用的,才需要执行下面操作,如查 阅读全文
posted @ 2021-01-12 16:14 浩浩呀 阅读(45) 评论(0) 推荐(0)
摘要: 通过任务计划,可以让系统自动的按时间或周期性任务执行任务 环境准备 [root@centos8 ~]#yum -y install postfix [root@centos8 ~]#systemctl enable --now postfix 未来的某时间点执行一次任务 at 指定时间点,执行一次性 阅读全文
posted @ 2021-01-12 11:44 浩浩呀 阅读(373) 评论(0) 推荐(0)
摘要: 一。解答题 1、统计当前主机的TCP协议网络各种连接状态出现的次数 netstat -an | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}' netstat -nat | sed -nr '/^tcp/p' | sed -nr 's/ 阅读全文
posted @ 2021-01-07 17:29 浩浩呀 阅读(375) 评论(0) 推荐(0)