{"id":17844,"date":"2024-11-18T16:57:37","date_gmt":"2024-11-18T08:57:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/17844\/"},"modified":"2024-11-18T16:57:37","modified_gmt":"2024-11-18T08:57:37","slug":"phpstudy80%e7%ab%af%e5%8f%a3%e4%b8%8d%e8%83%bd%e7%94%a8%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/17844\/","title":{"rendered":"phpstudy80\u7aef\u53e3\u4e0d\u80fd\u7528\u600e\u4e48\u89e3\u51b3"},"content":{"rendered":"<blockquote><p>\n  \u5f53 phpstudy \u7684 80 \u7aef\u53e3\u88ab\u5360\u7528\u65f6\uff1a\u4f7f\u7528\u547d\u4ee4\u67e5\u627e\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f\u7684\u8fdb\u7a0b id\u3002\u7ed3\u675f\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f\u3002\u4e3a phpstudy \u8bbe\u7f6e\u65b0\u7684\u7aef\u53e3\u3002\u91cd\u65b0\u542f\u52a8 apache\u3002\u9a8c\u8bc1 8080 \u7aef\u53e3\u662f\u5426\u53ef\u7528\u3002\u901a\u8fc7 http:\/\/localhost:8080 \u8bbf\u95ee phpstudy \u7f51\u7ad9\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/02\/2024040214451642937.jpg\" class=\"aligncenter\" title=\"phpstudy80\u7aef\u53e3\u4e0d\u80fd\u7528\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" alt=\"phpstudy80\u7aef\u53e3\u4e0d\u80fd\u7528\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" \/><\/p>\n<p><strong>PHPStudy 80 \u7aef\u53e3\u88ab\u5360\u7528\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u5f53 PHPStudy \u65e0\u6cd5\u4f7f\u7528 80 \u7aef\u53e3\u65f6\uff0c\u901a\u5e38\u8868\u793a\u8be5\u7aef\u53e3\u5df2\u88ab\u5176\u4ed6\u7a0b\u5e8f\u5360\u7528\u3002\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p><strong>1. \u5bfb\u627e\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>netstat -aon | findstr :80<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u8f93\u51fa\u5c06\u663e\u793a\u6b63\u5728\u4f7f\u7528 80 \u7aef\u53e3\u7684\u7a0b\u5e8f\u7684\u8fdb\u7a0b ID (PID)\u3002<\/li>\n<\/ul>\n<p><strong>2. \u7ed3\u675f\u5360\u7528\u7a0b\u5e8f<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7ed3\u675f\u5360\u7528\u7684\u7a0b\u5e8f\uff1a<\/li>\n<\/ul>\n<pre>taskkill \/pid &lt;PID&gt; \/f<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5176\u4e2d \u662f\u5360\u7528\u7a0b\u5e8f\u7684\u8fdb\u7a0b ID\u3002 <\/li>\n<\/ul>\n<p><strong>3. \u4e3a PHPStudy \u914d\u7f6e\u65b0\u7684\u7aef\u53e3<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 PHPStudy \u63a7\u5236\u9762\u677f\u3002<\/li>\n<li>\u8f6c\u5230\u201c\u73af\u5883\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u5728\u201cPHP\u201d\u90e8\u5206\u4e2d\uff0c\u5c06\u201cApache \u7aef\u53e3\u201d\u66f4\u6539\u4e3a\u4e00\u4e2a\u672a\u88ab\u5360\u7528\u7684\u7aef\u53e3\uff08\u4f8b\u5982 8080\uff09\u3002<\/li>\n<li>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/li>\n<\/ul>\n<p><strong>4. \u91cd\u65b0\u542f\u52a8 Apache<\/strong><\/p>\n<ul>\n<li>\u5728 PHPStudy \u63a7\u5236\u9762\u677f\u4e2d\uff0c\u5355\u51fb\u201c\u64cd\u4f5c\u201d\u9009\u9879\u5361\u3002<\/li>\n<li>\u9009\u62e9\u201c\u91cd\u65b0\u542f\u52a8 Apache\u201d\u3002<\/li>\n<\/ul>\n<p><strong>5. \u9a8c\u8bc1\u7aef\u53e3\u53ef\u7528<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9a8c\u8bc1 8080 \u7aef\u53e3\u662f\u5426\u53ef\u7528\uff1a<\/li>\n<\/ul>\n<pre>netstat -aon | findstr :8080<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5982\u679c\u8f93\u51fa\u4e0d\u663e\u793a\u4efb\u4f55\u6761\u76ee\uff0c\u5219\u8868\u793a 8080 \u7aef\u53e3\u53ef\u7528\u4e8e PHPStudy\u3002<\/li>\n<\/ul>\n<p><strong>6. \u8bbf\u95ee PHPStudy \u7f51\u7ad9<\/strong><\/p>\n<ul>\n<li>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u4ee5\u4e0b\u7f51\u5740\uff1a<\/li>\n<\/ul>\n<pre>http:\/\/localhost:8080<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5982\u679c\u9875\u9762\u52a0\u8f7d\u6210\u529f\uff0c\u5219\u8868\u793a PHPStudy \u5df2\u6210\u529f\u4f7f\u7528 8080 \u7aef\u53e3\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f80\u7aef\u53e3\u4e0d\u80fd\u7528\u600e\u4e48\u89e3\u51b3\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>\u5f53 phpstudy \u7684 80 \u7aef\u53e3\u88ab\u5360\u7528\u65f6\uff1a\u4f7f\u7528\u547d\u4ee4\u67e5\u627e\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f\u7684\u8fdb\u7a0b id\u3002\u7ed3\u675f\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f\u3002\u4e3a phpstudy \u8bbe\u7f6e\u65b0\u7684\u7aef\u53e3\u3002\u91cd\u65b0\u542f\u52a8 apache\u3002\u9a8c\u8bc1 8080 \u7aef\u53e3\u662f\u5426\u53ef\u7528\u3002\u901a\u8fc7 http:\/\/localhost:8080 \u8bbf\u95ee phpstudy \u7f51\u7ad9\u3002 PHPStudy 80 \u7aef\u53e3\u88ab\u5360\u7528\u89e3\u51b3\u65b9\u6cd5 \u5f53 PHPStudy \u65e0\u6cd5\u4f7f\u7528 80 \u7aef\u53e3\u65f6\uff0c\u901a\u5e38\u8868\u793a\u8be5\u7aef\u53e3\u5df2\u88ab\u5176\u4ed6\u7a0b\u5e8f\u5360\u7528\u3002\u89e3\u51b3\u6b64\u95ee\u9898\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a 1. \u5bfb\u627e\u5360\u7528\u7aef\u53e3\u7684\u7a0b\u5e8f \u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a netstat -aon | findstr :80 \u767b\u5f55\u540e\u590d\u5236 \u8f93\u51fa\u5c06\u663e\u793a\u6b63\u5728\u4f7f\u7528 80 \u7aef\u53e3\u7684\u7a0b\u5e8f\u7684\u8fdb\u7a0b ID (PID)\u3002 2. \u7ed3\u675f\u5360\u7528\u7a0b\u5e8f \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7ed3\u675f\u5360\u7528\u7684\u7a0b\u5e8f\uff1a taskkill \/pid &lt;PID&gt; \/f \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d \u662f\u5360\u7528\u7a0b\u5e8f\u7684\u8fdb\u7a0b ID\u3002 3. \u4e3a PHPStudy \u914d\u7f6e\u65b0\u7684\u7aef\u53e3 \u6253\u5f00 PHPStudy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-17844","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17844","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=17844"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17844\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=17844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=17844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=17844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}