{"id":20,"date":"2016-08-29T11:26:27","date_gmt":"2016-08-29T03:26:27","guid":{"rendered":"http:\/\/192.168.1.20\/?p=20"},"modified":"2017-02-08T21:34:10","modified_gmt":"2017-02-08T13:34:10","slug":"16082901","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=20","title":{"rendered":"\u642c\u74e6\u5de5\u642d\u5efa\u865a\u62df\u4e3b\u673a\u540e\u53f0"},"content":{"rendered":"<h2 id=\"\u51c6\u5907\">I. \u51c6\u5907<\/h2>\n<p>\u4ee5\u4e0b\u662f\u5b89\u88c5\u9700\u6c42<\/p>\n<h3 id=\"\u7cfb\u7edf\">\u7cfb\u7edf<\/h3>\n<p>\u76ee\u524d\u4ec5\u652f\u6301 <strong>centos6<\/strong> (\u81f3\u4e8e\u662fminimal\u8fd8\u662f\u5176\u4ed6\u7248\u672c\u90fd\u884c)\uff0c\u4f46\u6700\u597d\u5168\u65b0\u5b89\u88c5\u7684\uff0c\u7701\u7684\u4e0e\u4e4b\u524d\u5b89\u88c5\u7684\u8f6f\u4ef6\u8d77\u51b2\u7a81\u3002<\/p>\n<blockquote><p>centos\u8fd8\u652f\u6301\u642c\u74e6\u5de5\u540e\u53f0\u4e00\u952e\u5b89\u88c5shadowsocks\uff0c\u7ecf\u6d4e\u53c8\u5b9e\u7528\uff01<\/p><\/blockquote>\n<h3 id=\"\u786c\u4ef6\">\u786c\u4ef6<\/h3>\n<p>\u5185\u5b58\u81f3\u5c11\u8981256MB\uff0c\u5426\u5219\u7f51\u7ad9\u53ef\u80fd\u8dd1\u4e0d\u8d77\u6765\u3002<\/p>\n<h3 id=\"\u57df\u540d\">\u57df\u540d<\/h3>\n<p>\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u597d\u7684\u8bbf\u95ee\u4f60\u7684\u7f51\u7ad9\uff0c\u8bf7\u51c6\u5907\u4e00\u4e2a\u57df\u540d\u3002<\/p>\n<ul>\n<li>\u514d\u8d39\u57df\u540d<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f7f\u7528\u514d\u8d39\u57df\u540d\uff0c\u672c\u4eba\u63a8\u8350<code>.tk<\/code>\uff0c\u6ce8\u518c\u5f88\u7b80\u5355\uff0c\u7f3a\u70b9\u662f\u767e\u5ea6\u4e0d\u6536\u5f55\u3002<\/p>\n<ul>\n<li>\u6536\u8d39\u57df\u540d<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f7f\u7528\u6536\u8d39\u57df\u540d\uff0c\u6211\u5efa\u8bae\u4e0d\u8981\u5728\u56fd\u5185\u6ce8\u518c\uff0c\u5e76\u4e14\u5343\u4e07\u4e0d\u8981\u6ce8\u518c<code>.cn<\/code>\u3002<\/p>\n<p>\u5982\u679c\u8981\u63a8\u8350\u7684\u8bdd\uff0c\u6211\u63a8\u8350\u5230<a class=\"external\" href=\"http:\/\/www.namesilo.com\/\" target=\"_blank\" rel=\"external nofollow\">namesilo<\/a>\u6ce8\u518c\u4e00\u4e2acom\u56fd\u9645\u57df\u540d\uff0c\u4f7f\u7528\u4f18\u60e0\u7801<code>bug<\/code>\uff0c\u4e00\u5e74\u53ea\u8981$7.99\uff0c\u8fd8\u652f\u6301\u652f\u4ed8\u5b9d\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u63a8\u8350namesilo\u5462\uff1f\u8bf7\u53c2\u8003<a class=\"internal\" href=\"https:\/\/blog.phpgao.com\/transfer_to_namesilo.html\">\u6b63\u5728\u5c06\u57df\u540d\u8f6c\u51fa\u81f3namesilo<\/a>\u3002<\/p>\n<p>\u6ce8\u518c\u5b8c\u57df\u540d\uff0c\u628a\u4f60\u7684\u8981\u89e3\u6790\u7684\u57df\u540d\u7ed1\u5b9a\u5230 VPS\u7684IP\u5730\u5740\uff0c\u540e\u9762\u4f1a\u7528\u5230\u3002<\/p>\n<h2 id=\"\u5f00\u59cb\u5b89\u88c5\">II. \u5f00\u59cb\u5b89\u88c5<\/h2>\n<h3 id=\"\u66f4\u65b0\u7cfb\u7edf\">\u66f4\u65b0\u7cfb\u7edf<\/h3>\n<p>\u505a\u4e00\u6b21\u66f4\u65b0\uff0c\u6211\u4eec\u9700\u8981\u8ba9\u7cfb\u7edf\u968f\u65f6\u4fdd\u6301\u6700\u65b0\u72b6\u6001<\/p>\n<pre><code class=\"bash hljs\">yum update -y\r\n<\/code><\/pre>\n<h3 id=\"\u6267\u884c\u5b89\u88c5\">\u6267\u884c\u5b89\u88c5<\/h3>\n<p>\u4e0b\u9762\u6211\u4eec\u4e00\u952e\u5b89\u88c5\u6240\u6709\u9700\u8981\u7684\u8f6f\u4ef6<\/p>\n<pre><code class=\"hljs nginx\"><span class=\"hljs-attribute\">yum<\/span> -y install wget;<span class=\"hljs-attribute\">wget<\/span> http:\/\/download.kanglesoft.com\/easypanel\/ep.sh -O ep.sh;<span class=\"hljs-attribute\">sh<\/span> ep.sh\r\n<\/code><\/pre>\n<p>\u7b49\u5b89\u88c5\u5b8c\u6210\uff0c\u6211\u4eec\u7684\u670d\u52a1\u5668\u5c31\u5177\u5907\u4e86\u6240\u6709<strong>WEB\u670d\u52a1\u5668<\/strong>\u7684\u529f\u80fd\u3002<\/p>\n<h2 id=\"\u5b8c\u6210\u540e\u7684\u64cd\u4f5c\">III. \u5b8c\u6210\u540e\u7684\u64cd\u4f5c<\/h2>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u9700\u8981\u5148\u505a\u4e00\u4e9b\u5b89\u5168\u914d\u7f6e<\/p>\n<h3 id=\"\u4fee\u6539mysql\u7684root\u5bc6\u7801\">\u4fee\u6539mysql\u7684root\u5bc6\u7801<\/h3>\n<pre><code class=\"hljs nginx\"><span class=\"hljs-comment\"># \u5c06\u5bc6\u7801\u4fee\u6539\u4e3a '1234'<\/span>\r\n<span class=\"hljs-attribute\">mysqladmin<\/span> -u root password <span class=\"hljs-string\">\"1234\"<\/span>\r\n<\/code><\/pre>\n<h2 id=\"\u540e\u53f0\u7ba1\u7406\u5730\u5740\">IV. \u540e\u53f0\u7ba1\u7406\u5730\u5740<\/h2>\n<h3 id=\"\u7ba1\u7406\u9762\u677f\u7f51\u5740\">\u7ba1\u7406\u9762\u677f\u7f51\u5740<\/h3>\n<p><code>http:\/\/\u670d\u52a1\u5668ip:3312\/admin\/<\/code><\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2704960517.jpeg\" alt=\"\u7ba1\u7406\u540e\u53f0\u767b\u9646\u754c\u9762\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2704960517.jpeg\" \/><\/p>\n<p>\u9ed8\u8ba4\u7528\u6237\u540d <code>admin<\/code><br \/>\n\u9ed8\u8ba4\u5bc6\u7801 <code>kangle<\/code><\/p>\n<blockquote><p>ps.\u767b\u5f55\u4e4b\u540e\u5efa\u8bae\u7acb\u5373\u4fee\u6539\u9ed8\u8ba4\u7684\u4fe1\u606f\uff0c\u5e10\u53f7\u7ba1\u7406 &#8211;&gt; \u4fee\u6539\u5e10\u53f7\u4fe1\u606f<\/p><\/blockquote>\n<h3 id=\"\u521d\u59cb\u5316\u7cfb\u7edf\">\u521d\u59cb\u5316\u7cfb\u7edf<\/h3>\n<p>\u9996\u5148\uff0c\u8fdb\u5165\u5de6\u4fa7\u670d\u52a1\u5668\u8bbe\u7f6e<\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/1213759337.png\" alt=\"\u670d\u52a1\u5668\u8bbe\u7f6e\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/1213759337.png\" \/><\/p>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u8bbe\u7f6e\u7b2c\u4e8c\u884c\uff0cmysql\u914d\u7f6e\u3002<\/p>\n<p>\u5c06\u521a\u624d\u8bbe\u7f6e\u7684root\u7528\u6237\u4fe1\u606f\u8f93\u5165<\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2447250928.png\" alt=\"\u914d\u7f6emysql\u7528\u6237\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2447250928.png\" \/><\/p>\n<p>\u7136\u540e\u70b9\u51fb\u5de6\u4fa7<code>\u670d\u52a1\u5668\u7ba1\u7406 --&gt; \u521d\u59cb\u5316\u670d\u52a1\u5668<\/code>\uff0c\u786e\u5b9a\u5373\u53ef\uff01<\/p>\n<h2 id=\"\u65b0\u5efa\u7f51\u7ad9\">V. \u65b0\u5efa\u7f51\u7ad9<\/h2>\n<p>\u73b0\u5728\u6211\u4eec\u6765\u65b0\u5efa\u7f51\u7ad9\uff0c\u70b9\u51fb<code>\u7f51\u7ad9\u7ba1\u7406 --&gt; \u65b0\u589e\u7f51\u7ad9<\/code><\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3419173325.jpeg\" alt=\"\u5982\u4f55\u6dfb\u52a0\u7f51\u7ad9\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3419173325.jpeg\" \/><\/p>\n<p>\u6309\u7167\u793a\u610f\u56fe\u914d\u7f6e\u5b8c\u6bd5\uff0c\u70b9\u51fb\u786e\u5b9a\u5373\u53ef\uff01<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e00\u65e6\u7f51\u7ad9\u5efa\u7acb\u5b8c\u6210\uff0c\u5f88\u591a\u8d26\u6237\u5bc6\u7801\u5c31\u5df2\u7ecf\u7ed1\u5b9a\u597d\u4e86\uff01\u5982\u679c\u4ee5\u540e\u9700\u8981\u518d\u7f51\u9875\u4e2d\u586b\u5199\u4fe1\u606f\uff0c\u5982\u6570\u636e\u5e93\u6216\u8005FTP\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u5bf9\u5e94\u4fe1\u606f\u3002<\/p>\n<pre><code class=\"hljs\">FTP\u7528\u6237\u540d    \u521a\u521a\u8bbe\u7f6e\u7684\u7528\u6237\u540d\r\nFTP\u5bc6\u7801      \u521a\u521a\u8bbe\u7f6e\u7684\u5bc6\u7801\r\n\r\n\u6570\u636e\u5e93\u5730\u5740    localhost\r\n\u6570\u636e\u5e93\u540d\u79f0    \u521a\u521a\u8bbe\u7f6e\u7684\u7528\u6237\u540d\r\n\u6570\u636e\u5e93\u7528\u6237\u540d    \u521a\u521a\u8bbe\u7f6e\u7684\u7528\u6237\u540d\r\n\u6570\u636e\u5e93\u5bc6\u7801    \u521a\u521a\u8bbe\u7f6e\u7684\u5bc6\u7801\r\n\u6570\u636e\u5e93\u7aef\u53e3    3306\r\n<\/code><\/pre>\n<h2 id=\"\u7ba1\u7406\u7f51\u7ad9\">VI. \u7ba1\u7406\u7f51\u7ad9<\/h2>\n<p>\u7f51\u7ad9\u521b\u5efa\u5b8c\u6bd5\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528\u521a\u624d\u7684\u7528\u6237\u540d\u5bc6\u7801\u7ba1\u7406\u6211\u4eec\u7684\u5b50\u7ad9\u4e86\uff01<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8bf4\u5b50\u7ad9\u5462\uff1f\u56e0\u4e3a\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u7406\u8bba\u4e0a\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2aVPS\u4e0a\u5efa\u7acb<strong>N\u591a<\/strong>\u57fa\u4e8e<code>PHP<\/code>\u7ad9\u70b9\uff01\u5f88\u723dder!<\/p>\n<blockquote><p>\u5b50\u7ad9\u7ba1\u7406\u5730\u5740<\/p><\/blockquote>\n<blockquote><p>http:\/\/\u670d\u52a1\u5668ip:3312\/vhost\/<\/p><\/blockquote>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3033835331.jpeg\" alt=\"\u5b50\u7ad9\u767b\u5f55\u754c\u9762\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3033835331.jpeg\" \/><\/p>\n<h3 id=\"\u540e\u53f0\u529f\u80fd\">\u540e\u53f0\u529f\u80fd<\/h3>\n<p>\u767b\u5f55\u6210\u529f\u540e\uff0c\u4f60\u5c31\u80fd\u591f\u53d1\u73b0\u4e00\u5757\u65b0\u5927\u9646\uff01\u5e38\u7528\u7684\u529f\u80fd\u5df2\u7ecf\u6846\u51fa\u6765\u4e86\u3002<\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3940603567.jpeg\" alt=\"\u540e\u53f0\u754c\u9762\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/3940603567.jpeg\" \/><\/p>\n<h3 id=\"\u7ed1\u5b9a\u57df\u540d\">\u7ed1\u5b9a\u57df\u540d<\/h3>\n<p>\u521a\u521a\u63d0\u5230\u7684\u57df\u540d\u64cd\u4f5c\u4f1a\u5728\u6b64\u7528\u4e0a\uff0c\u4f60\u4e00\u5b9a\u60f3\u4e0d\u5230\u7ed1\u5b9a\u57df\u540d\u5c31\u8fd9\u4e48\u7b80\u5355\uff01\u5728\u7ed1\u5b9a\u4e4b\u524d\u4e00\u5b9a\u8981\u5148\u53bb\u8bbe\u7f6e\u89e3\u6790\uff01\u89e3\u6790\u4f1a\u572810\u5206\u949f\u2014\u201448\u5c0f\u65f6\u540e\u751f\u6548\u3002<\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/98027142.jpeg\" alt=\"\u7ed1\u5b9a\u57df\u540d\u64cd\u4f5c\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/98027142.jpeg\" \/><\/p>\n<h3 id=\"\u4e0a\u4f20\u6587\u4ef6\">\u4e0a\u4f20\u6587\u4ef6<\/h3>\n<p>\u7f51\u7ad9\u6587\u4ef6\u8bf7\u4f7f\u7528FTP\u4e0a\u4f20\u81f3<code>wwwroot<\/code>\u6587\u4ef6\u5939\u4e0b\uff0c\u4e0a\u4f20\u5b8c\u6bd5\u786e\u4fdd\u6587\u4ef6<code>wwwroot\/index.php<\/code>\u80fd\u591f\u88ab\u627e\u5230\uff01<\/p>\n<h2 id=\"\u9ad8\u7ea7\u64cd\u4f5c\">VII. \u9ad8\u7ea7\u64cd\u4f5c<\/h2>\n<h3 id=\"\u8ba9kangle\u652f\u6301memcache\">\u8ba9kangle\u652f\u6301memcache<\/h3>\n<p>\u9ed8\u8ba4kangle\u662f\u6ca1\u6709\u5b89\u88c5php\u7684memcache\u6a21\u5757\u7684\uff0c\u6211\u4eec\u9700\u8981\u624b\u52a8\u5b89\u88c5\u5e76\u542f\u7528\u3002<\/p>\n<ul>\n<li>\u5b89\u88c5memcached<\/li>\n<\/ul>\n<pre><code class=\"hljs nginx\"><span class=\"hljs-comment\"># \u5b89\u88c5memcache\u4ee5\u53caphp\u6a21\u5757<\/span>\r\n<span class=\"hljs-attribute\">yum<\/span> install memcached php-pecl-memcache -y\r\n<span class=\"hljs-comment\"># \u8bbe\u7f6ememcache\u5f00\u673a\u542f\u52a8<\/span>\r\nchkconfig memcached --level <span class=\"hljs-number\">35<\/span> <span class=\"hljs-literal\">on<\/span>\r\n<span class=\"hljs-comment\"># \u8fd0\u884cmemcache<\/span>\r\nservice memcached start\r\n<\/code><\/pre>\n<ul>\n<li>\u7f16\u8f91INI\u6587\u4ef6<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u6211\u4eec\u914d\u7f6ePHP.ini<\/p>\n<p><img decoding=\"async\" class=\"lazy img-responsive\" src=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2729403563.png\" alt=\"\u914d\u7f6ePHP.INI\" data-url=\"https:\/\/blog.phpgao.com\/usr\/uploads\/2015\/05\/2729403563.png\" \/><\/p>\n<pre><code class=\"hljs ini\"><span class=\"hljs-comment\"># \u5728\u53f3\u4fa7\u53e6\u8d77\u65b0\u884c\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e<\/span>\r\n<span class=\"hljs-section\">[Memcached]<\/span>\r\n<span class=\"hljs-attr\">extension<\/span>=memcached.so\r\n<\/code><\/pre>\n<ul>\n<li>\u91cd\u542f\u4ee5\u751f\u6548<\/li>\n<\/ul>\n<p>\u73b0\u5728\u6211\u4eec\u91cd\u542f\u670d\u52a1\u5668\u4f7f\u5176\u751f\u6548<\/p>\n<pre><code class=\"hljs nginx\"><span class=\"hljs-attribute\">service<\/span> kangle restart\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I. \u51c6\u5907 \u4ee5\u4e0b\u662f\u5b89\u88c5\u9700\u6c42 \u7cfb&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/20"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":0,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}