{"id":15021,"date":"2025-04-18T21:42:28","date_gmt":"2025-04-18T13:42:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/15021.html"},"modified":"2025-04-18T21:42:28","modified_gmt":"2025-04-18T13:42:28","slug":"flask%e9%a1%b9%e7%9b%ae%e9%83%a8%e7%bd%b2%e5%88%b0%e9%98%bf%e9%87%8c%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e5%85%a8%e7%bd%91%e6%9c%80%e6%b8%85%e6%99%b0%e7%ae%80%e5%8d%95%e5%ae%8c%e6%95%b4-3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/15021.html","title":{"rendered":"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55"},"content":{"rendered":"<p>\u76ee\u5f55<\/p>\n<p>\u4e00\u3001\u83b7\u53d6\u514d\u8d39\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/p>\n<p>\u4e8c\u3001\u8fdc\u7a0b\u63a7\u5236\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/p>\n<p>\u4e09\u3001\u5b89\u88c5nginx&#xff08;web\u670d\u52a1\u5668&#xff09;<\/p>\n<p>1. \u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u5305&#xff1a;<\/p>\n<p>2. \u5b89\u88c5EPEL\u5b58\u50a8\u5e93<\/p>\n<p>3. \u5b89\u88c5Nginx<\/p>\n<p>4. \u542f\u52a8Nginx\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/p>\n<p>5. \u9a8c\u8bc1Nginx\u5b89\u88c5<\/p>\n<p>\u56db\u3001\u5b89\u88c5python\u865a\u62df\u73af\u5883<\/p>\n<p>1.\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python3\u53ca\u5176pip3:<\/p>\n<p>2. \u521b\u5efaPython\u865a\u62df\u73af\u5883<\/p>\n<p>3. \u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff1a;<\/p>\n<p>4. \u5b89\u88c5\u9879\u76ee\u6240\u9700Python\u5305<\/p>\n<p>5. \u9000\u51fa\u865a\u62df\u73af\u5883<\/p>\n<p>\u4e94\u3001\u5bfc\u5165\u9879\u76ee\u6587\u4ef6<\/p>\n<p>1. \u786e\u4fdd\u865a\u62df\u73af\u5883\u5df2\u6fc0\u6d3b<\/p>\n<p>2. \u914d\u7f6enginx<\/p>\n<p>3. \u786e\u4fddflask\u9879\u76ee\u4e2d\u5165\u53e3\u6587\u4ef6host&#061;\u20180.0.0.0\u2019<\/p>\n<p>4. \u5c06\u672c\u5730flask\u9879\u76ee\u6587\u4ef6&#xff08;\u5305\u62ec\u6e90\u4ee3\u7801\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u9759\u6001\u8d44\u6e90\u7b49&#xff09;\u590d\u5236\u5230\u865a\u62df\u73af\u5883\u6240\u5728\u7684\u76ee\u5f55\u4e0b<\/p>\n<p>5. \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5Gumicorn<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u83b7\u53d6\u514d\u8d39\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/h3>\n<p>\u6ca1\u6709\u670d\u52a1\u5668\u7684\u8bdd\u53ef\u4ee5\u5728\u963f\u91cc\u4e91\u83b7\u53d6\u514d\u8d39\u670d\u52a1\u5668<\/p>\n<p>\u963f\u91cc\u4e91-\u8ba1\u7b97&#xff0c;\u4e3a\u4e86\u65e0\u6cd5\u8ba1\u7b97\u7684\u4ef7\u503c<\/p>\n<h3>\u4e8c\u3001\u8fdc\u7a0b\u63a7\u5236\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/h3>\n<p>\u672c\u6587\u4f7f\u7528\u7684XShell7<\/p>\n<h3>\u4e09\u3001\u5b89\u88c5nginx&#xff08;web\u670d\u52a1\u5668&#xff09;<\/h3>\n<p>\u5728\u90e8\u7f72flask\u9879\u76ee\u65f6\u5019&#xff0c;\u56e0\u4e3aflask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python Web\u6846\u67b6&#xff0c;\u5176\u672c\u8eab\u5e76\u4e0d\u5305\u542b\u4e00\u4e2a\u6210\u719f\u7684Web\u670d\u52a1\u5668\u7ec4\u4ef6&#xff0c;\u800c\u662f\u4f9d\u8d56\u4e8e\u5185\u7f6e\u7684\u7b80\u6613\u670d\u52a1\u5668&#xff08;werkzeug&#xff09;<\/p>\n<h4>1. \u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u5305&#xff1a;<\/h4>\n<p>sudo yum update<\/p>\n<h4>2. \u5b89\u88c5EPEL\u5b58\u50a8\u5e93<\/h4>\n<p>sudo yum install epel-release<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c24d0c5.png\" alt=\"\" \/><\/p>\n<h4>3. \u5b89\u88c5Nginx<\/h4>\n<p>sudo yum install nginx<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c278476.png\" alt=\"\" \/><\/p>\n<h4>4. \u542f\u52a8Nginx\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/h4>\n<p>sudo systemctl start nginx<\/p>\n<p>\u4e3a\u4e86\u8ba9Nginx\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u8fd0\u884c&#xff0c;\u6267\u884c&#xff1a;<\/p>\n<p>sudo systemctl enable nginx<\/p>\n<h4>5. \u9a8c\u8bc1Nginx\u5b89\u88c5<\/h4>\n<p>(1) \u547d\u4ee4\u884c\u68c0\u67e5Nginx\u670d\u52a1\u72b6\u6001&#xff1a;<\/p>\n<p>sudo systemctl status nginx<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c2a2b4e.png\" alt=\"\" \/><\/p>\n<p>(2) \u6d4f\u89c8\u5668\u8bbf\u95ee\u670d\u52a1\u5668\u7684\u516c\u5171IP\u5730\u5740<\/p>\n<p>Nginx\u9ed8\u8ba4\u76d1\u542c\u572880\u7aef\u53e3&#xff0c;\u5916\u90e8\u60f3\u4f7f\u7528nginx\u5c31\u9700\u8981\u4e91\u670d\u52a1\u5668\u5f00\u53d180\u7aef\u53e3&#xff0c;\u5728\u4e91\u670d\u52a1\u5668\u63a7\u5236\u53f0\u7684\u5de6\u4fa7\u5bfc\u822a\u680f\u627e\u5230\u5b89\u5168\u7ec4&#xff0c;\u70b9\u8fdb\u5b89\u5168\u7ec4<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c2d7b46.png\" alt=\"\" \/><\/p>\n<p>\u70b9\u8fdb\u540e&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c316fdf.png\" alt=\"\" \/><\/p>\n<p>\u70b9\u51fb\u624b\u52a8\u6dfb\u52a0&#xff0c;\u6388\u6743\u7b56\u7565&#xff1a;\u9ed8\u8ba4&#xff08;\u5141\u8bb8&#xff09;&#xff1b;\u4f18\u5148\u7ea7\u9ed8\u8ba4&#xff1a;\u9ed8\u8ba4&#xff08;1&#xff09;&#xff1b;\u534f\u8bae\u7c7b\u578b&#xff1a;\u9ed8\u8ba4&#xff08;TCP&#xff09;&#xff1b;\u7aef\u53e3&#xff1a; 80 &#xff1b;\u6388\u6743\u5bf9\u8c61&#xff1a;0.0.0.0\/0\u3002<\/p>\n<p>\u8868\u793a\u5141\u8bb8\u6240\u6709\u5916\u90e8IP\u5730\u5740\u8bbf\u95ee&#xff0c;\u7136\u540e\u70b9\u51fb\u4fdd\u5b58\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c33f579.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u4e0d\u80fd\u8bbf\u95ee&#xff0c;\u53ef\u80fd\u662f\u9632\u706b\u5899\u7684\u95ee\u9898&#xff0c;\u5173\u95ed\u9632\u706b\u5899\u6216\u8005\u5141\u8bb8nginx\u7aef\u53e3\u3002<\/p>\n<h3>\u56db\u3001\u5b89\u88c5python\u865a\u62df\u73af\u5883<\/h3>\n<h4>1.\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u5b89\u88c5Python3\u53ca\u5176pip3:<\/h4>\n<p>python3 &#8211;version<br \/>\npip3 &#8211;version<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c36747d.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u6216\u7248\u672c\u8fc7\u4f4e&#xff1a;<\/p>\n<p>sudo yum install python3 python3-devel python3-pip<\/p>\n<h4>2. \u521b\u5efaPython\u865a\u62df\u73af\u5883<\/h4>\n<p>\u5728root\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u73af\u5883&#xff1a;<\/p>\n<p>mkdir my_flaskProject<br \/>\ncd my_flaskProject<br \/>\npython3 -m venv my_venv<\/p>\n<p>\u8fd9\u91ccmy_venv\u662f\u865a\u62df\u673a\u73af\u5883\u7684\u540d\u79f0&#xff0c;\u53ef\u4ee5\u81ea\u5df1\u547d\u540d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c3808c0.png\" alt=\"\" \/><\/p>\n<h4>3. \u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff1a;<\/h4>\n<p>source my_venv\/bin\/activate<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c3a43f9.png\" alt=\"\" \/><\/p>\n<p>\u6fc0\u6d3b\u540e&#xff0c;\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u5b57&#xff08;my_venv&#xff09;,\u8fd9\u8868\u660e\u5f53\u524d\u6b63\u5904\u4e8e\u6b64\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u547d\u4ee4&#xff0c;\u6b64\u65f6\u5b89\u88c5\u7684Python\u5305\u5c06\u53ea\u5728\u8fd9\u4e2a\u73af\u5883\u4e2d\u751f\u6548&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002<\/p>\n<h4>4. \u5b89\u88c5\u9879\u76ee\u6240\u9700Python\u5305<\/h4>\n<p>\u5728\u865a\u73af\u5883\u4e2d&#xff0c;\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5Flask\u548c\u5176\u4ed6\u9879\u76ee\u4f9d\u8d56&#xff1a;<\/p>\n<p>pip install Flask<br \/>\npip install -r requirements.txt  # \u5982\u679c\u5b58\u5728requirements.txt\u6587\u4ef6<\/p>\n<h4>5. \u9000\u51fa\u865a\u62df\u73af\u5883<\/h4>\n<p>\u5b8c\u6210\u5f00\u53d1\u6216\u90e8\u7f72\u4efb\u52a1\u540e&#xff0c;\u8981\u9000\u51fa\u5f53\u524d\u865a\u62df\u73af\u5883&#xff0c;\u53ea\u9700\u8fd0\u884c&#xff1a;<\/p>\n<p>deactivate<\/p>\n<h3>\u4e94\u3001\u5bfc\u5165\u9879\u76ee\u6587\u4ef6<\/h3>\n<h4>1. \u786e\u4fdd\u865a\u62df\u73af\u5883\u5df2\u6fc0\u6d3b<\/h4>\n<p>\u5982\u679c\u672a\u6fc0\u6d3b&#xff1a;<\/p>\n<p>source \/root\/my_flaskProject\/my_venv\/bin\/activate<\/p>\n<p>\u53ef\u80fd\u4f1a\u63d0\u793a\u9519\u8bef\u4fe1\u606f&#xff1a;Permission denied \u8868\u793a\u5f53\u524d\u6ca1\u6709\u8db3\u591f\u7684\u6743\u9650\u6765\u6267\u884c activate \u811a\u672c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c3bb214.png\" alt=\"\" \/><\/p>\n<p>\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>chmod &#043;x \/root\/my_flaskProject\/my_venv\/bin\/activate<\/p>\n<p>\u8d4b\u4e88 activate \u811a\u672c\u6267\u884c\u6743\u9650<\/p>\n<p>\u518d\u6b21\u6fc0\u6d3b&#xff0c;\u524d\u9762\u51fa\u73b0&#xff08;my_venv&#xff09;\u6fc0\u6d3b\u6210\u529f&#xff01;<\/p>\n<h4>2. \u914d\u7f6enginx<\/h4>\n<p>\u7f16\u8f91Nginx\u7684\u670d\u52a1\u5668\u914d\u7f6e\u6587\u4ef6&#xff0c;\u901a\u5e38\u4f4d\u4e8e\/etc\/nginx\/sites-available\/\u76ee\u5f55\u4e0b&#xff0c;\u5982\u679c\u6ca1\u6709sites-available\u8fd9\u4e2a\u76ee\u5f55&#xff0c;\u53ef\u6309\u7167\u5982\u4e0b\u8fdb\u884c\u914d\u7f6e&#xff1a;<\/p>\n<p>\u6253\u5f00\/etc\/nginx\/nginx.conf\u6587\u4ef6&#xff0c;\u5728http{\u2026}\u5757\u5185\u6dfb\u52a0<\/p>\n<p>server {<br \/>\n  listen 80;  # \u76d1\u542c\u516c\u7f51\u7aef\u53e3&#xff08;\u6b64\u5904\u4e3a\u6807\u51c6HTTP\u7aef\u53e380&#xff09;<br \/>\n  server_name your_domain.com;  # \u66ff\u6362\u4e3a\u60a8\u7684\u57df\u540d\u6216\u516c\u7f51IP<\/p>\n<p>  location \/ {<br \/>\n  proxy_pass http:\/\/localhost:5000;  # \u66ff\u6362\u4e3a\u9879\u76ee\u5b9e\u9645\u76d1\u542c\u7684\u672c\u5730\u7aef\u53e3<br \/>\n  proxy_set_header Host $host;<br \/>\n  proxy_set_header X-Real-IP $remote_addr;<br \/>\n  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n  proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n  }<br \/>\n}<\/p>\n<p>\u8fd9\u6bb5\u914d\u7f6e\u662f\u544a\u8bc9Nginx\u76d1\u542c\u516c\u7f51\u7aef\u53e380&#xff0c;\u5e76\u5c06\u6240\u6709\u5230\u6b64\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u7aef\u53e38080&#xff08;\u662f\u4f60\u7684python\u9879\u76ee\u672c\u5730\u8fd0\u884c\u7684\u7aef\u53e3&#xff09;\u3002\u540c\u65f6\u8bbe\u7f6e\u4e86\u5fc5\u8981\u7684\u4ee3\u7406\u5934\u4fe1\u606f\u3002<\/p>\n<p>\u91cd\u542fNginx\u670d\u52a1&#xff1a;<\/p>\n<p>sudo systemctl restart nginx<\/p>\n<p>\u68c0\u67e5\u914d\u7f6e\u548c\u65e5\u5fd7<\/p>\n<p>nginx -t<\/p>\n<h4>3. \u786e\u4fddflask\u9879\u76ee\u4e2d\u5165\u53e3\u6587\u4ef6host&#061;\u20180.0.0.0\u2019<\/h4>\n<p>\u7aef\u53e3\u53f7\u4e3a\u4e0a\u8ff0\u5728nginx\u914d\u7f6e\u7684\u9879\u76ee\u5b9e\u9645\u76d1\u542c\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n    app.run(host&#061;&#039;0.0.0.0&#039;, port&#061;5000, debug&#061;True)<\/p>\n<h4>4. \u5c06\u672c\u5730flask\u9879\u76ee\u6587\u4ef6&#xff08;\u5305\u62ec\u6e90\u4ee3\u7801\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u9759\u6001\u8d44\u6e90\u7b49&#xff09;\u590d\u5236\u5230\u865a\u62df\u73af\u5883\u6240\u5728\u7684\u76ee\u5f55\u4e0b<\/h4>\n<p>cp -r \/path\/to\/your_project \/root\/my_flaskProject\/my_venv\/<\/p>\n<p>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf&#xff1a;\u5982\u679c\u5e94\u7528\u521d\u59cb\u5316\u5728app.py\u6587\u4ef6\u4e2d\u5219&#xff1a;<\/p>\n<p>export FLASK_APP&#061;app.py<\/p>\n<p>\u5982\u679c\u662f\u5176\u4ed6\u6587\u4ef6&#xff0c;\u4f8b\u5982\u5165\u53e3\u5728myflask.py\u4e2d\u5219&#xff1a;<\/p>\n<p>export FLASK_APP&#061;myflask &#xff08;\u53bb\u6389.py&#xff09;<\/p>\n<p>\u8fd0\u884c&#xff1a;flask run<\/p>\n<p>netstat -tulpn | grep :5000<\/p>\n<p>\u67e5\u770b\u7aef\u53e35000\u8fdb\u7a0b<\/p>\n<p>\u6740\u6b7b\u8fdb\u7a0b&#xff1a;kill -9 \u8fdb\u7a0bid<\/p>\n<h4>5. \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5Gumicorn<\/h4>\n<p>\u865a\u62df\u73af\u5883&#xff08;\u5982\u4f7f\u7528 virtualenv \u6216 conda \u521b\u5efa\u7684\u73af\u5883&#xff09;\u4e3a\u9879\u76ee\u63d0\u4f9b\u4e86\u72ec\u7acb\u7684Python\u8fd0\u884c\u73af\u5883\u3002\u5728\u5176\u4e2d\u5b89\u88c5Gunicorn\u548c\u5176\u4ed6\u4f9d\u8d56&#xff0c;\u53ef\u4ee5\u786e\u4fdd\u9879\u76ee\u4f7f\u7528\u7684\u662f\u7279\u5b9a\u7248\u672c\u7684\u8f6f\u4ef6\u5305&#xff0c;\u907f\u514d\u4e0e\u5176\u4ed6\u9879\u76ee\u6216\u7cfb\u7edf\u5168\u5c40\u5305\u4ea7\u751f\u7248\u672c\u51b2\u7a81\u3002\u8fd9\u6837&#xff0c;\u6bcf\u4e2aFlask\u5e94\u7528\u53ef\u4ee5\u62e5\u6709\u81ea\u5df1\u7684\u4f9d\u8d56\u96c6&#xff0c;\u6613\u4e8e\u7ba1\u7406\u548c\u66f4\u65b0&#xff0c;\u4e14\u4e0d\u4f1a\u5f71\u54cd\u5230\u670d\u52a1\u5668\u4e0a\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>pip install gunicorn<\/p>\n<p>\u914d\u7f6eGunicorn\u8fd0\u884cFlask\u5e94\u7528&#xff1a; \u521b\u5efa\u4e00\u4e2aGunicorn\u542f\u52a8\u811a\u672c&#xff1a;<\/p>\n<p>vim gunicorn_start.sh<\/p>\n<p>#!\/bin\/bash<\/p>\n<p># \u8bbe\u7f6e\u5de5\u4f5c\u76ee\u5f55&#xff08;\u8fd9\u91cc\u66ff\u6362\u6210\u60a8\u7684Flask\u5e94\u7528\u6240\u5728\u7684\u76ee\u5f55&#xff09;<br \/>\nworking_directory&#061;&#034; \/root\/my_flaskProject\/my_venv\/&#034;<\/p>\n<p># \u5207\u6362\u5230\u5de5\u4f5c\u76ee\u5f55<br \/>\ncd &#034;$working_directory&#034;<\/p>\n<p># \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u5982\u679c\u9002\u7528<br \/>\nexport FLASK_APP&#061;myflask.py<br \/>\nexport FLASK_ENV&#061;production<\/p>\n<p># \u542f\u52a8Gunicorn&#xff0c;\u6307\u5b9a\u76d1\u542c\u5730\u5740\u548c\u7aef\u53e3&#xff0c;\u4ee5\u53ca\u5e94\u7528\u5165\u53e3\u70b9<\/p>\n<p>exec gunicorn &#8211;bind 0.0.0.0:5000 myflask:app<\/p>\n<p>\u7ed9\u542f\u52a8\u811a\u672c\u8d4b\u4e88\u6743\u9650&#xff1a;<\/p>\n<p>chmod &#043;x gunicorn_start.sh<\/p>\n<p>\u542f\u52a8Gunicorn\u670d\u52a1&#xff1a;<\/p>\n<p>.\/gunicorn_start.sh<\/p>\n<p>\u6210\u529f\u540e&#xff0c;\u53ef\u4ee5\u67e5\u770b\u8fdb\u7a0b<\/p>\n<p>\u7136\u540e\u5728nginx.conf\u914d\u7f6e&#xff08;\u521a\u521a\u5728\u5bfc\u5165\u9879\u76ee\u65f6\u5176\u5b9e\u5df2\u7ecf\u914d\u7f6e\u8fc7\u2026&#xff09;&#xff1a;<\/p>\n<p>server {<br \/>\nlisten 80;  # \u76d1\u542c\u516c\u7f51\u7aef\u53e3&#xff08;\u6b64\u5904\u4e3a\u6807\u51c6HTTP\u7aef\u53e380&#xff09;<br \/>\nserver_name 114.55.118.198;  # \u66ff\u6362\u4e3a\u60a8\u7684\u57df\u540d\u6216\u516c\u7f51IP<\/p>\n<p>location \/ {<br \/>\nproxy_pass http:\/\/localhost:5000;  # \u66ff\u6362\u4e3a\u9879\u76ee\u5b9e\u9645\u76d1\u542c\u7684\u672c\u5730\u7aef\u53e3<br \/>\nproxy_set_header Host $host;<br \/>\nproxy_set_header X-Real-IP $remote_addr;<br \/>\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\nproxy_set_header X-Forwarded-Proto $scheme;<br \/>\nproxy_redirect off;<br \/>\nproxy_buffering off;<br \/>\nproxy_http_version 1.1;<br \/>\nproxy_set_header Upgrade $http_upgrade;<br \/>\nproxy_set_header Connection &#034;upgrade&#034;;<br \/>\nproxy_read_timeout 600s;<br \/>\n}<br \/>\n}<\/p>\n<p>\u5b8c\u6210\u914d\u7f6e\u540e&#xff0c;\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\u4ee5\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u7684\u6b63\u786e\u6027\u5e76\u91cd\u542fNginx\u670d\u52a1&#xff1a;<\/p>\n<p>sudo nginx -t<br \/>\nsudo systemctl restart nginx<\/p>\n<p>\u542f\u52a8Gunicorn\u670d\u52a1&#xff1a; \u901a\u8fc7\u6267\u884c\u8be5\u811a\u672c\u6765\u542f\u52a8Gunicorn\u670d\u52a1&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134227-680256c3d090b.png\" alt=\"\" \/><\/p>\n<p>\u5982\u679c\u5148\u524d\u6709\u8fd0\u884c\u7684\u7aef\u53e3\u5360\u7528&#xff0c;\u6740\u6b7b\u8fdb\u7a0b\u91cd\u65b0\u542f\u52a8<\/p>\n<p>\u6253\u5f00\u516c\u7f51\u5730\u5740&#xff01;\u6210\u529f&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u5b57\uff08my_venv\uff09,\u8fd9\u8868\u660e\u5f53\u524d\u6b63\u5904\u4e8e\u6b64\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u547d\u4ee4\uff0c\u6b64\u65f6\u5b89\u88c5\u7684Python\u5305\u5c06\u53ea\u5728\u8fd9\u4e2a\u73af\u5883\u4e2d\u751f\u6548\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002\u5728\u90e8\u7f72flask\u9879\u76ee\u65f6\u5019\uff0c\u56e0\u4e3aflask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python Web\u6846\u67b6\uff0c\u5176\u672c\u8eab\u5e76\u4e0d\u5305\u542b\u4e00\u4e2a\u6210\u719f\u7684Web\u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u800c\u662f\u4f9d\u8d56\u4e8e\u5185\u7f6e\u7684\u7b80\u6613\u670d\u52a1\u5668\uff08werkzeug\uff09\u8fd9\u6bb5\u914d\u7f6e\u662f\u544a\u8bc9Nginx\u76d1\u542c\u516c\u7f51\u7aef\u53e380\uff0c\u5e76\u5c06\u6240\u6709\u5230\u6b64\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u7aef\u53e38080\uff08\u662f\u4f60\u7684python\u9879\u76ee\u672c\u5730\u8fd0\u884c\u7684\u7aef\u53e3\uff09\u3002\u4f18\u5148\u7ea7\u9ed8\u8ba4\uff1a\u9ed8\u8ba4\uff081\uff09\uff1b_\u963f\u91cc\u4e91flask\u9879\u76ee\u90e8\u7f72<\/p>\n","protected":false},"author":2,"featured_media":15010,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[153,177,43,96,178,176],"topic":[],"class_list":["post-15021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-flask","tag-177","tag-43","tag-96","tag-178","tag-176"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \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\/15021.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u5b57\uff08my_venv\uff09,\u8fd9\u8868\u660e\u5f53\u524d\u6b63\u5904\u4e8e\u6b64\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u547d\u4ee4\uff0c\u6b64\u65f6\u5b89\u88c5\u7684Python\u5305\u5c06\u53ea\u5728\u8fd9\u4e2a\u73af\u5883\u4e2d\u751f\u6548\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002\u5728\u90e8\u7f72flask\u9879\u76ee\u65f6\u5019\uff0c\u56e0\u4e3aflask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python Web\u6846\u67b6\uff0c\u5176\u672c\u8eab\u5e76\u4e0d\u5305\u542b\u4e00\u4e2a\u6210\u719f\u7684Web\u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u800c\u662f\u4f9d\u8d56\u4e8e\u5185\u7f6e\u7684\u7b80\u6613\u670d\u52a1\u5668\uff08werkzeug\uff09\u8fd9\u6bb5\u914d\u7f6e\u662f\u544a\u8bc9Nginx\u76d1\u542c\u516c\u7f51\u7aef\u53e380\uff0c\u5e76\u5c06\u6240\u6709\u5230\u6b64\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u7aef\u53e38080\uff08\u662f\u4f60\u7684python\u9879\u76ee\u672c\u5730\u8fd0\u884c\u7684\u7aef\u53e3\uff09\u3002\u4f18\u5148\u7ea7\u9ed8\u8ba4\uff1a\u9ed8\u8ba4\uff081\uff09\uff1b_\u963f\u91cc\u4e91flask\u9879\u76ee\u90e8\u7f72\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/15021.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-18T13:42:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c24d0c5.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15021.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/15021.html\",\"name\":\"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T13:42:28+00:00\",\"dateModified\":\"2025-04-18T13:42:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/15021.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/15021.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15021.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55\"}]},{\"@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":"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \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\/15021.html","og_locale":"zh_CN","og_type":"article","og_title":"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1k\u6b21\uff0c\u70b9\u8d5e11\u6b21\uff0c\u6536\u85cf26\u6b21\u3002\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u524d\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u5b57\uff08my_venv\uff09,\u8fd9\u8868\u660e\u5f53\u524d\u6b63\u5904\u4e8e\u6b64\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u547d\u4ee4\uff0c\u6b64\u65f6\u5b89\u88c5\u7684Python\u5305\u5c06\u53ea\u5728\u8fd9\u4e2a\u73af\u5883\u4e2d\u751f\u6548\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40Python\u73af\u5883\u3002\u5728\u90e8\u7f72flask\u9879\u76ee\u65f6\u5019\uff0c\u56e0\u4e3aflask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python Web\u6846\u67b6\uff0c\u5176\u672c\u8eab\u5e76\u4e0d\u5305\u542b\u4e00\u4e2a\u6210\u719f\u7684Web\u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u800c\u662f\u4f9d\u8d56\u4e8e\u5185\u7f6e\u7684\u7b80\u6613\u670d\u52a1\u5668\uff08werkzeug\uff09\u8fd9\u6bb5\u914d\u7f6e\u662f\u544a\u8bc9Nginx\u76d1\u542c\u516c\u7f51\u7aef\u53e380\uff0c\u5e76\u5c06\u6240\u6709\u5230\u6b64\u670d\u52a1\u5668\u7684\u8bf7\u6c42\u8f6c\u53d1\u5230\u672c\u5730\u7aef\u53e38080\uff08\u662f\u4f60\u7684python\u9879\u76ee\u672c\u5730\u8fd0\u884c\u7684\u7aef\u53e3\uff09\u3002\u4f18\u5148\u7ea7\u9ed8\u8ba4\uff1a\u9ed8\u8ba4\uff081\uff09\uff1b_\u963f\u91cc\u4e91flask\u9879\u76ee\u90e8\u7f72","og_url":"https:\/\/www.wsisp.com\/helps\/15021.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T13:42:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418134226-680256c24d0c5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/15021.html","url":"https:\/\/www.wsisp.com\/helps\/15021.html","name":"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T13:42:28+00:00","dateModified":"2025-04-18T13:42:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/15021.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/15021.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/15021.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Flask\u9879\u76ee\u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\uff08\u5168\u7f51\u6700\u6e05\u6670\u7b80\u5355\u5b8c\u6574\u90e8\u7f72\uff09\uff0clinux\u547d\u4ee4\u548c\u811a\u672c\u6587\u4ef6 nginx\u5b89\u88c5\u5230\u670d\u52a1\u5668\u7b49\u6bcf\u4e00\u6b65\u6e05\u6670\u8bb0\u5f55"}]},{"@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\/15021","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=15021"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15021\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/15010"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=15021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=15021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=15021"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=15021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}