{"id":326,"date":"2016-04-01T12:55:19","date_gmt":"2016-04-01T04:55:19","guid":{"rendered":"http:\/\/www.x1985.org\/?p=326"},"modified":"2019-11-01T03:28:52","modified_gmt":"2019-10-31T19:28:52","slug":"%e6%88%91%e7%9a%84%e6%a0%91%e8%8e%93%e6%b4%be%e4%b9%8b%e8%b7%af","status":"publish","type":"post","link":"http:\/\/www.x1985.org\/?p=326","title":{"rendered":"\u265e\u6211\u7684\u6811\u8393\u6d3e\u4e4b\u8def"},"content":{"rendered":"<p>\u672c\u4eba\u662f\u5355\u4f4d\u7684\u4fe1\u606f\u7ba1\u7406\u5458&#x2622;\uff0c\u56e0\u4e3a\u65f6\u95f4\u8981\u505a\u4e00\u4e9b\u4e2a\u7f51\u9875\uff0c\u4f46\u662f\u5728\u670d\u52a1\u5668\u4e0a\u9762\u505a\u98ce\u9669\u6709\u4e9b\u5927\uff0c\u6240\u6709\u672c\u4eba\u524d\u6bb5\u65f6\u95f4\u5165\u624b\u4e86\u4e00\u53f0\u6811\u8393\u6d3e3\u3002<br \/>\n\u9009\u62e9\u6811\u8393\u6d3e\u7684\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u56e0\u4e3a\u5b83\u5c0f\uff0c\u53ef\u4ee5\u968f\u8eab\u643a\u5e26\uff0c\u800c\u4e14\u66f4\u6362\u7cfb\u7edf\u4e5f\u65b9\u4fbf\uff0c\u4e5f\u4e0d\u662f\u6362\u5f20SD\u5361\u7684\u65f6\u5019\u5c31\u53ef\u4ee5\u4e86\u3002<br \/>\n\u4e0b\u9762\u5c31\u628a\u6211\u7684\u6811\u8393\u6d3e\u4e4b\u8def\u5199\u4e0b\u6765\u3002<\/p>\n<pre title=\"\u786c\u4ef6\u90e8\u5206\" class=\"lang:default decode:true \">\u6811\u8393\u6d3e3\r\nTF 8G\u5361\r\n\u5168\u94dd\u5916\u58f3\r\n\u5c0f\u7c73\u624b\u673a\u5145\u7535\u5668<\/pre>\n<pre title=\"\u8f6f\u4ef6\u90e8\u5206\" class=\"lang:default decode:true\">\u7cfb\u7edf\uff1a\r\nCentOS Linux release 7.2.1511 (Core)\r\n\r\n\u57fa\u7840\u8f6f\u4ef6\uff1a\r\nWget V1.14\r\nNano V2.3.1\r\nFinger V0.17\r\n\r\n\u5e94\u7528\u8f6f\u4ef6\uff1a\r\nApache V2.4.6\r\nVsFtpd V3.0.2\r\nMariaDB V5.5.44\r\nPHP V5.4.16<\/pre>\n<pre class=\"lang:default decode:true\">\u5173\u95edSELinux\r\n\u5c06\/etc\/selinux\/config\u6587\u4ef6\u4e2d\u7684SELINUX=permissive\u66f4\u6539\u4e3aSELINUX=disabled\r\n\u5173\u95edFirewall\r\nsystemctl stop firewalld\r\nsystemctl disable firewalld<\/pre>\n<pre title=\"\u64cd\u4f5c\u6b65\u9aa4\" class=\"lang:default decode:true \">1\u3001\u66f4\u6539\u9ed8\u8ba4\u5bc6\u7801\r\npasswd\r\n2\u3001\u8bbe\u7f6e\u65f6\u533a\r\ncp -f \/usr\/share\/zoneinfo\/Asia\/Shanghai     \/etc\/localtime\r\n3\u3001\u8bbe\u7f6e\u533a\u57df\u8bed\u8a00\r\nlocalectl set-locale LANG=zh_CN.utf8\r\n4\u3001\u66f4\u6539\u7cfb\u7edf\r\nyum update\r\n##############################################################\r\n\u5b89\u88c5\u5e38\u7528\u8f6f\u4ef6\r\n##############################################################\r\nwget\r\nnano\r\nfinger\r\n\r\n##############################################################\r\n\u5b89\u88c5WEB\u8f6f\u4ef6\r\n##############################################################\r\n5\u3001Apache\r\nyum install httpd\r\n6\u3001Mariadb\r\nyum install mariadb*\r\n#\u914d\u7f6e\r\nmysql_secure_installation\r\n#\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u8fdb\u884c\u6570\u636e\u5e93\r\nmysql -uroot -p\r\n#\u4e0b\u9762\u662f\u4e00\u4e9bmysql\u7684\u64cd\u4f5c\u547d\u4ee4\r\n#\u67e5\u770bMySQL\u7684\u72b6\u6001  \r\nstatus;  \r\n#\u663e\u793a\u652f\u6301\u7684\u5f15\u64ce  \r\nshow engines;  \r\n#\u663e\u793a\u6240\u6709\u6570\u636e\u5e93  \r\nshow databases;  \r\n#\u5207\u6362\u6570\u636e\u5e93  \r\nuse test;  \r\n#\u663e\u793a\u672c\u6570\u636e\u5e93\u6240\u6709\u7684\u8868  \r\nshow tables;  \r\n\r\n7\u3001\u5b89\u88c5PHP\r\nyum install php\r\n#\u5b89\u88c5\u7ec4\u4ef6\r\nyum install php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash\r\n\r\n\u542f\u52a8\u76f8\u5173\u670d\u52a1\r\n#\u542f\u52a8\u670d\u52a1\r\nsystemctl start \u670d\u52a1\u540d\r\n#\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\r\nsystemctl enable \u670d\u52a1\u540d<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u4eba\u662f\u5355\u4f4d\u7684\u4fe1\u606f\u7ba1\u7406\u5458&#x2622;\uff0c\u56e0\u4e3a\u65f6\u95f4\u8981\u505a\u4e00\u4e9b\u4e2a\u7f51\u9875\uff0c\u4f46\u662f\u5728\u670d\u52a1\u5668\u4e0a\u9762\u505a\u98ce\u9669\u6709\u4e9b\u5927\uff0c\u6240\u6709\u672c\u4eba\u524d\u6bb5\u65f6\u95f4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":325,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[44],"_links":{"self":[{"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/posts\/326"}],"collection":[{"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.x1985.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326"}],"version-history":[{"count":14,"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":328,"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions\/328"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.x1985.org\/index.php?rest_route=\/wp\/v2\/media\/325"}],"wp:attachment":[{"href":"http:\/\/www.x1985.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.x1985.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.x1985.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}