{"id":25298,"date":"2024-11-21T17:42:59","date_gmt":"2024-11-21T09:42:59","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25298\/"},"modified":"2024-11-21T17:42:59","modified_gmt":"2024-11-21T09:42:59","slug":"thinkphp%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25298\/","title":{"rendered":"thinkphp\u600e\u4e48\u8fd0\u884c"},"content":{"rendered":"<blockquote><p>\n  thinkphp framework \u7684\u672c\u5730\u8fd0\u884c\u6b65\u9aa4\uff1a\u4e0b\u8f7d\u5e76\u89e3\u538b thinkphp framework \u5230\u672c\u5730\u76ee\u5f55\u3002\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff08\u53ef\u9009\uff09\uff0c\u6307\u5411 thinkphp \u6839\u76ee\u5f55\u3002\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\u3002\u542f\u52a8 web \u670d\u52a1\u5668\u3002\u521d\u59cb\u5316 thinkphp \u5e94\u7528\u7a0b\u5e8f\u3002\u8bbf\u95ee thinkphp \u5e94\u7528\u7a0b\u5e8f url \u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/09\/2024040917392343813.jpg\" class=\"aligncenter\" title=\"thinkphp\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" alt=\"thinkphp\u600e\u4e48\u8fd0\u884c\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728\u672c\u5730\u8fd0\u884c ThinkPHP Framework<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u5b89\u88c5 ThinkPHP Framework<\/strong><\/p>\n<ul>\n<li>\u4ece\u5b98\u65b9\u7f51\u7ad9 https:\/\/www..cn\/ \u4e0b\u8f7d ThinkPHP Framework \u5e76\u89e3\u538b\u5230\u4e00\u4e2a\u672c\u5730\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 2\uff1a\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff08\u53ef\u9009\uff09<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 Apache \u6216 Nginx \u7b49 Web \u670d\u52a1\u5668\u8bbe\u7f6e\u4e00\u4e2a\u865a\u62df\u4e3b\u673a\uff0c\u6307\u5411 ThinkPHP \u6839\u76ee\u5f55\u3002\u8fd9\u5c06\u5141\u8bb8\u60a8\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u914d\u7f6e\u6570\u636e\u5e93<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2a MySQL \u6570\u636e\u5e93\u5e76\u4e3a ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u3002<\/li>\n<li>\u4fee\u6539 config\/database.php \u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u8fd0\u884c Web \u670d\u52a1\u5668<\/strong><\/p>\n<ul>\n<li>\u542f\u52a8 Apache \u6216 Nginx \u7b49 Web \u670d\u52a1\u5668\u3002<\/li>\n<li>\u8bbf\u95ee\u865a\u62df\u4e3b\u673a\u6307\u5b9a\u7684 URL\uff0c\u4f8b\u5982 http:\/\/localhost\/thinkphp\/public\/\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 5\uff1a\u521d\u59cb\u5316\u5e94\u7528\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u8bbf\u95ee http:\/\/localhost\/thinkphp\/public\/index.php\/cli\/think URL \u521d\u59cb\u5316 ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u8fd9\u5c06\u5b89\u88c5\u5fc5\u8981\u7684\u6570\u636e\u5e93\u8868\u548c\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 6\uff1a\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u8bbf\u95ee http:\/\/localhost\/thinkphp\/public\/ URL \u8fd0\u884c ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li>\u60a8\u5c06\u770b\u5230 ThinkPHP \u9ed8\u8ba4\u7684\u6b22\u8fce\u9875\u9762\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u5df2\u5b89\u88c5 PHP 7 \u6216\u66f4\u9ad8\u7248\u672c\u3002<\/li>\n<li>\u4f7f\u7528 Composer \u7ba1\u7406 ThinkPHP \u4f9d\u8d56\u9879\u662f\u6709\u5e2e\u52a9\u7684\u3002<\/li>\n<li>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u53c2\u8003 ThinkPHP \u5b98\u65b9\u6587\u6863\u4ee5\u4e86\u89e3\u8def\u7531\u3001\u6a21\u578b\u548c\u63a7\u5236\u5668\u7b49\u6982\u5ff5\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>thinkphp framework \u7684\u672c\u5730\u8fd0\u884c\u6b65\u9aa4\uff1a\u4e0b\u8f7d\u5e76\u89e3\u538b thinkphp framework \u5230\u672c\u5730\u76ee\u5f55\u3002\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff08\u53ef\u9009\uff09\uff0c\u6307\u5411 thinkphp \u6839\u76ee\u5f55\u3002\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\u3002\u542f\u52a8 web \u670d\u52a1\u5668\u3002\u521d\u59cb\u5316 thinkphp \u5e94\u7528\u7a0b\u5e8f\u3002\u8bbf\u95ee thinkphp \u5e94\u7528\u7a0b\u5e8f url \u8fd0\u884c\u3002 \u5982\u4f55\u5728\u672c\u5730\u8fd0\u884c ThinkPHP Framework \u6b65\u9aa4 1\uff1a\u5b89\u88c5 ThinkPHP Framework \u4ece\u5b98\u65b9\u7f51\u7ad9 https:\/\/www..cn\/ \u4e0b\u8f7d ThinkPHP Framework \u5e76\u89e3\u538b\u5230\u4e00\u4e2a\u672c\u5730\u76ee\u5f55\u3002 \u6b65\u9aa4 2\uff1a\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff08\u53ef\u9009\uff09 \u4f7f\u7528 Apache \u6216 Nginx \u7b49 Web \u670d\u52a1\u5668\u8bbe\u7f6e\u4e00\u4e2a\u865a\u62df\u4e3b\u673a\uff0c\u6307\u5411 ThinkPHP \u6839\u76ee\u5f55\u3002\u8fd9\u5c06\u5141\u8bb8\u60a8\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u3002 \u6b65\u9aa4 3\uff1a\u914d\u7f6e\u6570\u636e\u5e93 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u521b\u5efa\u4e00\u4e2a MySQL \u6570\u636e\u5e93\u5e76\u4e3a ThinkPHP \u5e94\u7528\u7a0b\u5e8f\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u3002 \u4fee\u6539 config\/database.php \u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u7f6e\u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570\u3002 \u6b65\u9aa4 4\uff1a\u8fd0\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-25298","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=25298"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25298\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}