\n
\n<\/div>\n
[php]<\/p>\n
<body <?php body_class(); ?>><\/p>\n
<div id="fb-root"><\/div><\/p>\n
<script>(function(d, s, id) {<\/p>\n
var js, fjs = d.getElementsByTagName(s)[0];<\/p>\n
if (d.getElementById(id)) return;<\/p>\n
js = d.createElement(s); js.id = id;<\/p>\n
js.src = "\/\/connect.facebook.net\/zh_TW\/all.js#xfbml=1&appId=471697639597243";<\/p>\n
fjs.parentNode.insertBefore(js, fjs);<\/p>\n
}(document, ‘script’, ‘facebook-jssdk’));<\/script><\/p>\n
[\/php]<\/p>\n
\n
\u52a0\u5728 single.php \u88e1\uff0c\u4ee5\u4e0b\u5167\u5bb9\u653e\u5728\u986f\u793a\u5167\u6587\u7684\u4e0b\u4e00\u6bb5\uff0c\u4e5f\u5c31\u662f\u6587\u7ae0\u5c3e\u7aef\u7684\u5730\u65b9<\/p>\n
[php]<\/p>\n
<div class="entry"><\/p>\n
<div class="entry-inner"><\/p>\n
<?php the_content(); ?><\/p>\n
<?php wp_link_pages(array(‘before’=>'<div class="post-pages">’.__(‘Pages:’,’hueman’),’after’=>'<\/div>’)); ?><\/p>\n
<?php insert_wp_fb_like(); ?><\/p>\n
<center><\/p>\n
<a href="http:\/\/line.naver.jp\/R\/msg\/text\/?<?php the_title(); ?>%20%0a<?php the_permalink(); ?>"><img src="http:\/\/xiaoko.com\/wp-content\/uploads\/2014\/02\/line.png"><\/a><\/p>\n
<\/p><\/p>\n
<div class="fb-comments" data-href=<?php the_permalink() ?> data-width="500" data-numposts="5" data-colorscheme="light"><\/div><\/p>\n
<\/p><\/p>\n
<script type="text\/javascript" src="http:\/\/js1.bloggerads.net\/showbanner.aspx?blogid=20140207000021&charset=utf-8"><\/script><\/p>\n
<\/center><\/p>\n
<\/div><\/p>\n
<div class="clear"><\/div><\/p>\n
<\/div><!–\/.entry–><\/p>\n
[\/php]<\/p>\n
\u642c\u5bb6<\/span> 2014-04-05<\/p>\n\u6709\u611f\u65bc 000webhost \u514d\u8cbb\u7a7a\u9593\uff0c\u8aaa\u597d\u4e0d\u51fa\u73fe\u5ee3\u544a\u7684\uff0c\u7adf\u7136\u51fa\u73fe\u8df3\u51fa\u5f0f\u5ee3\u544a\uff1b\u6548\u80fd\u4e5f\u4e0d\u597d\uff0c\u5e38\u5b89\u88dd\u5916\u639b\u5c31\u6b7b\u7576\u7d66\u4f60\u770b\uff0c\u65e2\u7136\u6709\u5fc3\u8981\u4f5c\u4e00\u500b\u7db2\u8def\u7684\u767c\u4f48\u7a7a\u9593\uff0c\u5c31\u63db\u500b\u4ed8\u8cbb\u7684\u7a7a\u9593\u5427\uff1b\u627e\u4e86\u5e7e\u5bb6\u8a55\u50f9\u4e0d\u932f\u7684\u570b\u5916\u7a7a\u9593\uff0c\u525b\u597d HostGator \u6709\u6240\u8b02\u7684\u4e00\u500b\u6708\u53ea\u8981\u53f0\u5e63 1 \u5143\u7684\u65b9\u6848\uff0c\u7576\u7136\u5c31\u62ff\u4f86\u6e2c\u8a66\u770b\u770b\u5f8c\u53f0\u8a2d\u8a08\u4ee5\u53ca\u7576\u4f5c\u642c\u5bb6\u7684\u6e2c\u8a66\u3002<\/p>\n
\u771f\u7684\u5f88\u525b\u597d\u6709\u9019\u4fbf\u5b9c\u7684\u65b9\u6848\uff0c\u53ef\u4ee5\u4e86\u89e3\u6211\u642c\u5bb6\u53ef\u80fd\u6703\u9047\u5230\u7684\u554f\u984c\uff0c\u6211\u9047\u5230\u7684\u554f\u984c\u5982\u4e0b:<\/p>\n
1. \u8cc7\u6599\u5eab<\/p>\n
\u5148\u5099\u4efd\u8cc7\u6599\u5eab\u56de\u4f86\uff0c\u518d\u5230\u65b0\u7a7a\u9593\uff1b\u65b0\u589e\u4e00\u500b\u8cc7\u6599\u5eab\uff0c\u540d\u7a31\u53ef\u4ee5\u4e0d\u8207\u4e4b\u524d\u7684\u8cc7\u6599\u5eab\u540d\u7a31\u76f8\u540c\uff08\u5f8c\u7e8c\u53ef\u4ee5\u900f\u904e wp-config.php \u4f86\u4fee\u6539\uff09<\/p>\n
2. \u6a94\u6848<\/p>\n
\u540c\u6a23\uff0c\u5148\u5099\u4efd\u6574\u500b\u7db2\u9801\u4e0b\u7684\u76ee\u9304\u6a94\u6848\uff0c\u5728\u65b0\u7a7a\u9593\uff08\u5728 hostgator \u88e1\uff0c\u7db2\u9801\u8def\u5f91\u5728 \/home2\/xiaoko\/public_html\uff09\u88e1\u628a\u539f\u672c\u76ee\u9304\u4e0b\u7684\u6240\u6709\u6a94\u6848\u4e0a\u50b3\u4e0a\u53bb\u3002<\/p>\n
3. \u4fee\u6539 wp-config.php<\/p>\n
[php]<\/p>\n
\/** WordPress \u7684\u8cc7\u6599\u5eab\u540d\u7a31\uff0c\u8acb\u66f4\u6539 "database_name_here" *\/<\/p>\n
define(‘DB_NAME’, ‘xiaoko_xxx’);<\/p>\n
\/** MySQL \u8cc7\u6599\u5eab\u4f7f\u7528\u8005\u540d\u7a31\uff0c\u8acb\u66f4\u6539 "username_here" *\/<\/p>\n
define(‘DB_USER’, ‘xiaoko_xxxxx’);<\/p>\n
\/** MySQL \u8cc7\u6599\u5eab\u5bc6\u78bc\uff0c\u8acb\u66f4\u6539 "password_here" *\/<\/p>\n
define(‘DB_PASSWORD’, ‘********’);<\/p>\n
\/** MySQL \u4e3b\u6a5f\u4f4d\u5740 *\/<\/p>\n
define(‘DB_HOST’, ‘localhost’);<\/p>\n
[\/php]<\/p>\n
4. \u66f4\u6b63\u56fa\u5b9a\u7db2\u5740\u529f\u80fd<\/p>\n
\u4e00\u5207\u90fd\u5b8c\u6210\u5f8c\uff0c\u6703\u767c\u73fe\u600e\u9ebc\u6309\u4e86\u6bcf\u4e00\u7bc7\u6587\u7ae0\u90fd\u6703\u51fa\u73fe 404 \u7db2\u9801\u932f\u8aa4\u7684\u8a0a\u606f\uff0c\u9019\u6642\u53ea\u8981\u767b\u5165\u5f8c\u53f0\uff0c\u5728\u8a2d\u5b9a\/\u56fa\u5b9a\u7db2\u5740\u7684\u9078\u9805\uff0c\u5148\u8a2d\u56de\u9810\u8a2d\uff1b\u5373\u53ef\u3002<\/p>\n
5. \u66f4\u6539 dns<\/p>\n
\u63a5\u4e0b\u4f86\u8a18\u4e0b\u65b0\u7a7a\u9593\u696d\u8005\u63d0\u4f9b\u7684\u5169\u7d44 Name Servers \u4f4d\u5740\u5230\u4f60\u8cfc\u8cb7\u7db2\u5740\u7684\u7db2\u7ad9\u53bb\u4fee\u6539\u70ba\u65b0\u7a7a\u9593\u7684 server \u5373\u53ef\uff0c\u4e0d\u904e\u4fee\u6539\u5f8c\u8981\u7b49\u81f3\u5c11 48 \u5c0f\u6642\uff0c\u624d\u6703\u8b93\u7db2\u57df\u66f4\u65b0\u6307\u5411\u5230\u65b0\u7a7a\u9593\u3002<\/p>\n
6. \u52a0\u5165\u5169\u884c\u6307\u5b9a\u7db2\u5740\u8def\u5f91<\/p>\n
\u5728\u7db2\u57df\u9084\u6c92\u6307\u5411\u65b0\u7a7a\u9593\u6642\uff0c\u5728 wp-config.php \u88e1\u52a0\u4e0a\u9019\u5169\u884c\uff0c\u53ef\u4ee5\u907f\u514d\u9023\u56de\u820a\u7684\u7a7a\u9593\u3002\u5728 hostgator \u7684\u7a7a\u9593\u662f htt:\/\/ip\/~username<\/p>\n
[php]<\/p>\n
define(‘WP_SITEURL’, ‘http:\/\/192.254.250.171\/~xxx\/’);<\/p>\n
define(‘WP_HOME’, ‘http:\/\/192.254.250.171\/~xxx\/’);<\/p>\n
[\/php]<\/p>\n
photo credit: Kwintin<\/a> via photopin<\/a> cc<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"WordPr…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"lc_iscn_info":[],"ub_ctt_via":"","footnotes":""},"categories":[77],"tags":[],"featured_image_src":null,"author_info":{"display_name":"\u5c0f\u67ef","author_link":"https:\/\/xiaoko.com\/author\/kojackie\/"},"_links":{"self":[{"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/posts\/1844"}],"collection":[{"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/comments?post=1844"}],"version-history":[{"count":1,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/posts\/1844\/revisions"}],"predecessor-version":[{"id":2864,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/posts\/1844\/revisions\/2864"}],"wp:attachment":[{"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/media?parent=1844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/categories?post=1844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiaoko.com\/wp-json\/wp\/v2\/tags?post=1844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}