{"id":51724,"date":"2024-12-03T13:32:57","date_gmt":"2024-12-03T05:32:57","guid":{"rendered":"https:\/\/fwq.ai\/blog\/51724\/"},"modified":"2024-12-03T13:32:57","modified_gmt":"2024-12-03T05:32:57","slug":"%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bf%e7%9a%84python%e3%80%81golang%e7%ad%89%e8%af%ad%e8%a8%80%e7%9a%84%e7%bc%96%e8%af%91%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/51724\/","title":{"rendered":"\u5b9d\u5854\u9762\u677f\u7684Python\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5b9d\u5854\u9762\u677f\u7684Python\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e<\/h1>\n<p>\u5728Linux\u670d\u52a1\u5668\u7ba1\u7406\u4e2d\uff0c\u5b9d\u5854\u9762\u677f\u63d0\u4f9b\u4e86\u4e00\u952e\u914d\u7f6e\u5e38\u89c1\u7684\u8bed\u8a00\u73af\u5883\uff0c\u5982PHP\u3001MySQL\u3001Nginx\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u7f16\u8bd1\u914d\u7f6ePython\u3001Golang\u7b49\u7f16\u7a0b\u8bed\u8a00\u7684\u65b9\u6cd5\u3002\u8be6\u7ec6\u6b65\u9aa4\u5305\u62ec\uff1a **Python\u7f16\u8bd1\u914d\u7f6e** &#8211; \u5b89\u88c5\u5176\u4ed6Python\u7248\u672c &#8211; \u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93\uff08\u4ee5MySQL-Python\u4e3a\u4f8b\uff09 **Golang\u7f16\u8bd1\u914d\u7f6e** &#8211; \u5b89\u88c5Golang\u7f16\u8bd1\u5668 &#8211; \u7f16\u8bd1Golang\u7a0b\u5e8f\uff08\u4ee5hello.go\u7a0b\u5e8f\u4e3a\u4f8b\uff09 \u901a\u8fc7\u5b66\u4e60\u8fd9\u4e9b\u7f16\u8bd1\u914d\u7f6e\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3001Golang\u7b49\u8bed\u8a00\uff0c\u4ece\u800c\u62d3\u5c55\u670d\u52a1\u5668\u5e94\u7528\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u80fd\u529b\u3002<\/p>\n<p>\u5b9d\u5854\u9762\u677f\u662f\u4e00\u4e2a\u6d41\u884c\u7684Linux\u670d\u52a1\u5668\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u65b9\u4fbf\u7684\u529f\u80fd\uff0c\u5982PHP\u3001MySQL\u3001Nginx\u3001Apache\u7b49\u7684\u4e00\u952e\u5b89\u88c5\u548c\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u5f53\u6211\u4eec\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982Python\u3001Golang\u7b49\u65f6\uff0c\u5b9d\u5854\u9762\u677f\u9700\u8981\u8fdb\u884c\u76f8\u5e94\u7684\u7f16\u8bd1\u914d\u7f6e\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u8fdb\u884cPython\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\uff0c\u8ba9\u60a8\u66f4\u65b9\u4fbf\u5730\u4f7f\u7528\u8fd9\u4e9b\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<ol>\n<li>Python\u7f16\u8bd1\u914d\u7f6e<\/li>\n<\/ol>\n<p>Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u5177\u6709\u7b80\u5355\u6613\u5b66\u3001\u4e30\u5bcc\u7684\u5e93\u548c\u5f3a\u5927\u7684\u529f\u80fd\u3002\u5728\u5b9d\u5854\u9762\u677f\u4e2d\uff0c\u9ed8\u8ba4\u5b89\u88c5\u4e86Python2.7\u548cPython3.7\u7248\u672c\uff0c\u5982\u679c\u60a8\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python\u6216\u8005\u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93\uff0c\u5219\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002<\/p>\n<p>1.1 \u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python<\/p>\n<p>\u6b65\u9aa41\uff1a\u6253\u5f00\u5b9d\u5854\u9762\u677f\uff0c\u9009\u62e9\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u201cPython\u201d\u5e94\u7528\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a\u5728Python\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u60a8\u9700\u8981\u5b89\u88c5\u7684Python\u7248\u672c\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae\u3002\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u3002<\/p>\n<p>\u6b65\u9aa43\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u6216SSH\u7ec8\u7aef\uff0c\u8f93\u5165python\u547d\u4ee4\u6765\u68c0\u67e5\u65b0\u7248\u672c\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>1.2 \u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93<\/p>\n<p>\u5982\u679c\u60a8\u9700\u8981\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u60a8\u9700\u8981\u5c06\u5176\u7f16\u8bd1\u4e3aPython\u53ef\u7528\u7684\u5e93\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u7f16\u8bd1MySQL-Python\u5e93\u3002<\/p>\n<p>\u6b65\u9aa41\uff1a\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u9009\u62e9\u201c\u6587\u4ef6\u7ba1\u7406\u5668\u201d\uff0c\u8fdb\u5165\u60a8\u8981\u5b89\u88c5MySQL-Python\u5e93\u7684\u76ee\u5f55\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a\u5728\u8be5\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\uff0c\u53d6\u540d\u201cmysql-python\u201d\u3002\u5c06\u4eceMySQL-Python\u5b98\u7f51\u4e0b\u8f7d\u7684\u6e90\u4ee3\u7801\u89e3\u538b\u7f29\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\u3002\u7136\u540e\uff0c\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>cd \/www\/wwwroot\/yourwebsite.com\/mysql-python\npython setup.py install<\/pre>\n<p>\u6b65\u9aa43\uff1a\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u60a8\u5e94\u8be5\u53ef\u4ee5\u5728Python\u4ee3\u7801\u4e2d\u5bfc\u5165MySQLdb\u5e93\u4e86\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>import MySQLdb<\/pre>\n<ol>\n<li>Golang\u7f16\u8bd1\u914d\u7f6e<\/li>\n<\/ol>\n<p>Golang\u662f\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u62e5\u6709\u5feb\u901f\u7684\u7f16\u8bd1\u901f\u5ea6\u548c\u9ad8\u6548\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002\u5728\u5b9d\u5854\u9762\u677f\u4e2d\uff0c\u9ed8\u8ba4\u6ca1\u6709\u5b89\u88c5Golang\u7f16\u8bd1\u5668\u3002\u5982\u679c\u60a8\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u7f16\u8bd1Golang\u7a0b\u5e8f\uff0c\u60a8\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002<\/p>\n<p>\u6b65\u9aa41\uff1a\u6253\u5f00\u5b9d\u5854\u9762\u677f\uff0c\u9009\u62e9\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u201c\u5b89\u88c5\u8f6f\u4ef6\u201d\u9009\u9879\u3002\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cGolang\u201d\uff0c\u7136\u540e\u6309\u7167\u63d0\u793a\u5b89\u88c5\u3002<\/p>\n<p>\u6b65\u9aa42\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5Golang\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<pre>go version<\/pre>\n<p>\u6b65\u9aa43\uff1a\u5982\u679c\u60a8\u9700\u8981\u7f16\u8bd1\u4e00\u4e2aGolang\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>go build hello.go<\/pre>\n<p>\u5176\u4e2d\uff0chello.go\u662f\u60a8\u7684Golang\u7a0b\u5e8f\u4ee3\u7801\u6587\u4ef6\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u5c06\u4f1a\u751f\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u6267\u884c\u8fd9\u4e2a\u6587\u4ef6\u4ee5\u8fd0\u884c\u60a8\u7684\u7a0b\u5e8f\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u8fdb\u884cPython\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\u3002\u8fd9\u4e9b\u7f16\u7a0b\u8bed\u8a00\u5728\u670d\u52a1\u5668\u5e94\u7528\u4e2d\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u719f\u7ec3\u638c\u63e1\u5b83\u4eec\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u6cd5\u3002\u6211\u4eec\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u4e3a\u60a8\u63d0\u4f9b\u6709\u7528\u7684\u6307\u5bfc\u548c\u5e2e\u52a9\u3002<\/p>\n<p>\u7406\u8bba\u8981\u638c\u63e1\uff0c\u5b9e\u64cd\u4e0d\u80fd\u843d\uff01\u4ee5\u4e0a\u5173\u4e8e\u300a\u5b9d\u5854\u9762\u677f\u7684Python\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\u300b\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5927\u5bb6\u90fd\u638c\u63e1\u4e86\u5427\uff01\u5982\u679c\u60f3\u8981\u7ee7\u7eed\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u5c31\u6765\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u5427\uff01<\/p>\n<dl>\n<dt><\/dt>\n<dd>\n   Java API \u5f00\u53d1\u4e2d\u4f7f\u7528 Apache HttpClient \u8fdb\u884c HTTP \u8bf7\u6c42\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9d\u5854\u9762\u677f\u7684Python\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e \u5728Linux\u670d\u52a1\u5668\u7ba1\u7406\u4e2d\uff0c\u5b9d\u5854\u9762\u677f\u63d0\u4f9b\u4e86\u4e00\u952e\u914d\u7f6e\u5e38\u89c1\u7684\u8bed\u8a00\u73af\u5883\uff0c\u5982PHP\u3001MySQL\u3001Nginx\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u7f16\u8bd1\u914d\u7f6ePython\u3001Golang\u7b49\u7f16\u7a0b\u8bed\u8a00\u7684\u65b9\u6cd5\u3002\u8be6\u7ec6\u6b65\u9aa4\u5305\u62ec\uff1a **Python\u7f16\u8bd1\u914d\u7f6e** &#8211; \u5b89\u88c5\u5176\u4ed6Python\u7248\u672c &#8211; \u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93\uff08\u4ee5MySQL-Python\u4e3a\u4f8b\uff09 **Golang\u7f16\u8bd1\u914d\u7f6e** &#8211; \u5b89\u88c5Golang\u7f16\u8bd1\u5668 &#8211; \u7f16\u8bd1Golang\u7a0b\u5e8f\uff08\u4ee5hello.go\u7a0b\u5e8f\u4e3a\u4f8b\uff09 \u901a\u8fc7\u5b66\u4e60\u8fd9\u4e9b\u7f16\u8bd1\u914d\u7f6e\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u65b9\u4fbf\u5730\u4f7f\u7528Python\u3001Golang\u7b49\u8bed\u8a00\uff0c\u4ece\u800c\u62d3\u5c55\u670d\u52a1\u5668\u5e94\u7528\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u80fd\u529b\u3002 \u5b9d\u5854\u9762\u677f\u662f\u4e00\u4e2a\u6d41\u884c\u7684Linux\u670d\u52a1\u5668\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u65b9\u4fbf\u7684\u529f\u80fd\uff0c\u5982PHP\u3001MySQL\u3001Nginx\u3001Apache\u7b49\u7684\u4e00\u952e\u5b89\u88c5\u548c\u914d\u7f6e\u3002\u4f46\u662f\uff0c\u5f53\u6211\u4eec\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982Python\u3001Golang\u7b49\u65f6\uff0c\u5b9d\u5854\u9762\u677f\u9700\u8981\u8fdb\u884c\u76f8\u5e94\u7684\u7f16\u8bd1\u914d\u7f6e\u3002 \u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u8fdb\u884cPython\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\uff0c\u8ba9\u60a8\u66f4\u65b9\u4fbf\u5730\u4f7f\u7528\u8fd9\u4e9b\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\u3002 Python\u7f16\u8bd1\u914d\u7f6e Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u9ad8\u7ea7\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u5177\u6709\u7b80\u5355\u6613\u5b66\u3001\u4e30\u5bcc\u7684\u5e93\u548c\u5f3a\u5927\u7684\u529f\u80fd\u3002\u5728\u5b9d\u5854\u9762\u677f\u4e2d\uff0c\u9ed8\u8ba4\u5b89\u88c5\u4e86Python2.7\u548cPython3.7\u7248\u672c\uff0c\u5982\u679c\u60a8\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python\u6216\u8005\u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93\uff0c\u5219\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002 1.1 \u5b89\u88c5\u5176\u4ed6\u7248\u672c\u7684Python \u6b65\u9aa41\uff1a\u6253\u5f00\u5b9d\u5854\u9762\u677f\uff0c\u9009\u62e9\u201c\u8f6f\u4ef6\u5546\u5e97\u201d\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u201cPython\u201d\u5e94\u7528\u3002 \u6b65\u9aa42\uff1a\u5728Python\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u60a8\u9700\u8981\u5b89\u88c5\u7684Python\u7248\u672c\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae\u3002\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u3002 \u6b65\u9aa43\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u6216SSH\u7ec8\u7aef\uff0c\u8f93\u5165python\u547d\u4ee4\u6765\u68c0\u67e5\u65b0\u7248\u672c\u662f\u5426\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u3002 1.2 \u7f16\u8bd1\u7b2c\u4e09\u65b9\u5e93 \u5982\u679c\u60a8\u9700\u8981\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u60a8\u9700\u8981\u5c06\u5176\u7f16\u8bd1\u4e3aPython\u53ef\u7528\u7684\u5e93\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff0c\u4ecb\u7ecd\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u7f16\u8bd1MySQL-Python\u5e93\u3002 \u6b65\u9aa41\uff1a\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u9009\u62e9\u201c\u6587\u4ef6\u7ba1\u7406\u5668\u201d\uff0c\u8fdb\u5165\u60a8\u8981\u5b89\u88c5MySQL-Python\u5e93\u7684\u76ee\u5f55\u3002 \u6b65\u9aa42\uff1a\u5728\u8be5\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\uff0c\u53d6\u540d\u201cmysql-python\u201d\u3002\u5c06\u4eceMySQL-Python\u5b98\u7f51\u4e0b\u8f7d\u7684\u6e90\u4ee3\u7801\u89e3\u538b\u7f29\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\u3002\u7136\u540e\uff0c\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a cd \/www\/wwwroot\/yourwebsite.com\/mysql-python python setup.py install \u6b65\u9aa43\uff1a\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u60a8\u5e94\u8be5\u53ef\u4ee5\u5728Python\u4ee3\u7801\u4e2d\u5bfc\u5165MySQLdb\u5e93\u4e86\u3002\u4f8b\u5982\uff1a import MySQLdb Golang\u7f16\u8bd1\u914d\u7f6e Golang\u662f\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u62e5\u6709\u5feb\u901f\u7684\u7f16\u8bd1\u901f\u5ea6\u548c\u9ad8\u6548\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002\u5728\u5b9d\u5854\u9762\u677f\u4e2d\uff0c\u9ed8\u8ba4\u6ca1\u6709\u5b89\u88c5Golang\u7f16\u8bd1\u5668\u3002\u5982\u679c\u60a8\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u7f16\u8bd1Golang\u7a0b\u5e8f\uff0c\u60a8\u9700\u8981\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002 \u6b65\u9aa41\uff1a\u6253\u5f00\u5b9d\u5854\u9762\u677f\uff0c\u9009\u62e9\u201c\u8f6f\u4ef6\u7ba1\u7406\u201d\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u201c\u5b89\u88c5\u8f6f\u4ef6\u201d\u9009\u9879\u3002\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cGolang\u201d\uff0c\u7136\u540e\u6309\u7167\u63d0\u793a\u5b89\u88c5\u3002 \u6b65\u9aa42\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5Golang\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002 go version \u6b65\u9aa43\uff1a\u5982\u679c\u60a8\u9700\u8981\u7f16\u8bd1\u4e00\u4e2aGolang\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SSH\u7ec8\u7aef\u6216\u8005\u201c\u547d\u4ee4\u7ba1\u7406\u201d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a go build hello.go \u5176\u4e2d\uff0chello.go\u662f\u60a8\u7684Golang\u7a0b\u5e8f\u4ee3\u7801\u6587\u4ef6\u3002\u5982\u679c\u7f16\u8bd1\u6210\u529f\uff0c\u5c06\u4f1a\u751f\u6210\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u6267\u884c\u8fd9\u4e2a\u6587\u4ef6\u4ee5\u8fd0\u884c\u60a8\u7684\u7a0b\u5e8f\u3002 \u603b\u7ed3 \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u8fdb\u884cPython\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\u3002\u8fd9\u4e9b\u7f16\u7a0b\u8bed\u8a00\u5728\u670d\u52a1\u5668\u5e94\u7528\u4e2d\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u719f\u7ec3\u638c\u63e1\u5b83\u4eec\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u65b9\u6cd5\u3002\u6211\u4eec\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u4e3a\u60a8\u63d0\u4f9b\u6709\u7528\u7684\u6307\u5bfc\u548c\u5e2e\u52a9\u3002 \u7406\u8bba\u8981\u638c\u63e1\uff0c\u5b9e\u64cd\u4e0d\u80fd\u843d\uff01\u4ee5\u4e0a\u5173\u4e8e\u300a\u5b9d\u5854\u9762\u677f\u7684Python\u3001Golang\u7b49\u8bed\u8a00\u7684\u7f16\u8bd1\u914d\u7f6e\u300b\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5927\u5bb6\u90fd\u638c\u63e1\u4e86\u5427\uff01\u5982\u679c\u60f3\u8981\u7ee7\u7eed\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u5c31\u6765\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u5427\uff01 Java API \u5f00\u53d1\u4e2d\u4f7f\u7528 Apache HttpClient \u8fdb\u884c [&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-51724","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/51724","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=51724"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/51724\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=51724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=51724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=51724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}