摘要: systemctl mask iptables 设置为重启不开启systemctl mask ip6tables 设置为重启不开启systemctl mask ebtables 设置为重启不开启systemctl enables firewalld 设置为重启开启systemctl start fi 阅读全文
posted @ 2020-12-21 10:53 祝福满地 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1、修改主机名 hostnamectl set-hostname desktop.group8.example.com 2、命令修改ip nmcli connection modify eth0 ipv4.addresses 172.24.8.10/24 ipv4.gateway 172.24.8. 阅读全文
posted @ 2020-12-21 10:47 祝福满地 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 在启动菜单按e进入编辑,在末尾加入rd.break ,Ctrl+x启动 然后按照下面步骤修改mount –o remount,rw /sysrootchroot /sysrootecho “需要设置的密码” |passwd –stdin root 也可以password root 密码 touch 阅读全文
posted @ 2020-12-21 10:45 祝福满地 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash for i in {a..z} do smartctl -a /dev/sd$i | grep -i "drive temperature" smartctl -a /dev/sda$i | grep -i "drive temperature" done 阅读全文
posted @ 2020-12-21 10:40 祝福满地 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 删除注释行 :g/^#/d 删除空白行 :g/^\s*$/d :g 代表在全文档范围内 ^代表行的开始 \s*代表空白字符 $代表行的结束 d代表删除 阅读全文
posted @ 2020-12-21 10:37 祝福满地 阅读(629) 评论(0) 推荐(0) 编辑