错误日志如下
代码如下 | 复制代码 |
cat /var/log/boot.log Welcome to CentOS Starting udev: /sbin/start_udev: line 299: /etc/sysconfig/network: No such file or directory [ OK ] Setting hostname localhost: [ OK ] Setting up Logical Volume Management: No volume groups found [ OK ] Checking filesystems /dev/sda2: clean, 26038/640848 files, 298339/2560000 blocks /dev/sda1: clean, 38/51200 files, 34323/204800 blocks /dev/sda5: clean, 3757/4464640 files, 390676/17835520 blocks [ OK ] Remounting root filesystem in read-write mode: [ OK ] Mounting local filesystems: [ OK ] Enabling /etc/fstab swaps: [ OK ] Entering non-interactive startup ip6tables: Applying firewall rules: [ OK ] iptables: Applying firewall rules: [ OK ] Starting auditd: [ OK ] Starting system logger: [ OK ] Retrigger failed udev events [ OK ] Starting sshd: [ OK ] /etc/rc3.d/S80postfix: line 34: /etc/sysconfig/network: No such file or directory /etc/rc3.d/S80postfix: line 73: [: =: unary operator expected |
该文件居然不存在….在新建后恢复正常
代码如下 | 复制代码 |
Python[root@localhost network-scripts]# cat /etc/sysconfig/network RKING=yes HOSTNAME= |
/etc/sysconfig/network 指出了NETWORKING=yew 或 no,由rs.sysinit读取,总体来说,记录这个的原因有点莫名其妙,如果直接导入一个系统就直接使用了,途中我差点误会是VMXNET2原因…
时间: 2024-10-27 01:32:23