{"id":176,"date":"2017-03-03T20:17:49","date_gmt":"2017-03-03T12:17:49","guid":{"rendered":"http:\/\/blog.bilicloud.com\/?p=176"},"modified":"2017-03-03T20:17:49","modified_gmt":"2017-03-03T12:17:49","slug":"%e8%ae%b0%e4%b8%80%e6%ac%a1%e4%b8%9a%e5%8a%a1%e6%95%b4%e4%bd%93%e8%bf%81%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/blog.foxsar.black\/?p=176","title":{"rendered":"\u8bb0\u4e00\u6b21\u4e1a\u52a1\u6574\u4f53\u8fc1\u79fb"},"content":{"rendered":"<p>\t\t\t\tRT \u4e1c\u897f\u6bd4\u8f83\u6742 \u7b97\u662f\u968f\u7b14\u8bb0\u5f55\u4e00\u4e0b\uff0c\u53c2\u8003\u8d44\u6599\u86ee\u591a\u7684<br \/>\n\u5927\u81f4\u7684\u60c5\u51b5\u662f\uff1a<br \/>\n\u64cd\u4f5c\u7cfb\u7edf\u5747\u4e3adebian 8.6 x64<br \/>\n\u670d\u52a1\u5668A\uff08\u7269\u7406\u673a\uff09\uff0c\u6709\u4e00\u4e2a\u666e\u901a\u7684http\u4e1a\u52a1\uff0c\u4e00\u4e2ajava\u4e1a\u52a1\uff0c\u4e00\u4e2amysql\u4e1a\u52a1\uff0c\u4e00\u4e2aFTP\u4e1a\u52a1<br \/>\n\u670d\u52a1\u5668B\uff08\u5957\u5728A\u91cc\u9762\u4e14\u6ca1\u6709\u516c\u7f51ip\u7684\u865a\u62df\u673a\uff09\u4e00\u4e2adz\u8bba\u575b\uff0c\u4e00\u4e2amysql\u4e1a\u52a1<br \/>\n\u670d\u52a1\u5668C\uff08\u76ee\u6807\u673a\u5668\uff0c\u65b0\u7cfb\u7edf\uff0c\u800c\u4e14\u8fd8\u6709\u4e2a\u8fd8\u6ca1\u6302\u8f7d\u7684\u786c\u76d8\uff09<br \/>\nA\u548cC\u4e0d\u5728\u4e00\u4e2a\u5730\u70b9\uff0c\u9700\u8981\u516c\u7f51\u4f20\u8f93\uff0c\u4e14A\u548cB\u4e0a\u9762\u7684\u4e1a\u52a1\u90fd\u8981\u6574\u5408\u5728C\u4e0a\u9762\uff0c\u53e6\uff1aA\u4e0a\u9762\u7684mysql\u53ef\u820d\u5f03\uff08\u4e0d\u8981\u95ee\u6211\u4e3a\u5565\u4e0d\u8981\u6570\u636e\u4e86\uff0c\u8bbe\u5b9a\u5c31\u662f\u5982\u6b64\uff09<br \/>\n&nbsp;<br \/>\n\u7b2c\u4e00\u6b65\uff1a\u5148\u90e8\u7f72\u4e00\u4e0b\u65b0\u673a\u5668\u7684\u73af\u5883<br \/>\n\u5927\u81f4\u9700\u8981\u7684\u6709\uff1atengine php5-fpm mysql-server openjdk vsftpd\u00a0db5.3-util<br \/>\n\u4ee5\u53ca\u6709\u4e2a\u6ca1\u683c\u5f0f\u5316\u4e5f\u6ca1\u6302\u8f7d\u7684\u786c\u76d8<\/p>\n<pre>mkfs.xfs \/dev\/sdb -f \uff08\u53cd\u6b63\u6211\u662f\u7528xfs\uff0c\u4ee5\u53ca\u8fd9\u4e2a\u4e0d\u9700\u8981\u5206\u533a\uff0c\u76f4\u63a5\u628a\u76d8\u6302\u4e0a\u53bb\u597d\u4e86\uff09\nmount \/dev\/sdb \/var\/hdd<\/pre>\n<p>\u91cd\u542f\u540e\u4fdd\u6301\u6302\u8f7d\uff1a<br \/>\nblkid \u67e5\u770b\u4e0b\u8fd9\u5757\u786c\u76d8\u7684uuid<\/p>\n<pre>vim \/etc\/fstab<\/pre>\n<p>\u6700\u4e0b\u9762\u76f4\u63a5\u6309\u7167\u8fd9\u4e2a\u683c\u5f0f\u5199\u4e00\u4e0b<\/p>\n<pre>UUID=12345678-1234-1234-1234-123456789012\u00a0 \u00a0 \u00a0 \u00a0\/var\/hdd \u00a0 \u00a0 \u00a0xfs \u00a0 \u00a0 defaults \u00a0 \u00a0 \u00a0 \u00a00 \u00a0 \u00a0 \u00a0 0<\/pre>\n<p>\u4fdd\u5b58\u9000\u51fa\u5373\u53ef<br \/>\n\u5176\u4ed6\u7684\u6ca1\u5565\u4e8b\u60c5 \u6309\u7167\u9700\u6c42\u521b\u5efa\u4e00\u4e9b\u6587\u4ef6\u5939 \u4ee5\u53camysql\u8bb0\u5f97\u5148\u8bbe\u7f6e\u4e2a\u5bc6\u7801<br \/>\n&nbsp;<br \/>\n\u7b2c\u4e8c\u6b65\uff1a\u5148\u628a\u6700\u7b80\u5355\u7684\u641e\u8d77\u6765\uff08java\uff0fhttp\uff0fftp\uff09<br \/>\n\u8fd9\u4e2a\u5e94\u8be5\u6700\u7b80\u5355\u4e86<br \/>\njava\u88c5\u597dopenjdk\u5373\u53ef<br \/>\n\u6ca1\u6709dz\u8bba\u575b\uff0c\u7eafhttp\u4e5f\u53ea\u662f\u9700\u8981\u914d\u7f6e\u4e0btengine\u7684\u914d\u7f6e\u5373\u53ef\uff0c\u53ef\u53c2\u8003\u4ee5\u524d\u7684\u535a\u6587\uff1a<a href=\"http:\/\/blog.bilicloud.com\/?p=133\">http:\/\/blog.bilicloud.com\/?p=133<\/a><br \/>\nftp\u4f9d\u65e7\uff1a<a href=\"http:\/\/blog.bilicloud.com\/?p=25\">http:\/\/blog.bilicloud.com\/?p=25<\/a><br \/>\n\u641e\u8d77\u6765\u540e\u6587\u4ef6\u901a\u8fc7tar\u6253\u5305\uff0cscp\u53d1\u9001\u8fc7\u53bb\uff0c\u518d\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u5939\u89e3\u5305\u5373\u53ef<br \/>\n\u6587\u4ef6\u592a\u5927\uff0f\u592a\u6742\uff0f\u9700\u8981\u4fdd\u6301\u6587\u4ef6\u5939\u7ed3\u6784\u7684\u8bdd\u53ef\u4ee5\u53c2\u8003\u4e0b\u5077\u61d2\u7684\u65b9\u6cd5\uff1a<a href=\"http:\/\/blog.bilicloud.com\/?p=172\">http:\/\/blog.bilicloud.com\/?p=172<\/a><br \/>\n&nbsp;<br \/>\n\u7b2c\u4e09\u6b65\uff1a\u8fc1\u79fb\u6570\u636e\u5e93<br \/>\n\u5f00\u5934\u8bf4\u660e\u4e86\u4e00\u4e0b\uff0c\u670d\u52a1\u5668A\u7684\u6570\u636e\u5e93\u91cc\u7684\u6570\u636e\u53ef\u4ee5\u820d\u5f03\uff0c\u6240\u4ee5\u8fd9\u6837\u5c31\u7b80\u5355\u5f97\u591a\u4e86\uff5e\u6211\u4eec\u53ea\u9700\u8981\u628a\u670d\u52a1\u5668B\u7684\u6570\u636e\u5e93\u8fc1\u79fb\u5373\u53ef<br \/>\n\u5148\u786e\u8ba4\u4e00\u4e0b\u7248\u672c\uff0c\u53d1\u73b0\u670d\u52a1\u5668B\u7684\u7248\u672c\u8981\u6bd4C\u7684\u7248\u672c\u8001\u4e00\u70b9\uff0c\u7528apt-get\u5347\u7ea7\u4e00\u4e0b\uff0c\u5347\u7ea7\u540e\u786e\u8ba4\u4e24\u8fb9\u7248\u672c\u4e00\u81f4\uff0c\u7136\u540estop\u6389mysql\u7684\u670d\u52a1<br \/>\n\u4e4b\u540e\u67e5\u770b\u4e86\u4e00\u4e0b\u6570\u636e\u5e93\u6240\u5728\u4f4d\u7f6e\uff0ccat \/etc\/mysql\/my.cnf \u627e\u5230\u8def\u5f84 \u8fdb\u53bb\uff0ctar\u6253\u5305\u4e00\u4e0b\uff0c\u7136\u540escp\u76f4\u63a5\u53d1\u5230\u670d\u52a1\u5668C\uff0c\u89e3\u5305\uff0c\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e\uff0c\u7136\u540e\u68c0\u67e5\u4e00\u4e0b\u6587\u4ef6\u5939\u548c\u91cc\u9762\u7684\u6587\u4ef6\u7684\u6743\u9650\uff0c\u5982\u679c\u4e0d\u662fmysql\u7684\u8bdd\u9700\u8981chown mysql:mysql -R \u6765\u8bbe\u7f6e\u4e00\u4e0b\u6743\u9650<br \/>\n\u5b8c\u4e8b\u540emysql -uroot -p \u767b\u9646\u4e00\u4e0b \u7136\u540eshow DATABASES; \u67e5\u770b\u4e0b\u6570\u636e\u5e93\u662f\u5426\u5b58\u5728\uff0c\u4e5f\u53ef\u4ee5use\u4e00\u4e0b\u540eshow\u4e00\u4e0b \u770b\u770b\u80fd\u5426\u6b63\u5e38\u8bfb\u53d6\u4e4b\u7c7b\u7684\u3002\u603b\u4e4b\u6211\u7684\u8fc1\u79fb\u662f\u987a\u5229\u7684\u5b8c\u6210\u4e86\u3002<br \/>\n&nbsp;<br \/>\n\u7b2c\u56db\u6b65\uff1a\u8fc1\u79fbdz\u8bba\u575b<br \/>\n\u8fd9\u4e00\u6b65\u6211\u4eec\u5927\u81f4\u8ddf\u7740\u5b98\u65b9\u6587\u6863\u8d70\uff0c\u5b98\u65b9\u6587\u6863\u5730\u5740\u89c1\u53c2\u8003\u8d44\u6599\u91cc\u7684\u94fe\u63a5\uff5e<br \/>\n\u5148\u5c06\u8bba\u575b\u5168\u90e8tar\u6253\u5305\uff0c\u7136\u540e\u4f9d\u65e7scp\u53d1\u8fc7\u53bb\uff0c\u89e3\u5305\uff0c\u653e\u5230\u6307\u5b9a\u4f4d\u7f6e\uff0c\u786e\u8ba4\u6743\u9650<br \/>\n\u7136\u540e\u5199\u4e00\u4e0btengine\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5177\u4f53\u53ef\u53c2\u8003<a href=\"http:\/\/blog.bilicloud.com\/?p=133\">http:\/\/blog.bilicloud.com\/?p=133<\/a><br \/>\n\u4e4b\u540e\u4fee\u6539\u4ee5\u4e0b\u6587\u4ef6\uff0c\u6539\u4e00\u4e0b\u6570\u636e\u5e93\u7684\u8d26\u53f7\u5bc6\u7801\uff08\u8fd9\u91cc\u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u7528\u6237\u540d\u548c\u5bf9\u5e94\u7684\u5bc6\u7801 \u6570\u636e\u5e93\u4e0a\u8981\u505a\u4e00\u4e0b\u6388\u6743\uff0c\u7136\u540e\u518d\u4ece\u8fd9\u8fb9\u6539\u4e00\u4e0b\u5bc6\u7801\uff09<\/p>\n<pre>.\/config\/config_global.php\n.\/config\/config_ucenter.php\n.\/uc_server\/data\/config.inc.php<\/pre>\n<p>\u6539\u5b8c\u540e \u91cd\u542ftengine \u7136\u540e\u3002\u3002\u3002\u55ef\uff1f502\uff1f<br \/>\n\u770b\u4e86\u4e00\u4e0blog \u53d1\u73b0\u662ffastcgi \u8fde\u63a5\u88ab\u62d2\u7edd\uff0c\u7136\u540ess -nat\u53d1\u73b0\u3002\u3002\u3002\u6839\u672c\u5c31\u6ca1\u6709fastcgi\u7684\u7aef\u53e3\uff0c\u68c0\u67e5\u4e86\u4e00\u4e0bphp-fpm.conf\u53d1\u73b0 \u539f\u6765\u6211\u5fd8\u8bb0\u5199listen\u4e86\u3002\u3002\u3002\u679c\u65ad\u8865\u4e00\u4e0b<\/p>\n<pre>vim\u00a0\/etc\/php5\/fpm\/php-fpm.conf<\/pre>\n<p>\u76f4\u63a5\u8df3\u5230\u7ed3\u5c3e\uff0c\u7c98\u8d34\u4e0a\uff1a<\/p>\n<pre>listen = 127.0.0.1:9000\nlisten.allowed_clients = 127.0.0.1\nlisten.backlog = -1<\/pre>\n<p>:wq\u4fdd\u5b58\u9000\u51fa \u7136\u540e\u91cd\u542f\u4e00\u4e0bphp5-fpm\u670d\u52a1\uff0c\u7136\u540e\u6d4f\u89c8\u5668\u5237\u65b0\u4e0b\u9875\u9762\u3002\u3002\u3002\u8d77\u6765\u4e86\uff5e<br \/>\n\u4e4b\u540e\u505a\u4e86\u4e00\u4e0b\u767b\u9646 \u53d1\u5e16 \u5220\u5e16\u6d4b\u8bd5 \u90fd\u4e00\u5207\u6b63\u5e38\uff0c\u8fc1\u79fb\u4efb\u52a1\u5b8c\u7f8e\u7ed3\u675f=w=<br \/>\n&nbsp;<br \/>\n\u53c2\u8003\u8d44\u6599\uff1a<br \/>\nDZ\u8d44\u6599\u5e93-\u8bba\u575b\u8fc1\u79fb\uff1a<a href=\"http:\/\/faq.comsenz.com\/library\/bbsapp\/movesite\/movesite_index.htm\">http:\/\/faq.comsenz.com\/library\/bbsapp\/movesite\/movesite_index.htm<\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RT \u4e1c\u897f\u6bd4\u8f83\u6742 \u7b97\u662f\u968f\u7b14\u8bb0\u5f55\u4e00\u4e0b\uff0c\u53c2\u8003\u8d44\u6599\u86ee\u591a\u7684 \u5927\u81f4\u7684\u60c5\u51b5\u662f\uff1a \u64cd\u4f5c\u7cfb\u7edf\u5747\u4e3adebian 8.6 x64  &hellip; <a href=\"https:\/\/blog.foxsar.black\/?p=176\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u8bb0\u4e00\u6b21\u4e1a\u52a1\u6574\u4f53\u8fc1\u79fb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":0,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.foxsar.black\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}