{"id":46,"date":"2021-11-03T03:47:51","date_gmt":"2021-11-02T19:47:51","guid":{"rendered":"https:\/\/www.feeek.com\/?p=46"},"modified":"2021-11-03T03:47:51","modified_gmt":"2021-11-02T19:47:51","slug":"centos7%e7%b2%be%e7%ae%80%e7%89%88%e5%ae%89%e8%a3%85%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/www.feeek.com\/?p=46","title":{"rendered":"CentOS7\u7cbe\u7b80\u7248\u5b89\u88c5\u6b65\u9aa4"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td>\u5b89\u88c5\u7cfb\u7edf<\/td><td>Centos.org\u4e0b\u8f7d \u5b89\u88c5\u9009\u9879\u5141\u8bb8\u5b89\u88c5\u57fa\u7840\u7ba1\u7406\u5de5\u5177 #nmtui&nbsp;&nbsp; \u53ef\u5feb\u901f\u914d\u7f6e\u7f51\u7edc\u548c\u8ba1\u7b97\u673a\u540d<\/td><\/tr><tr><td>2<\/td><td>\u5f00\u542f\u7f51\u7edc<\/td><td>\u4fee\u6539\/etc\/sysconfig\/network-scripts\/ifcfg-ens33<br>ONBOOT=no ==&gt; Yes :wq \u4fdd\u5b58<br>#service network restart #ip addr \u67e5\u770b\u662f\u5426\u83b7\u53d6\u5230IP #ping <a href=\"http:\/\/www.qq.com\">www.qq.com<\/a><\/td><\/tr><tr><td>3<\/td><td>\u66f4\u6362yum\u6e90<\/td><td>\u9996\u5148\u5907\u4efd\u6e90\u6587\u4ef6: #cd \/etc\/yum.repos.d #mv CentOS-Base.repo CentOS-Base.repo.bk #curl -o \/etc\/yum.repos.d\/CentOS-Base.repo <a href=\"http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo\">http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/a> #yum makecache<\/td><\/tr><tr><td>4<\/td><td>\u5b89\u88c5ifconfig\u7b49\u5de5\u5177\u8f6f\u4ef6<\/td><td>#yum update -y #yum install -y epel-release nano wget nload net-tools.x86_64 #yum install make gcc curl -y #yum search ifconfig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u901a\u8fc7\u67e5\u627e\u76f8\u5173\u6765\u5b89\u88c5ifconfig\u8f6f\u4ef6 #yum install net-tools.x86_64 #ifconfig<\/td><\/tr><tr><td>5(\u53ef\u9009)<\/td><td>\u5173\u95edSELINUX<\/td><td>#nano \/etc\/selinux\/config SELINUX=disabled &nbsp; #sed -i &#8216;s\/=enforcing\/=disabled\/g&#8217; \/etc\/sysconfig\/selinux #setenforce 0<\/td><\/tr><tr><td>6(\u53ef\u9009)<\/td><td>\u5173\u95edfirewalld<\/td><td>#systemctl stop firewalld<br>#systemctl disable firewalld<br>#systemctl disable firewalld.service<\/td><\/tr><tr><td>7<\/td><td>ssh\u8fdc\u7a0b\u7aef\u53e3\u914d\u7f6e<\/td><td>#nano \/etc\/ssh\/sshd_config<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5b89\u88c5\u7cfb\u7edf Centos.org\u4e0b\u8f7d \u5b89\u88c5\u9009\u9879\u5141\u8bb8\u5b89\u88c5\u57fa\u7840\u7ba1\u7406\u5de5\u5177 #nmtui&nbsp;&nbsp; \u53ef [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":1,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}