{"id":16889,"date":"2025-04-18T23:17:23","date_gmt":"2025-04-18T15:17:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/16889.html"},"modified":"2025-04-18T23:17:23","modified_gmt":"2025-04-18T15:17:23","slug":"%e3%80%90%e6%9c%8d%e5%8a%a1%e5%99%a8%e3%80%91%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%83%a8%e7%bd%b2%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/16889.html","title":{"rendered":"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b"},"content":{"rendered":"<\/p>\n<h4>\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b<\/h4>\n<ul>\n<li>\n<ul>\n<li>1\u3001\u4e91\u670d\u52a1\u5668\u914d\u7f6e<\/li>\n<li>2\u3001CentOS\u914d\u7f6e<\/li>\n<li>2\u3001Nginx\u914d\u7f6e<\/li>\n<li>3\u3001JDK\u914d\u7f6e<\/li>\n<li>4\u3001MySQL\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>1\u3001\u4e91\u670d\u52a1\u5668\u914d\u7f6e<\/h3>\n<li>\u8d2d\u4e70\u963f\u91cc\u4e91\/\u817e\u8baf\u4e91\/\u4eac\u4e1c\u4e91\u7b49\u4e91\u670d\u52a1\u5668<\/li>\n<li>\u5b89\u88c5\u7cfb\u7edf&#xff0c;\u5efa\u8bae\u4f7f\u7528\u539f\u7248CentOS-7.9<\/li>\n<li>\u5b89\u88c5\u5b89\u5168\u63d2\u4ef6&#xff08;aliyundun&#xff09;\u3001\u76d1\u63a7\u63d2\u4ef6&#xff08;aliyunmonitor&#xff09;<\/li>\n<li>\u4fee\u6539\u7f51\u7edc\u5b89\u5168\u7b56\u7565&#xff0c;\u5141\u8bb8\u7aef\u53e322\u300180\u3001443\u300133066&#xff08;Nginx\u4ee3\u7406MySQL&#xff09;<\/li>\n<h3>2\u3001CentOS\u914d\u7f6e<\/h3>\n<p>\u5f3a\u70c8\u5efa\u8bae&#xff1a;\u5c3d\u53ef\u80fd\u7684\u901a\u8fc7yum\u5b89\u88c5\u8f6f\u4ef6&#xff0c;\u81ea\u52a8\u5904\u7406\u4f9d\u8d56\u548c\u81ea\u52a8\u914d\u7f6e<\/p>\n<li>\u5207\u6362\u4e3a\u963f\u91cc\u4e91yum\u6e90&#xff08;\u52a0\u901f\u4e0b\u8f7d&#xff09;&#xff08;\u8f6c\u5230\u5b98\u7f51&#xff09;<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup  <span class=\"token comment\"># \u5907\u4efd\u539fyum\u6e90<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-O<\/span> \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo  <span class=\"token comment\"># \u6dfb\u52a0\u963f\u91cc\u4e91yum\u6e90<\/span>\n <\/li>\n<li>\u6dfb\u52a0\u963f\u91cc\u4e91epel\u6e90&#xff08;\u6269\u5c55\u5305&#xff09;&#xff08;\u8f6c\u5230\u5b98\u7f51&#xff09;<span class=\"token comment\"># \u5982\u6709\u5176\u4ed6epel\u6e90\u5148\u5907\u4efd<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> \/etc\/yum.repos.d\/epel.repo \/etc\/yum.repos.d\/epel.repo.backup<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> \/etc\/yum.repos.d\/epel-testing.repo \/etc\/yum.repos.d\/epel-testing.repo.backup<br \/>\n<span class=\"token comment\"># \u6dfb\u52a0\u963f\u91cc\u4e91epel\u6e90<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-O<\/span> \/etc\/yum.repos.d\/epel.repo https:\/\/mirrors.aliyun.com\/repo\/epel-7.repo\n <\/li>\n<h3>2\u3001Nginx\u914d\u7f6e<\/h3>\n<li>\n<p>\u6dfb\u52a0Nginx\u4ed3\u5e93&#xff08;\u8f6c\u5230\u5b98\u7f51&#xff09;<\/p>\n<p>\u65b0\u5efanginx.repo<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/yum.repos.d\/nginx.repo<\/p>\n<p>\u7c98\u8d34\u5185\u5bb9<\/p>\n<p> <span class=\"token punctuation\">[<\/span>nginx-stable<span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token assign-left variable\">name<\/span><span class=\"token operator\">&#061;<\/span>nginx stable repo<br \/>\n<span class=\"token assign-left variable\">baseurl<\/span><span class=\"token operator\">&#061;<\/span>http:\/\/nginx.org\/packages\/centos\/<span class=\"token variable\">$releasever<\/span>\/<span class=\"token variable\">$basearch<\/span>\/<br \/>\n<span class=\"token assign-left variable\">gpgcheck<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token assign-left variable\">enabled<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span><br \/>\n<span class=\"token assign-left variable\">gpgkey<\/span><span class=\"token operator\">&#061;<\/span>https:\/\/nginx.org\/keys\/nginx_signing.key<br \/>\n<span class=\"token assign-left variable\">module_hotfixes<\/span><span class=\"token operator\">&#061;<\/span>true\n <\/li>\n<li>\n<p>\u5b89\u88c5Nginx<\/p>\n<p>\u5b89\u88c5\u751f\u4ea7\u7a33\u5b9a\u7248&#xff08;\u5176\u4ed6\u7248\u672c\u53c2\u8003\u5b98\u7f51&#xff09;<\/p>\n<p> <span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> nginx\n <\/li>\n<li>\n<p>\u4fee\u6539\u4e3b\u914d\u7f6e<\/p>\n<p>\u6dfb\u52a0MySQL\u4ee3\u7406&#xff08;stream\u4e0ehttp\u914d\u7f6e\u540c\u7ea7&#xff0c;\u4f4d\u4e8e\/etc\/nginx\/nginx.conf&#xff09;<\/p>\n<p> <span class=\"token comment\"># \u4ee3\u7406MySQL<\/span><br \/>\nstream <span class=\"token punctuation\">{<\/span><br \/>\n    server <span class=\"token punctuation\">{<\/span><br \/>\n        listen <span class=\"token number\">33066<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        proxy_pass <span class=\"token number\">127.0<\/span>.0.1:3306<span class=\"token punctuation\">;<\/span> <span class=\"token comment\"># \u8f6c\u53d1\u5230\u5b9e\u9645\u7aef\u53e3<\/span><br \/>\n        proxy_connect_timeout 1s<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<li>\n<p>\u4fee\u6539\u5b50\u914d\u7f6e<\/p>\n<p>\u53c2\u8003\u9ed8\u8ba4\u914d\u7f6e\/etc\/nginx\/conf.d\/default.conf&#xff0c;\u65b0\u5efaxxx.conf<\/p>\n<p> server <span class=\"token punctuation\">{<\/span><br \/>\n    listen       <span class=\"token number\">88<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">#\u76d1\u542c\u7aef\u53e3<\/span><br \/>\n    server_name  localhost<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">#access_log  \/var\/log\/nginx\/host.access.log  main;<\/span><\/p>\n<p>    location \/ <span class=\"token punctuation\">{<\/span><br \/>\n        root   \/root\/hiya-web<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">#\u524d\u7aef\u9879\u76ee\u8def\u5f84<\/span><br \/>\n        index  index.html index.htm<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">#\u8f6c\u53d1\u540e\u7aef\u670d\u52a1&#xff08;\u5339\u914dURL\u4e2d\/api\/&#xff09;<\/span><br \/>\n    location ^~ \/api\/ <span class=\"token punctuation\">{<\/span><br \/>\n        proxy_pass http:\/\/127.0.0.1:8080\/<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">#\u524d\u7aef\u8bf7\u6c42\u8f6c\u53d1\u81f3\u540e\u7aef<\/span><br \/>\n        proxy_redirect off<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">#error_page  404              \/404.html;<\/span><\/p>\n<p>    <span class=\"token comment\"># redirect server error pages to the static page \/50x.html<\/span><br \/>\n    <span class=\"token comment\">#<\/span><br \/>\n    error_page   <span class=\"token number\">500<\/span> <span class=\"token number\">502<\/span> <span class=\"token number\">503<\/span> <span class=\"token number\">504<\/span>  \/50x.html<span class=\"token punctuation\">;<\/span><br \/>\n    location <span class=\"token operator\">&#061;<\/span> \/50x.html <span class=\"token punctuation\">{<\/span><br \/>\n        root   \/usr\/share\/nginx\/html<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5982\u679c\u62a5\u9519 403 Forbidden&#xff1a; 1\u3001\u67e5\u770bnginx\u7684\u7528\u6237root&#xff08;ps aux | grep nginx&#xff09;\u662f\u5426\u548c\/etc\/nginx\/nginx.conf\u4e2duser\u4e00\u81f4&#xff0c;\u4e0d\u4e00\u81f4\u5c31\u5c06user nginx\u6539\u6210user root 2\u3001\u4fee\u6539\u524d\u7aef\u9879\u76ee\u76ee\u5f55\u6743\u9650 chmod -R 777 \/root\/hiya-web<\/p>\n<\/li>\n<h3>3\u3001JDK\u914d\u7f6e<\/h3>\n<li>\u5b89\u88c5JDK<span class=\"token function\">sudo<\/span> <span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> https:\/\/download.oracle.com\/java\/21\/latest\/jdk-21_linux-x64_bin.rpm <span class=\"token comment\"># \u5b98\u7f51\u83b7\u53d6\u5177\u4f53\u7248\u672c\u5730\u5740<\/span>\n <\/li>\n<h3>4\u3001MySQL\u914d\u7f6e<\/h3>\n<p>\u8f6c\u5230\u5b98\u7f51<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u5b98\u65b9\u914d\u7f6e\u5305<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-ivh<\/span> https:\/\/dev.mysql.com\/get\/mysql84-community-release-el7-1.noarch <span class=\"token comment\"># \u5b98\u7f51\u83b7\u53d6\u5177\u4f53\u7248\u672c\u5730\u5740<\/span><br \/>\n<span class=\"token comment\"># \u67e5\u8be2\u53ef\u7528\u7248\u672c<\/span><br \/>\nyum list available <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> mysql-community<br \/>\n<span class=\"token comment\"># \u5b89\u88c5MySQL<\/span><br \/>\nyum <span class=\"token function\">install<\/span> mysql-community-server.x86_64<br \/>\n<span class=\"token comment\"># \u5f00\u673a\u542f\u52a8MySQL\u670d\u52a1<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mysqld<br \/>\n<span class=\"token comment\"># \u7acb\u5373\u542f\u52a8MySQL\u670d\u52a1<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start mysqld<br \/>\n<span class=\"token comment\"># \u67e5\u770broot\u4e34\u65f6\u5bc6\u7801&#xff08;\u4ec5\u53ef\u4f7f\u7528\u4e00\u6b21&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">grep<\/span> <span class=\"token string\">&#039;temporary password&#039;<\/span> \/var\/log\/mysqld.log<br \/>\n<span class=\"token comment\"># \u767b\u5f55mysql&#xff0c;\u4f7f\u7528\u4e34\u65f6\u5bc6\u7801<\/span><br \/>\nmysql <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p<\/span><br \/>\n<span class=\"token comment\"># \u4fee\u6539\u5bc6\u7801&#xff0c;\u5207\u8bb0\u5207\u8bb0&#xff01;<\/span><br \/>\nALTER <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;new_password&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\"># \u5982\u4e34\u65f6\u5bc6\u7801\u5931\u6548&#xff0c;\u91cd\u7f6eroot\u5bc6\u7801&#xff08;\u65b9\u6cd5\u6709\u591a\u79cd&#xff0c;\u4e0b\u9762\u4e3a\u5176\u4e00&#xff09;<\/span><br \/>\n<span class=\"token comment\"># \u4fee\u6539\u6587\u4ef6\/etc\/my.cnf&#xff0c;\u589e\u52a0\u914d\u7f6e\u884c skip-grant-tables (\u8bb0\u5f97\u6539\u5b8c\u5bc6\u7801\u540e\u5220\u9664\u5e76\u91cd\u542f)<\/span><br \/>\nsystemctl restart mysqld<br \/>\nmysql <span class=\"token parameter variable\">-uroot<\/span> <span class=\"token parameter variable\">-p<\/span><br \/>\nflush privileges<span class=\"token punctuation\">;<\/span><br \/>\nALTER <span class=\"token environment constant\">USER<\/span> <span class=\"token string\">&#039;root&#039;<\/span>&#064;<span class=\"token string\">&#039;localhost&#039;<\/span> IDENTIFIED BY <span class=\"token string\">&#039;new_password&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\"># \u4fee\u6539\u6587\u4ef6\/etc\/my.cnf&#xff0c;\u5220\u9664\u914d\u7f6e\u884c skip-grant-tables \u5e76\u91cd\u542fmysql<\/span><br \/>\n<span class=\"token comment\"># \u5982\u679c\u62a5\u9519: ERROR 1290 (HY000): The MySQL server is running with the &#8211;skip-grant-tables option so it cannot execute this statement&#xff0c;\u8bf7\u5148\u5237\u65b0\u6743\u9650 flush privileges \u518d\u6539\u5bc6; \u8fd8\u4e0d\u884c\u5c31\u91cd\u542f\u4e0b systemctl restart mysqld<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u6dfb\u52a0MySQL\u4ee3\u7406\uff08stream\u4e0ehttp\u914d\u7f6e\u540c\u7ea7\uff0c\u4f4d\u4e8e\u3002\u5b89\u88c5\u751f\u4ea7\u7a33\u5b9a\u7248\uff08\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u7248\u672c\uff0c\u53c2\u8003\u5b98\u7f51\uff09\u521b\u5efanginx.repo\u3002\u914d\u7f6eNginx\u4ed3\u5e93\uff08_\u4e91\u670d\u52a1\u5668\u90e8\u7f72<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-16889","post","type-post","status-publish","format-standard","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/16889.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u6dfb\u52a0MySQL\u4ee3\u7406\uff08stream\u4e0ehttp\u914d\u7f6e\u540c\u7ea7\uff0c\u4f4d\u4e8e\u3002\u5b89\u88c5\u751f\u4ea7\u7a33\u5b9a\u7248\uff08\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u7248\u672c\uff0c\u53c2\u8003\u5b98\u7f51\uff09\u521b\u5efanginx.repo\u3002\u914d\u7f6eNginx\u4ed3\u5e93\uff08_\u4e91\u670d\u52a1\u5668\u90e8\u7f72\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/16889.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:17:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16889.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/16889.html\",\"name\":\"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:17:23+00:00\",\"dateModified\":\"2025-04-18T15:17:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/16889.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/16889.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16889.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/16889.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e24\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u6dfb\u52a0MySQL\u4ee3\u7406\uff08stream\u4e0ehttp\u914d\u7f6e\u540c\u7ea7\uff0c\u4f4d\u4e8e\u3002\u5b89\u88c5\u751f\u4ea7\u7a33\u5b9a\u7248\uff08\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u7248\u672c\uff0c\u53c2\u8003\u5b98\u7f51\uff09\u521b\u5efanginx.repo\u3002\u914d\u7f6eNginx\u4ed3\u5e93\uff08_\u4e91\u670d\u52a1\u5668\u90e8\u7f72","og_url":"https:\/\/www.wsisp.com\/helps\/16889.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:17:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/16889.html","url":"https:\/\/www.wsisp.com\/helps\/16889.html","name":"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:17:23+00:00","dateModified":"2025-04-18T15:17:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/16889.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/16889.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/16889.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u670d\u52a1\u5668\u3011\u4e91\u670d\u52a1\u5668\u90e8\u7f72\u6d41\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=16889"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16889\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=16889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=16889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=16889"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=16889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}