service network restart 报错 Center OS 7 /etc/rc.d/init.d/network status=6

google上找到答案:

Just in case anyone is still having an issue with Centos 7 on the Raspberry Pi in regard to this 'LSB' error.

I eventually found out that the /etc/rc.d/init.d/network script that is run, will error out right away with status=6 if a specific file does not exist, namely /etc/sysconfig/network.
I have no idea why this file is required, as on another system I work on the file exists but is empty. But it didn't exist out of the box with the Centos 7 OS I got for my Raspberry. After going through all other steps (remove Network Manager, set static IP in ifcfg file, kill dhc process for Network Manager, etc) if you still get this error just try:

touch /etc/sysconfig/network

The file can be empty. Just has to exist.

Then restart network service:

systemctl restart network

And voila. I realize this is a very small fix, but I went through all the headaches and tries above before finding this and I was good to go after.

转载于:https://www.cnblogs.com/antis/p/10593663.html

Center OS 7 /etc/rc.d/init.d/network, status=6相关推荐

  1. ORALCE 数据库静默安装教程(Center OS 7) --用于个人理解

    ORALCE 数据库静默安装教程(Center OS 7) --用于个人理解 一.安装前准备工作 1.安装依赖包 2.建立用户组和用户 3.在/etc/hosts文件内容的最底下添加主机名(注掉原来的 ...

  2. Center OS 离线安装Mysql5.7

    1.相关资料准备 1.离线安装包下载 或者百度网盘 链接:https://pan.baidu.com/s/1oVP3u8GSaavxoJqKnvZPKg  提取码:vw88 2.libao库文件下载 ...

  3. centeros7 mysql,center os 7 Mysql 安装

    我的网盘里面有mysql rpm安装文件 1.对于centeros 7.0 以上版本 想装mysql 需要先要卸载mariadb rpm -qa | grep mariadb 查看已安装的mariad ...

  4. Linux /etc/rc.d 下面 rc${runlevel}.d rc.local init.d 区别

    一:init.d init.d 存放的是各种系统跟多服务的开始停止脚本等,/etc/init.d 是 /etc/rc.d/init.d 的软链接. 二:/rc.d/rc${runlevel}.d  这 ...

  5. Android初始化语言 (init.*.rc、init.conf文件格式)

    2019独角兽企业重金招聘Python工程师标准>>> 下文转载自:http://hi.baidu.com/zhlg_hzh/blog/item/4ad24a807c71d3db90 ...

  6. center os php,Center OS 7 Apache安装配置

    自己购买了国外的服务器,想把我的网页放到服务器,网页是以websocket连接贝壳物联,进而简单测试控制ESP8266.服务器是Center OS 7版本,部署的是Apache. Apache HTT ...

  7. mysql 使用service mysqld start 提示未识别服务 进入/etc/rc.d/init.d 下面未发现有mysqld解决方法

    mysql 使用service mysqld start 提示未识别服务 进入/etc/rc.d/init.d 下面未发现有mysqld解决方法 参考文章: (1)mysql 使用service my ...

  8. 关于使用Kmeans函数RuntimeWarning: Explicit initial center position passed: performing only one init in KMe

    问题描述 在使用sklearn中Kmeans函数遇到RuntimeWarning: Explicit initial center position passed: performing only o ...

  9. Linux Nginx启动报错:Failed at step EXEC spawning /etc/rc.d/init.d/nginx: Exec format error.

    目录 场景 报错 原因 解决 场景 systemd启动nginx systemctl start nginx.service 报错 报错第一行为 Failed at step EXEC spawnin ...

最新文章

  1. npm缺少css-loader,/style-compiler,stylus-loader问题,npm没有权限无法全局更新问题【已解决】
  2. springboot简易集成mybatisPlus+多数据源
  3. html css 磁贴,使用JS配合CSS实现Windows Phone中的磁贴效果
  4. 如何解决90%的问题?10位阿里大牛公布方法
  5. golang 目录分隔符号_Golang 从0到1之任务提醒(一)
  6. Kiterunner上下文感知型内容搜索工具
  7. 【RFID】天线技术
  8. Android 10.0 关机界面全屏显示(UI全屏显示)
  9. linux配置web页面登录密码,在Linux下通过WEB认证方式上网
  10. R(13):第三章:3.2数据的分布
  11. 关于五十音 片假名 平假名
  12. 论文阅读Check it again:Progressive Visual Question Answering via Visual Entailment
  13. 2014 IT公司校招应届生待遇大揭秘
  14. 小米3g路由器编译libwebsockets
  15. group by 和where可以一起使用吗
  16. C#连接Excel文件的连接字符串
  17. HTML做一个简单漂亮的宠物网页(纯html代码) 带视频 带音乐 带报告
  18. windows通过批处理设置ip地址
  19. linux下的GPU测试软件,Ubuntu等Linux系统显卡性能测试软件 Unigine 3D
  20. html超级简单实现点赞(收藏)和取消赞效果

热门文章

  1. 贪婪洞窟2服务器维护,12月19日贪婪洞窟2停服维护公告 贪婪洞窟2更新了什么
  2. linux hook 任意内核函数,linux内核中的hook函数详解
  3. php火的原因,重燃你的PHP安全之火
  4. CTFshow web15
  5. MXNet下载Fashion-MNIST错误处理
  6. 2016电大计算机网考,2016电大计算机网考选择题及答案.doc
  7. cmake linux 交叉编译,[CMake]CMake设置arm-linux-gcc交叉编译器
  8. linux下安装mysql5.5_Linux下安装mysql-5.5
  9. Spring Cloud 学习笔记(三) 之服务治理模块Spring Cloud 服务发现与消费
  10. 在 Linux 下使用 RAID(九):如何使用 ‘Mdadm’ 工具管理软件 RAID