<>网络错误问题:RTNETLINK answers: File exists
错误贴上: [root@localhost network-scripts]# systemctl restart network Job for
network.service failed because the control process exited with error code. See
"systemctl status network.service" and "journalctl -xe" for details.
[root@localhost network-scripts]# systemctl status network.service ●
network.service - LSB: Bring up/down networking Loaded: loaded
(/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: failed
(Result: exit-code) since Tue 2020-08-18 09:43:34 HKT; 11s ago Docs:
man:systemd-sysv-generator(8) Process: 6278 ExecStart=/etc/rc.d/init.d/network
start (code=exited, status=1/FAILURE) Tasks: 1 Memory: 11.3M CGroup:
/system.slice/network.service └─856 /sbin/dhclient -1 -q -lf
/var/lib/dhclient/dhclient-98230ece-15b5-4d6f-8cba-7d406604929f-enp0s3.lease
-pf /var/run/dhclient-enp0s3.pid enp0... Aug 18 09:43:34 localhost.localdomain
network[6278]: RTNETLINK answers: File exists Aug 18 09:43:34
localhost.localdomain network[6278]: RTNETLINK answers: File exists Aug 18
09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File exists
Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers: File
exists Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK answers:
File exists Aug 18 09:43:34 localhost.localdomain network[6278]: RTNETLINK
answers: File exists Aug 18 09:43:34 localhost.localdomain systemd[1]:
network.service: control process exited, code=exited status=1 Aug 18 09:43:34
localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down
networking. Aug 18 09:43:34 localhost.localdomain systemd[1]: Unit
network.service entered failed state. Aug 18 09:43:34 localhost.localdomain
systemd[1]: network.service failed. [root@localhost network-scripts]# cd
/etc/udev/rules.d/70-persistent-net.rules -bash: cd:
/etc/udev/rules.d/70-persistent-net.rules: No such file or directory
开始找了很多方法,什么修改mac地址,关闭NetworkManager 都没用

解决办法:NetworkManager 和重启网络直接解决
//先关闭NetworkManager service NetworkManager off service NetworkManager stop
//关闭一下网卡 ifdown enp0s3 //enp0s3是我的网卡名字,文件名称ifcfg-enp0s3,ifdown表示禁用该网络: //之后重启网络
systemctl restart network

技术
©2019-2020 Toolsou All rights reserved,
Vue.js入门(五)---在vue中使用echarts词云Pandas统计分析基础_数据处理(DataFrame常用操作)element UI dialog点击dialog区域外会关闭dialog应届毕业生看过来!Java面试经典77问,看完离工作就不远了关于蓝桥杯大赛,你应该了解的那些事!mysql 分区-key分区(五)海康威视-嵌入式软件笔试题PHP Redis 监听过期的 key 事件C语言循环语句笔记详解以及练习-折半查找算法、猜数字游戏JVM概述