{"id":238,"date":"2018-06-12T10:11:00","date_gmt":"2018-06-12T02:11:00","guid":{"rendered":"https:\/\/yeslq.com\/201806238.html"},"modified":"2019-05-07T10:38:00","modified_gmt":"2019-05-07T02:38:00","slug":"centos-minimal-networkip","status":"publish","type":"post","link":"https:\/\/yeslq.com\/?p=238","title":{"rendered":"CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP"},"content":{"rendered":"<p>\nCentOS Minimal\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u7f51\u7edc<\/p>\n<p>service network start\u540e\u4ecd\u7136\u65e0\u6cd5\u8fde\u63a5\uff0c\u9042ifconfig\u67e5\u770b\uff0c\u53d1\u73b0\u5e76\u6ca1\u6709\u5206\u914dIP\u5730\u5740<\/p>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\/etc\/sysconfig\/network-script\/ifcfg-eth0<\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\uff1a<\/p>\n<p>ONBOOT=&#8221;yes&#8221;&nbsp; &nbsp;#\u5f00\u673a\u81ea\u52a8\u8fde\u63a5\u7f51\u7edc<br \/>\nMM_Controlled=&#8221;no&#8221;&nbsp; &nbsp;#\u662f\u5426\u5b9e\u65f6\u751f\u6548\uff0c\u5efa\u8baeno<br \/>\nBOOTPROTO=&#8221;dhcp&#8221;&nbsp; &nbsp;#\u662f\u5426\u81ea\u52a8\u83b7\u53d6IP\u5730\u5740<\/p>\n<p>\u91cd\u542f\u7f51\u7edcservice network restart \uff0c \u987a\u5229\u8fde\u63a5\u7f51\u7edc<\/p>\n<p>\u5982\u679c\u8bbe\u7f6e\u9759\u6001IP\uff0c\u5c06\u4e0a\u9762\u7684\u6539\u4e00\u4e0b\uff0c\u6839\u636e\u81ea\u5df1\u5b9e\u9645\u60c5\u51b5\u8bbe\u7f6e<\/p>\n<p>ONBOOT=&#8221;yes&#8221;<br \/>\nMM_Controlled=&#8221;no&#8221;<br \/>\nIPADDR=192.168.0.33<br \/>\nBOOTPROTO=static<br \/>\nNETMASK=255.255.255.0<br \/>\nGATEWAY=192.168.0.1<br \/>\nDNS1=192.168.0.2<br \/>\nDNS2=192.168.0.3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS Minimal\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53d1\u73b0\u6ca1\u6709\u7f51\u7edc service network start\u540e\u4ecd\u7136\u65e0\u6cd5\u8fde\u63a5 &#8230; <a title=\"CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP\" class=\"read-more\" href=\"https:\/\/yeslq.com\/?p=238\" aria-label=\"\u9605\u8bfb CentOS Minimal NetWork\u5b89\u88c5\u540e\u81ea\u52a8\u83b7\u53d6IP\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[64,65,46],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos","tag-ip","tag-network"],"_links":{"self":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=238"}],"version-history":[{"count":1,"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/yeslq.com\/index.php?rest_route=\/wp\/v2\/posts\/238\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yeslq.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}