/etc/sysconfig/network: No such file or directory

错误日志如下

 代码如下 复制代码

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

/etc/sysconfig/network: No such file or directory的相关文章

Linux中提示No such file or directory解决方法

  问题描述 解决方法 分析原因,可能因为我平台迁移碰到权限问题我们来进行权限转换 1)在Windows下转换: 利用一些编辑器如UltraEdit或EditPlus等工具先将脚本编码转换,再放到Linux中执行.转换方式如下(UltraEdit):File-->Conversions-->DOS->UNIX即可. 2)方法 用vim打开该sh文件,输入: [plain] :set ff 回车,显示fileformat=dos,重新设置下文件格式: [plain] :set ff=uni

cms_install.sh No such file or directory

出现 ./cms_install.sh: line 41: /usr/local/aegis/aegis_quartz/aegis_quartz: No such file or directory 的解决方案 将cms_install.sh内/usr/local/aegis/aegis_quartz/aegis_quartz 修改为 /usr/local/aegis/aegis_quartz/aegis_quartz.sh 如果再报错 无法创建文件夹可以执行 rm /usr/local/clo

MySQL中can't create PID file: No such file or directory错误的解决方法

风信网(ithov.com)原创文章:安装mysql完成之后,启动mysql报以下错误信息 [root@localhost mysql]# /usr/local/mysql/bin/mysqld_safe & 131206 22:50:00 mysqld_safe Logging to '/var/log/mysqld.log'. 131206 22:50:00 mysqld_safe Starting mysqld daemon with databases from /data/mysql/

studio-无法打开mysql_version.h":No such file or directory

问题描述 无法打开mysql_version.h":No such file or directory win7系统,visual studio2013 ,mysql5.5,在创建项目后已经把 mysql.h,libmysql.lib,libmysql.dll文件包含到项目文件下,可编译时出现如上问题: 代码如下: #include"stdafx.h" #include #include"mysql.h"//必须为"",不能为<&

CodeIgniter错误mysql_connect(): No such file or directory解决方法_php实例

首先CodeIgniter连接数据库连不上,总是显示连接错误,但是又没有error信息,难以debug. 解决方案是:在application/config/database.php文件的最后加上这一段代码: 复制代码 代码如下: echo '<pre>'; print_r($db['default']); echo '</pre>'; echo 'Trying to connect to database: ' .$db['default']['database']; $dbh=

mysqli使用localhost问题 Warning: mysqli::mysqli(): (HY000/2002): No such file or directory

PHP的CLI方式访问mysql数据库时出现了一个 No such file or directory的错误,查找资料并在最终解决后记录一下. 这个问题应该也会存在于非CLI方式访问,简单的代码是这样的: <?php  $mysqli = new mysqli('localhost', 'root', '123456', 'mysql');  if ($mysqli->connect_error) {      die('Connect Error (' . $mysqli->conne

mysqli连接提示 Warning: mysqli::mysqli(): (HY000/2002): No such file or directory

今天在使用PHP的CLI方式访问mysql数据库时出现了一个 No such file or directory的错误,查找资料并在最终解决后记录一下. 这个问题应该也会存在于非CLI方式访问,简单的代码是这样的: <?php $mysqli = new mysqli('localhost', 'root', 'root', 'test'); 如果上面的连接地址是 localhost 就会报此错误,改成 127.0.0.1 后正常. 当主机填写为localhost时MySQL会采用 unix d

gcc-fatal error: stdio. h :no such file or directory

问题描述 fatal error: stdio. h :no such file or directory 今天刚装的Linux mint,用gcc编译程序不通过,出现 fatal error: stdio.h :no such file and directory的build messages,下载codeblocks也是出现这样的错误,还望高手指点. 解决方案 In file included from scripts/kconfig/lxdialog/checklist.c:24: scr

Linux 格式化分区 报错Could not stat /dev/sda3 --- No such file or directory

执行分区过程如下: [root@jyrac2 ~]# fdisk /dev/sda The number of cylinders for this disk is set to 3002. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g.,