{"id":3064,"date":"2018-01-27T15:00:45","date_gmt":"2018-01-27T07:00:45","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=3064"},"modified":"2018-01-27T15:00:45","modified_gmt":"2018-01-27T07:00:45","slug":"%e4%bf%ae%e5%a4%8dcentos-7-x-%e7%bd%91%e5%8d%a1%e5%90%af%e5%8a%a8%e4%b8%8d%e4%ba%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/hemanual\/%e4%bf%ae%e5%a4%8dcentos-7-x-%e7%bd%91%e5%8d%a1%e5%90%af%e5%8a%a8%e4%b8%8d%e4%ba%86%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u4fee\u590dCentOS 7.x \u7f51\u5361\u542f\u52a8\u4e0d\u4e86\u65b9\u6cd5"},"content":{"rendered":"<p><strong>\u521a\u521a\u88c5\u597d\u7684\u865a\u62df\u673a\u7a81\u7136\u4e0d\u80fd\u4e0a\u7f51\u4e86\uff0c\u62a5\u9519\u5f88\u8be1\u5f02\uff0c\u5177\u4f53\u62a5\u9519\u5982\u4e0b\uff1a<\/strong><\/p>\n<p>\/etc\/init.d\/network restart<\/p>\n<p>Restarting network (via systemctl): \u00a0Job for network.service failed because the control process exited with error code. See &#8220;systemctl status network.service&#8221; and &#8220;journalctl -xe&#8221; for details.<\/p>\n<p><strong>[\u5931\u8d25]<\/strong><\/p>\n<p>\u4f7f\u7528systemctl status network.service\u547d\u4ee4\u67e5\u770b\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<p>network.service &#8211; LSB: Bring up\/down networking<\/p>\n<p>Loaded: loaded (\/etc\/rc.d\/init.d\/network)<\/p>\n<p>Active:\u00a0<strong>failed<\/strong>\u00a0(Result: exit-code) since \u4e09 2016-08-17 11:34:36 CST; 54s ago<\/p>\n<p>Docs: man:systemd-sysv-generator(8)<\/p>\n<p>Process: 3847 ExecStart=\/etc\/rc.d\/init.d\/network start (<strong>code=exited, status=1\/FAILURE)<\/strong><\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn network[3847]: RTNETLINK answers: File exists<\/p>\n<p>8\u6708 17 11:34:36 python.cn systemd[1]: network.service: control process exited, code=exited status=1<\/p>\n<p>8\u6708 17 11:34:36 python.cn systemd[1]:\u00a0<strong>Failed to start LSB: Bring up\/down networking.<\/strong><\/p>\n<p>8\u6708 17 11:34:36 python.cn systemd[1]: Unit network.service entered failed state.<\/p>\n<p>8\u6708 17 11:34:36 python.cn systemd[1]: network.service failed.<\/p>\n<p>\u67e5\u770b\u7cfb\u7edf\u65e5\u5fd7\uff0c\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python network: RTNETLINK answers: File exists<\/p>\n<p>Aug 17 11:34:36 python systemd: network.service: control process exited, code=exited status=1<\/p>\n<p>Aug 17 11:34:36 python systemd:\u00a0<strong>Failed to start LSB: Bring up\/down networking.<\/strong><\/p>\n<p>Aug 17 11:34:36 python systemd: Unit network.service entered failed state.<\/p>\n<p>Aug 17 11:34:36 python systemd: network.service failed.<\/p>\n<p>Aug 17 11:36:28 python systemd: Starting LSB: Bring up\/down networking&#8230;<\/p>\n<p>Aug 17 11:36:29 python network: \u6b63\u5728\u6253\u5f00\u73af\u56de\u63a5\u53e3\uff1a \u65e0\u6cd5\u8f7d\u5165\u6587\u4ef6 &#8216;\/etc\/sysconfig\/network-scripts\/ifcfg-lo&#8217;<\/p>\n<p>Aug 17 11:36:29 python network: \u65e0\u6cd5\u8f7d\u5165\u6587\u4ef6 &#8216;\/etc\/sysconfig\/network-scripts\/ifcfg-lo&#8217;<\/p>\n<p>Aug 17 11:36:29 python network: \u65e0\u6cd5\u8f7d\u5165\u6587\u4ef6 &#8216;\/etc\/sysconfig\/network-scripts\/ifcfg-lo&#8217;<\/p>\n<p>Aug 17 11:36:29 python network: \u65e0\u6cd5\u8f7d\u5165\u6587\u4ef6 &#8216;\/etc\/sysconfig\/network-scripts\/ifcfg-lo&#8217;<\/p>\n<p>Aug 17 11:36:29 python network: [ \u00a0\u786e\u5b9a \u00a0]<\/p>\n<p>Aug 17 11:36:29 python network: \u6b63\u5728\u6253\u5f00\u63a5\u53e3 eno16777736\uff1a \u9519\u8bef\uff1a\u6fc0\u6d3b\u8fde\u63a5\u5931\u8d25\uff1a<strong>No suitable device found for this connection.<\/strong><\/p>\n<p><strong>\u7ecf\u67e5\uff0c\u786e\u8ba4<\/strong>\/etc\/sysconfig\/network-scripts\/ifcfg-lo\u6587\u4ef6\u662f\u5b58\u5728\u7684\u3002\u95ee\u9898\u51fa\u73b0\u5728\u54ea\u91cc\u5462\uff1f\u65e0\u6cd5\uff0c\u53ea\u597d\u767e\u5ea6\u4e00\u4e0b\u5427\uff0c\u767e\u5ea6\u51fa\u6765\u7684\u7ed3\u679c\u7adf\u7136\u57fa\u672c\u4e00\u6837\u3002<\/p>\n<p><strong>\u767e\u5ea6\u7b54\u6848\uff1a<\/strong><\/p>\n<p>mac\u5730\u5740\u4e0d\u5bf9\uff0c\u4fee\u6539mac\u5730\u5740\u3002<\/p>\n<p>\u4e5f\u8bb8\u6709\u4eba\u786e\u5b9e\u662fmac\u95ee\u9898\uff0c\u4f46\u662f\u83ab\u540d\u5176\u5999\u600e\u4e48\u53ef\u80fdmac\u5730\u5740\u66f4\u6539\u4e86\uff0c\u9664\u975e\u4f60\u6dfb\u52a0\u65b0\u7f51\u5361\u6216\u8005\u514b\u9686\u7684\u865a\u62df\u673a\u3002<\/p>\n<p>\u6211\u7279\u4e48\u771f\u7b11\u4e86\uff0c\u5929\u4e0b\u767e\u5ea6\u6587\u7ae0\u4e00\u5927\u6284\u554a\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002<\/p>\n<p>\u6ca1\u529e\u6cd5\u4e86\uff0cGoogle\u4e00\u4e0b\u5427\uff0c\u5076\u7136\u770b\u5230\u4e00\u4e2a\u6587\u7ae0\uff0c\u5927\u610f\u662f\u8ddf\u7cfb\u7edf\u81ea\u5e26\u7684NetworkManager\u8fd9\u4e2a\u7ba1\u7406\u5957\u4ef6\u6709\u5173\u7cfb\uff0c\u5173\u6389\u5c31\u53ef\u4ee5\u89e3\u51b3\u3002<\/p>\n<p>\u8bd5\u4e00\u4e0b\uff1a<\/p>\n<p><strong>systemctl stop NetworkManager<\/strong><\/p>\n<p><strong>systemctl disable NetworkManager<\/strong><\/p>\n<p>Removed symlink \/etc\/systemd\/system\/multi-user.target.wants\/NetworkManager.service.<\/p>\n<p>Removed symlink \/etc\/systemd\/system\/dbus-org.freedesktop.NetworkManager.service.<\/p>\n<p>Removed symlink \/etc\/systemd\/system\/dbus-org.freedesktop.nm-dispatcher.service.<\/p>\n<p>\u91cd\u65b0\u542f\u52a8\u7f51\u7edc\uff1a<\/p>\n<p><strong>systemctl start network.service<\/strong><\/p>\n<p>ifconfig |grep eno<\/p>\n<p>eno16777736: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; \u00a0mtu 1500<\/p>\n<p>inet 192.168.1.192 \u00a0netmask 255.255.255.0 \u00a0broadcast 192.168.1.255<\/p>\n<p>inet6 fe80::20c:29ff:fe3d:b305 \u00a0prefixlen 64 \u00a0scopeid 0x20&lt;link&gt;<\/p>\n<p>ether 00:0c:29:3d:b3:05 \u00a0txqueuelen 1000 \u00a0(Ethernet)<\/p>\n<p>RX packets 2 \u00a0bytes 120 (120.0 B)<\/p>\n<p>RX errors 0 \u00a0dropped 0 \u00a0overruns 0 \u00a0frame 0<\/p>\n<p>TX packets 22 \u00a0bytes 3551 (3.4 KiB)<\/p>\n<p>TX errors 0 \u00a0dropped 0 overruns 0 \u00a0carrier 0 \u00a0collisions 0<\/p>\n<p>\u7f51\u7edc\u6b63\u5e38\u542f\u52a8\uff0c\u8bbf\u95ee\u6b63\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u521a\u88c5\u597d\u7684\u865a\u62df\u673a\u7a81\u7136\u4e0d\u80fd\u4e0a\u7f51\u4e86\uff0c\u62a5\u9519\u5f88\u8be1\u5f02\uff0c\u5177\u4f53\u62a5\u9519\u5982\u4e0b\uff1a \/etc\/init.d\/network resta &#8230; <a title=\"\u4fee\u590dCentOS 7.x \u7f51\u5361\u542f\u52a8\u4e0d\u4e86\u65b9\u6cd5\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/hemanual\/%e4%bf%ae%e5%a4%8dcentos-7-x-%e7%bd%91%e5%8d%a1%e5%90%af%e5%8a%a8%e4%b8%8d%e4%ba%86%e6%96%b9%e6%b3%95\/\" aria-label=\"\u9605\u8bfb \u4fee\u590dCentOS 7.x \u7f51\u5361\u542f\u52a8\u4e0d\u4e86\u65b9\u6cd5\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,49],"tags":[495,763],"class_list":["post-3064","post","type-post","status-publish","format-standard","hentry","category-hemanual","category-linux","tag-centos7-x","tag-763"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=3064"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3064\/revisions"}],"predecessor-version":[{"id":3065,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3064\/revisions\/3065"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=3064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=3064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=3064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}