摘要:症状识别: uptime #负载情况 free -h #内存使用 df -h #磁盘使用空间 ip addr #网络接口 日志分析: 1 journalctl -xe #Systemd日志 2 /var/log/syslog #系统日志(Debian) 3 /var/log/messages #系统
阅读全文
摘要:Windows 右键查看文件属性,查看文件时间 1.5 问题排查 根据事件时间、传播方式进行问题的排查。 1.5.1 Windows 系统排查 1.5.1.1 文件排查 1. 检查桌面及各个盘符根目录下是否存在异常文件。根据文件夹内文件列表 时间进行排序,查找可疑文件; 2. 查看文件时间,创建时间
阅读全文
摘要:[root@lijun ~]# [root@lijun ~]#echo {1..10} num.txt 1 2 3 4 5 6 7 8 9 10 num.txt [root@lijun ~]#echo {1..10} > num.txt [root@lijun ~]#cat num.txt 1 2
阅读全文
摘要:1 [root@lijun ~]#ls 2 anaconda-ks.cfg创建0-9 10个文件 3 [root@lijun ~]#touch file{0..9}.conf 4 [root@lijun ~]#ls 5 anaconda-ks.cfg file0.conf file1.conf fi
阅读全文
摘要:1 [root@liun ~]# PS1="\[\e[1;5;41;33m\][\u@\h \W]\\$\[\e[0m\]" 2 [root@liun ~]#PS1="\[\e[1;41;33m\][\u@\h \W]\\$\[\e[0m\]" 3 [root@liun ~]#PS1="\[\e[1
阅读全文
摘要:1 [root@lijun ~]# date +%F 2 2022-10-03 3 [root@lijun ~]# date +"%F %T" 4 2022-10-03 16:52:38显示昨天的日期 5 [root@lijun ~]# date -d '-1 day' +%F 6 2022-10-
阅读全文
摘要:[root@centos7 ~]#echo $PS1 \[\e[1;1;40;34m\][\u@\h \W]\$\[\e[0m\] PS1的常用参数以及含义: \d :代表日期,格式为weekday month date,例如:"Mon Aug 1" \H :完整的主机名称 \h :仅取主机名中的第
阅读全文
摘要:vim /etc/default/grub 添加红线部分 grub2-mkconfig -o /boot/grub2/grub.cfg reboot 开机显示就可以将网卡名ens33换成eth0
阅读全文