{"id":18242,"date":"2014-04-02T06:43:10","date_gmt":"2014-04-01T22:43:10","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/04\/02\/%e4%bd%bf%e7%94%a8%e5%ae%98%e6%96%b9%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%9d%e7%9a%84%e8%bf%b7%e4%bd%a0%e9%9b%b2miniyun\/"},"modified":"2014-04-02T06:43:10","modified_gmt":"2014-04-01T22:43:10","slug":"%e4%bd%bf%e7%94%a8%e5%ae%98%e6%96%b9%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%9d%e7%9a%84%e8%bf%b7%e4%bd%a0%e9%9b%b2miniyun","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/04\/02\/%e4%bd%bf%e7%94%a8%e5%ae%98%e6%96%b9%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%9d%e7%9a%84%e8%bf%b7%e4%bd%a0%e9%9b%b2miniyun\/","title":{"rendered":"\u4f7f\u7528\u5b98\u65b9\u5feb\u901f\u5b89\u88dd\u7684\u8ff7\u4f60\u96f2(Miniyun)"},"content":{"rendered":"<p>\u5957\u4ef6\u5b89\u88dd\u7684\u4f4d\u7f6e\u662f\u5728<br \/><span style=\"color: #0000ff;\">\/www\/web\/miniyun<\/span><\/p>\n<p>\u4e0d\u662f\u4f7f\u7528 Apache Web Server\uff0c\u800c\u662f\u4f7f\u7528 nginx\uff0c\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728<br \/><span style=\"color: #0000ff;\">\/etc\/nginx\/conf.d\/miniyun.conf<\/span> <\/p>\n<p>\u7db2\u7ad9\u95dc\u65bc\u8cc7\u6599\u5eab\u7684\u8a2d\u5b9a\u6a94<br \/><span style=\"color: #0000ff;\">\/www\/web\/miniyun\/protected\/config\/miniyun-config.php<\/span><br \/># <span style=\"color: #ff0000;\">head -8 \/www\/web\/miniyun\/protected\/config\/miniyun-config.php<\/span><br \/><span style=\"color: #0000ff;\">&lt;?php<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_NAME&#8217;, &#8216;miniyun&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_USER&#8217;, &#8216;miniyun&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_PASSWORD&#8217;, &#8216;miniyun&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">defined(&#8216;DB_PORT&#8217;) or define(&#8216;DB_PORT&#8217;, &#8216;3306&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8217;);<\/span><br \/><span style=\"color: #0000ff;\">define(&#8216;DB_PREFIX&#8217;,&#8217;miniyun&#8217;);<\/span><\/p>\n<p>\u6703\u5efa\u7acb\u4e00\u500b miniyun \u7684\u8cc7\u6599\u5eab\uff0c\u548c\u4e00\u500b miniyun \u7684\u4f7f\u7528\u8005\uff0c\u5bc6\u78bc\u662f miniyum\uff0c\u5efa\u8b70\u8981\u505a\u66f4\u6539[@more@]\u66f4\u6539\u5206\u6210\u4e8c\u500b\u90e8\u4efd<br \/>1. \u4e00\u500b\u662f\u4fee\u6539 <span style=\"color: #0000ff;\">\/www\/web\/miniyun\/protected\/config\/miniyun-config.php<\/span> \u8a2d\u5b9a\u6a94<br \/># <span style=\"color: #ff0000;\">cp \/www\/web\/miniyun\/protected\/config\/miniyun-config.php.$(date +%F)<\/span><br \/># <span style=\"color: #ff0000;\">vim \/www\/web\/miniyun\/protected\/config\/miniyun-config.php<\/span><br \/>\u5c07<br \/><span style=\"color: #0000ff;\">define(&#8216;DB_PASSWORD&#8217;, &#8216;miniyun&#8217;);<\/span><br \/>\u6539\u6210<br \/><span style=\"color: #ff0000;\">define(&#8216;DB_PASSWORD&#8217;, &#8216;Your&#8217;s_Password&#8217;);<\/span><\/p>\n<p>2. \u4fee\u6539 MySQL \u8cc7\u6599\u5eab miniyun \u4f7f\u7528\u8005\u7684\u5bc6\u78bc<br \/># <span style=\"color: #ff0000;\">\/usr\/bin\/mysql -u root -p<\/span><br \/>mysql&gt; <span style=\"color: #ff0000;\">SET PASSWORD FOR &#8216;miniyun&#8217;@&#8217;localhost&#8217; = PASSWORD(&#8216;Your&#8217;s_Password&#8217;);<\/span><br \/>mysql&gt; <span style=\"color: #ff0000;\">flush privileges;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5957\u4ef6\u5b89\u88dd\u7684\u4f4d\u7f6e\u662f\u5728\/www\/web\/miniyun \u4e0d\u662f\u4f7f\u7528 Apache Web Server\uff0c\u800c\u662f\u4f7f\u7528 n &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/04\/02\/%e4%bd%bf%e7%94%a8%e5%ae%98%e6%96%b9%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%9d%e7%9a%84%e8%bf%b7%e4%bd%a0%e9%9b%b2miniyun\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u4f7f\u7528\u5b98\u65b9\u5feb\u901f\u5b89\u88dd\u7684\u8ff7\u4f60\u96f2(Miniyun)\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,153],"tags":[],"class_list":["post-18242","post","type-post","status-publish","format-standard","hentry","category-c-78462","category-c-79963"],"meta_key":{"_encloseme":["1"],"lt_post_id":["480997"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18242"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18242"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18242\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}