摘要: 实战案例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 浩浩呀 阅读(92) 评论(0) 推荐(0)
摘要: 方法一 启动时任意键暂停启动 按e键进入编辑模式 将光标移动linux 开始的行,添加内核参数rd.break 按ctrl-x启动 mount –o remount,rw /sysroot chroot /sysroot passwd root #如果SELinux是启用的,才需要执行下面操作,如查 阅读全文
posted @ 2021-01-12 16:14 浩浩呀 阅读(52) 评论(0) 推荐(0)
摘要: 通过任务计划,可以让系统自动的按时间或周期性任务执行任务 环境准备 [root@centos8 ~]#yum -y install postfix [root@centos8 ~]#systemctl enable --now postfix 未来的某时间点执行一次任务 at 指定时间点,执行一次性 阅读全文
posted @ 2021-01-12 11:44 浩浩呀 阅读(388) 评论(0) 推荐(0)