{"id":30361,"date":"2026-02-24T16:41:11","date_gmt":"2026-02-24T08:41:11","guid":{"rendered":"https:\/\/www.varidata.com\/uncategorized-zh-cn\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/"},"modified":"2026-02-24T16:46:12","modified_gmt":"2026-02-24T08:46:12","slug":"how-to-install-full-script-of-api-on-a-fresh-linux-server","status":"publish","type":"post","link":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/","title":{"rendered":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c"},"content":{"rendered":"<style>\n    table, th, td {\n        border: 1px solid black;\n        border-collapse: collapse;\n    }\n<\/style>\n<p>\u5728\u5168\u65b0\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e2a API \u65f6\uff0c\u9700\u8981\u9075\u5faa\u4e25\u8c28\u7684\u6d41\u7a0b\u3002\u5728\u5b89\u88c5\u8be5 <a target=\"_self\" href=\"https:\/\/www.varidata.com\/zh-cn\/blog\/hong-kong-proxy-ips-for-high-frequency-api-data-scraping\/\">API<\/a> \u7684\u5b8c\u6574\u811a\u672c\u4e4b\u524d\uff0c\u4f60\u5fc5\u987b\u5148\u51c6\u5907\u597d\u8fd0\u884c\u73af\u5883\uff0c\u7279\u522b\u662f\u5728\u90e8\u7f72\u5230\u9999\u6e2f\u670d\u52a1\u5668\u79df\u7528\u73af\u5883\u65f6\u66f4\u8981\u683c\u5916\u8c28\u614e\u3002\u4f60\u5e94\u5f53\u68c0\u67e5 API \u6240\u9700\u7684\u5168\u90e8\u4f9d\u8d56\u5e76\u786e\u8ba4\u5b83\u4eec\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002\u5728\u5b8c\u6210 API \u7684\u90e8\u7f72\u540e\uff0c\u8fd8\u9700\u8981\u9a8c\u8bc1 API \u662f\u5426\u6309\u9884\u671f\u8fd0\u884c\u3002\u52a1\u5fc5\u91cd\u89c6\u5b89\u5168\u9632\u62a4\uff0c\u5bf9\u7cfb\u7edf\u8fdb\u884c\u52a0\u56fa\uff0c\u4ee5\u4fdd\u62a4 API \u514d\u53d7\u5a01\u80c1\uff0c\u5e76\u9075\u5faa\u9002\u7528\u4e8e <a target=\"_self\" href=\"https:\/\/www.varidata.com\/zh-cn\/server\/hk\/cn2\/\">\u9999\u6e2f\u670d\u52a1\u5668\u79df\u7528<\/a> \u73af\u5883\u7684\u5b89\u5168\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<h2>\u5173\u952e\u8981\u70b9<\/h2>\n<ul>\n<li>\n<p>\u9009\u62e9 Ubuntu \u6216 Debian \u7b49\u517c\u5bb9\u6027\u597d\u3001\u793e\u533a\u652f\u6301\u5f3a\u3001\u7ba1\u7406\u65b9\u4fbf\u7684 Linux \u53d1\u884c\u7248\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u5b89\u88c5 API \u4e4b\u524d\u52a1\u5fc5\u5148\u66f4\u65b0\u670d\u52a1\u5668\u8f6f\u4ef6\u5305\uff0c\u4ee5\u4fee\u8865\u5df2\u77e5\u6f0f\u6d1e\uff0c\u964d\u4f4e\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u8ba4\u6240\u6709\u5fc5\u9700\u5de5\u5177\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u786e\u4fdd API \u5b89\u88c5\u8fc7\u7a0b\u987a\u7545\u65e0\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ece\u53ef\u4fe1\u6765\u6e90\u4e0b\u8f7d API \u811a\u672c\uff0c\u5e76\u6821\u9a8c\u6587\u4ef6\u5b8c\u6574\u6027\uff0c\u4ee5\u907f\u514d\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u67e5\u770b\u65e5\u5fd7\u5e76\u6d4b\u8bd5 API \u7aef\u70b9\uff0c\u786e\u4fdd\u5b89\u88c5\u8fd0\u884c\u7a33\u5b9a\u4e14\u5b89\u5168\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u51c6\u5907 Linux \u670d\u52a1\u5668<\/h2>\n<h3>\u9009\u62e9\u517c\u5bb9\u7684\u53d1\u884c\u7248<\/h3>\n<p>\u9996\u5148\u5e94\u6839\u636e\u81ea\u8eab\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684 Linux \u53d1\u884c\u7248\u3002\u8bb8\u591a\u7528\u6237\u66f4\u504f\u597d Ubuntu \u6216 Debian\uff0c\u56e0\u4e3a\u5b83\u4eec\u62e5\u6709\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301\u4e0e\u4fbf\u6377\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u3002CentOS \u4e0e RHEL \u4e5f\u975e\u5e38\u9002\u5408\u4f01\u4e1a\u7ea7\u73af\u5883\u3002\u52a1\u5fc5\u786e\u8ba4\u4f60\u9009\u62e9\u7684\u53d1\u884c\u7248\u5df2\u5f97\u5230\u76ee\u6807 API \u811a\u672c\u7684\u652f\u6301\uff0c\u8fd9\u5c06\u6709\u52a9\u4e8e\u907f\u514d\u540e\u7eed\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<h3>\u521d\u59cb\u914d\u7f6e\u4e0e\u7cfb\u7edf\u66f4\u65b0<\/h3>\n<p>\u5728\u5b8c\u6210\u670d\u52a1\u5668\u57fa\u7840\u5b89\u88c5\u540e\uff0c\u4f60\u9700\u8981\u7acb\u5373\u66f4\u65b0\u6240\u6709\u7cfb\u7edf\u8f6f\u4ef6\u5305\u3002\u4fdd\u6301\u7cfb\u7edf\u6700\u65b0\u72b6\u6001\u53ef\u4ee5\u5e2e\u52a9\u9632\u5fa1\u5df2\u77e5\u5b89\u5168\u6f0f\u6d1e\u3002\u5bf9\u4e8e Ubuntu \u6216 Debian\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a<\/p>\n<ul>\n<li>\n<p><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f CentOS \u6216 RHEL\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<ul>\n<li>\n<p><code>sudo yum update -y<\/code><\/p>\n<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ba1\u7406\u7528\u6237\u4ee5\u63d0\u5347\u5b89\u5168\u6027\u3002\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528 <code>adduser admin<\/code> \u521b\u5efa\u540d\u4e3a <code>admin<\/code> \u7684\u65b0\u7528\u6237\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e3a\u8be5\u65b0\u7528\u6237\u8bbe\u7f6e\u767b\u5f55\u5bc6\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528 <code>adduser admin sudo<\/code> \u5c06\u8be5\u7528\u6237\u52a0\u5165 sudo \u7ec4\u3002<\/p>\n<\/li>\n<li>\n<p>\u901a\u8fc7 <code>ssh admin@&lt;your-server-ip&gt;<\/code> \u4ee5 admin \u7528\u6237\u8eab\u4efd\u767b\u5f55\u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u65e5\u5e38\u64cd\u4f5c\u5e94\u5c3d\u91cf\u907f\u514d\u4f7f\u7528 root \u8d26\u6237\uff0c\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11\u8bef\u64cd\u4f5c\u5bfc\u81f4\u7684\u7cfb\u7edf\u7ea7\u7834\u574f\u98ce\u9669\u3002<\/p>\n<h3>\u5b89\u88c5\u5fc5\u5907\u5de5\u5177<\/h3>\n<p>\u5728\u5b89\u88c5 API \u811a\u672c\u4e4b\u524d\uff0c\u9700\u8981\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u5df2\u7ecf\u5177\u5907\u4e00\u7cfb\u5217\u57fa\u7840\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u5e2e\u52a9\u4f60\u8fdb\u884c\u7cfb\u7edf\u7ba1\u7406\u3001\u76d1\u63a7\u4e0e\u6545\u969c\u6392\u67e5\uff1a<\/p>\n<ul>\n<li>\n<p>curl\uff1a\u7528\u4e8e\u5728\u547d\u4ee4\u884c\u4e2d\u68c0\u6d4b API \u662f\u5426\u53ef\u7528\u3002<\/p>\n<\/li>\n<li>\n<p>make\u3001cron\uff1a\u7528\u4e8e\u5904\u7406\u7b80\u5355\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>ssh\u3001rsync\uff1a\u7528\u4e8e\u8fde\u63a5\u5176\u4ed6\u673a\u5668\u4e0e\u540c\u6b65\u6570\u636e\u3002<\/p>\n<\/li>\n<li>\n<p>bat\uff1a\u4ee5\u66f4\u6613\u8bfb\u7684\u683c\u5f0f\u663e\u793a\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p>tail\uff1a\u67e5\u770b\u5927\u578b\u6587\u4ef6\u7684\u7ed3\u5c3e\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p>which\uff1a\u5728 PATH \u4e2d\u5b9a\u4f4d\u53ef\u6267\u884c\u7a0b\u5e8f\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>grep\uff1a\u5728\u8f93\u51fa\u7ed3\u679c\u548c\u73af\u5883\u53d8\u91cf\u4e2d\u8fdb\u884c\u641c\u7d22\u3002<\/p>\n<\/li>\n<li>\n<p>ps aux\u3001htop\uff1a\u76d1\u63a7\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>rg\u3001fzf\uff1a\u5728\u6587\u4ef6\u4e2d\u5feb\u901f\u641c\u7d22\u4e0e\u5b9a\u4f4d\u5185\u5bb9\u3002<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u5728\u7ee7\u7eed\u4e4b\u524d\uff0c\u4e00\u5b9a\u8981\u9010\u4e00\u786e\u8ba4\u8fd9\u4e9b\u5de5\u5177\u5df2\u6b63\u786e\u5b89\u88c5\u3002\u8fd9\u4e00\u6b65\u80fd\u6709\u6548\u51cf\u5c11\u540e\u7eed API \u811a\u672c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5404\u79cd\u95ee\u9898\u3002<\/p>\n<\/blockquote>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u81ea\u52a8\u5316\u5b89\u88c5\u4e0e\u66f4\u65b0\u4e0a\u8ff0\u5de5\u5177\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u4f60\u7684 Linux \u670d\u52a1\u5668\u4fdd\u6301\u4e00\u81f4\u3001\u53ef\u63a7\u4e14\u66f4\u52a0\u5b89\u5168\u3002<\/p>\n<h2>\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c<\/h2>\n<h3>\u4e0b\u8f7d\u5b89\u88c5\u6587\u4ef6<\/h3>\n<p>\u5728\u5b89\u88c5\u5b8c\u6574\u7684 API \u811a\u672c\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5148\u4e0b\u8f7d\u76f8\u5e94\u7684\u5b89\u88c5\u6587\u4ef6\u3002\u9996\u5148\u627e\u5230\u8be5 API \u811a\u672c\u7684\u5b98\u65b9\u53d1\u5e03\u6765\u6e90\uff0c\u5927\u591a\u6570\u5f00\u53d1\u8005\u90fd\u4f1a\u63d0\u4f9b\u6307\u5411\u6700\u65b0\u7248\u672c\u7684\u4e0b\u8f7d\u94fe\u63a5\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 curl \u6216 wget \u4ece\u6e90\u7ad9\u70b9\u4e0b\u8f7d\u6587\u4ef6\u3002\u5728\u4e0b\u8f7d\u524d\u52a1\u5fc5\u786e\u8ba4\u6765\u6e90\u7684\u771f\u5b9e\u6027\u3002\u5982\u679c\u4ece\u975e\u5b98\u65b9\u6216\u4e0d\u53ef\u4fe1\u6765\u6e90\u4e0b\u8f7d\uff0c\u4f60\u53ef\u80fd\u4f1a\u5b89\u88c5\u5230\u6076\u610f\u811a\u672c\u6216\u8fc7\u671f\u7248\u672c\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u4e0b\u8f7d API \u811a\u672c\uff1a<\/p>\n<ol>\n<li>\n<p>\u8bbf\u95ee\u8be5 API \u7684\u5b98\u65b9\u53d1\u5e03\u9875\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u4e0b\u8f7d\u533a\u57df\u627e\u5230\u7528\u4e8e\u5b89\u88c5\u7684\u5b8c\u6574\u811a\u672c\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u547d\u4ee4\u884c\u4e0b\u8f7d\u8be5\u811a\u672c\uff1a<\/p>\n<pre><code>curl -O https:\/\/source.com\/api\/install.sh\r\n<\/code><\/pre>\n<\/li>\n<li>\n<p>\u901a\u8fc7\u6bd4\u5bf9\u5b98\u65b9\u63d0\u4f9b\u7684\u54c8\u5e0c\u503c\u4e0e\u672c\u5730\u6587\u4ef6\u54c8\u5e0c\uff0c\u68c0\u67e5\u6587\u4ef6\u5b8c\u6574\u6027\u3002<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u59cb\u7ec8\u4ece\u53ef\u4fe1\u6765\u6e90\u4e0b\u8f7d\u5b89\u88c5\u6587\u4ef6\uff0c\u53ef\u4ee5\u6709\u6548\u4fdd\u62a4\u670d\u52a1\u5668\u514d\u53d7\u5b89\u5168\u5a01\u80c1\u3002\u4e0b\u8f7d\u524d\u52a1\u5fc5\u786e\u8ba4\u6765\u6e90\u53ef\u9760\u3002<\/p>\n<\/blockquote>\n<p>\u4f60\u53ef\u80fd\u8fd8\u9700\u8981\u989d\u5916\u4e0b\u8f7d\u4e00\u4e9b\u652f\u6301\u6587\u4ef6\u6216\u4f9d\u8d56\u7ec4\u4ef6\u3002\u6709\u4e9b API \u811a\u672c\u4f1a\u8981\u6c42\u4f60\u540c\u65f6\u4e0b\u8f7d\u914d\u7f6e\u6587\u4ef6\u6216\u989d\u5916\u6a21\u5757\u3002\u9605\u8bfb\u5b98\u65b9\u6587\u6863\u4ee5\u4e86\u89e3\u9700\u8981\u4e0b\u8f7d\u54ea\u4e9b\u9644\u52a0\u5185\u5bb9\u3002<\/p>\n<h3>\u4f7f\u811a\u672c\u5177\u6709\u53ef\u6267\u884c\u6743\u9650<\/h3>\n<p>\u4e0b\u8f7d\u5b8c\u6574\u5b89\u88c5\u811a\u672c\u540e\uff0c\u4e0b\u4e00\u6b65\u662f\u4e3a\u8be5\u811a\u672c\u8d4b\u4e88\u53ef\u6267\u884c\u6743\u9650\u3002\u5728 Linux \u670d\u52a1\u5668\u4e0a\uff0c\u8fd0\u884c\u811a\u672c\u524d\u5fc5\u987b\u5148\u8bbe\u7f6e\u9002\u5f53\u7684\u6587\u4ef6\u6743\u9650\u3002\u53ef\u4ee5\u4f7f\u7528 chmod \u547d\u4ee4\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<pre><code>chmod +x install.sh\r\n<\/code><\/pre>\n<p>\u4e3a\u811a\u672c\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\u672c\u8eab\u4e5f\u5b58\u5728\u4e00\u5b9a\u5b89\u5168\u98ce\u9669\uff0c\u56e0\u6b64\u5728\u914d\u7f6e\u6743\u9650\u524d\u9700\u8981\u5145\u5206\u4e86\u89e3\u8fd9\u4e9b\u98ce\u9669\uff1a<\/p>\n<ul>\n<li>\n<p>\u57fa\u4e8e\u811a\u672c\u7684\u6076\u610f\u8f6f\u4ef6\u5f80\u5f80\u80fd\u591f\u7ed5\u8fc7\u4f20\u7edf\u7684\u5b89\u5168\u9632\u62a4\u5de5\u5177\uff08\u4f8b\u5982\u6740\u6bd2\u8f6f\u4ef6\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd9\u7c7b\u653b\u51fb\u65e5\u76ca\u589e\u591a\uff0c\u56e0\u4e3a\u5728\u6587\u6863\u3001\u7535\u5b50\u90ae\u4ef6\u6216\u7f51\u7ad9\u4e2d\u5d4c\u5165\u811a\u672c\u975e\u5e38\u5bb9\u6613\u3002<\/p>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u89e3\u91ca\uff1a\u89e3\u91ca\u578b\u53ef\u6267\u884c\u6587\u4ef6\u6a21\u7cca\u4e86\u4f20\u7edf\u610f\u4e49\u4e0a\u201c\u6570\u636e\u201d\u548c\u201c\u4ee3\u7801\u201d\u4e4b\u95f4\u7684\u754c\u9650\uff0c\u4ece\u800c\u7ed9\u5e0c\u671b\u4e25\u683c\u63a7\u5236\u53ef\u6267\u884c\u5185\u5bb9\u7684\u7ec4\u7ec7\u5e26\u6765\u4e86\u66f4\u591a\u5b89\u5168\u6311\u6218\u3002<\/p>\n<\/blockquote>\n<p>\u56e0\u6b64\u5fc5\u987b\u8c28\u614e\u914d\u7f6e\u811a\u672c\u6743\u9650\u3002\u53ea\u5141\u8bb8\u53d7\u4fe1\u4efb\u7684\u7528\u6237\u6267\u884c\u8be5\u5b8c\u6574\u5b89\u88c5\u811a\u672c\uff0c\u7edd\u4e0d\u8981\u4e3a\u6765\u6e90\u4e0d\u660e\u7684\u811a\u672c\u6388\u6743\u6267\u884c\u6743\u9650\u3002<\/p>\n<h3>\u8fd0\u884c install.sh \u811a\u672c<\/h3>\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u8fd0\u884c install.sh \u6765\u5b89\u88c5\u8be5 API \u7684\u5b8c\u6574\u811a\u672c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>.\/install.sh\r\n<\/code><\/pre>\n<p>\u811a\u672c\u4f1a\u81ea\u52a8\u914d\u7f6e API\uff0c\u5e76\u4ece\u76f8\u5e94\u6765\u6e90\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\u3002\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u9519\u8bef\uff0c\u5e38\u89c1\u95ee\u9898\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\n<p>\u7f3a\u5c11 Ansible \u89d2\u8272\uff1acommunity.mongodb.mongodb_repository\u3002<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c ansible-galaxy collection list \u65f6\u51fa\u73b0 invalid choice \u9519\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728 Ubuntu Focal \u4e0a\u4e0e Ansible \u7248\u672c\u76f8\u5173\u7684\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u811a\u672c\u6267\u884c\u7ed3\u675f\u540e\u672a\u663e\u793a\u8bbf\u95ee URL\u3002<\/p>\n<\/li>\n<li>\n<p>Docker \u5bb9\u5668\u7f3a\u5931\u6216\u672a\u8fd0\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4 \u201cPermission denied\u201d \u9519\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u811a\u672c\u663e\u793a\u5b89\u88c5\u6210\u529f\uff0c\u4f46 Web \u754c\u9762\u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<li>\n<p>Docker \u955c\u50cf\u62c9\u53d6\u5931\u8d25\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c\u9047\u5230\u9519\u8bef\uff0c\u5e94\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4e0e\u6743\u9650\u8bbe\u7f6e\uff0c\u5e76\u53c2\u8003\u5b98\u65b9\u6587\u6863\u4e2d\u7684\u6545\u969c\u6392\u67e5\u8bf4\u660e\u3002\u4f60\u53ef\u80fd\u9700\u8981\u5148\u8865\u9f50\u4f9d\u8d56\u6216\u66f4\u65b0\u670d\u52a1\u5668\uff0c\u518d\u91cd\u65b0\u6267\u884c\u5b89\u88c5\u5b8c\u6574\u811a\u672c\u7684\u64cd\u4f5c\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u901a\u8fc7\u5b98\u65b9\u6765\u6e90\u8fd0\u884c install.sh \u53ef\u80fd\u9700\u8981\u4f60\u9884\u5148\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u6216\u5b89\u88c5\u989d\u5916\u6a21\u5757\u3002\u52a1\u5fc5\u9605\u8bfb\u5b98\u65b9\u63d0\u4f9b\u7684\u8be6\u7ec6\u914d\u7f6e\u8bf4\u660e\u3002<\/p>\n<\/blockquote>\n<h3>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h3>\n<p>\u8981\u786e\u4fdd API \u811a\u672c\u6309\u9884\u671f\u8fd0\u884c\uff0c\u5fc5\u987b\u6b63\u786e\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002\u73af\u5883\u53d8\u91cf\u7528\u4e8e\u63a7\u5236\u811a\u672c\u4e0e\u540e\u7aef\u6e90\u7cfb\u7edf\u7684\u4ea4\u4e92\u65b9\u5f0f\u4ee5\u53ca\u76f8\u5173\u914d\u7f6e\u884c\u4e3a\u3002\u4f60\u53ef\u4ee5\u5728\u5f53\u524d Shell \u4e2d\u4e34\u65f6\u914d\u7f6e\u8fd9\u4e9b\u53d8\u91cf\uff0c\u6216\u5199\u5165\u5230\u4e13\u7528\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002<\/p>\n<p>\u4e0b\u9762\u7684\u8868\u683c\u5c55\u793a\u4e86 API \u811a\u672c\u4e2d\u5e38\u89c1\u7684\u73af\u5883\u53d8\u91cf\u793a\u4f8b\uff1a<\/p>\n<div fullwidth=\"\" class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 50px;\">\n<colgroup>\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\"><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u73af\u5883\u53d8\u91cf<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u8bf4\u660e<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>OUTPUT_DIR<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u811a\u672c\u5199\u5165 API \u54cd\u5e94\u7ed3\u679c\u6587\u4ef6\u7684\u76ee\u6807\u76ee\u5f55\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>API_KEY<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7ec4\u7ec7\u7684 API Key ID\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>API_SECRET<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7ec4\u7ec7\u7684 API Key Secret\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u4f60\u5e94\u6839\u636e\u5b9e\u9645\u6765\u6e90\u4e0e API \u8981\u6c42\u6765\u914d\u7f6e\u8fd9\u4e9b\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u5c06 OUTPUT_DIR \u8bbe\u7f6e\u5230\u4e00\u4e2a\u76f8\u5bf9\u5b89\u5168\u7684\u76ee\u5f55\u3002\u5c06 API_KEY \u548c API_SECRET \u914d\u7f6e\u4e3a\u4f60\u6240\u5728\u7ec4\u7ec7\u9881\u53d1\u7684\u5bc6\u94a5\u4fe1\u606f\uff0c\u5207\u52ff\u5c06\u8fd9\u4e9b\u654f\u611f\u4fe1\u606f\u6cc4\u9732\u7ed9\u4e0d\u53d7\u4fe1\u4efb\u7684\u7b2c\u4e09\u65b9\u3002<\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7 export \u547d\u4ee4\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<pre><code>export OUTPUT_DIR=\/var\/api\/output\r\nexport API_KEY=your_api_key\r\nexport API_SECRET=your_api_secret\r\n<\/code><\/pre>\n<p>\u6839\u636e\u4e0d\u540c\u6765\u6e90\u548c API \u7684\u8bbe\u8ba1\uff0c\u4f60\u53ef\u80fd\u8fd8\u9700\u8981\u914d\u7f6e\u989d\u5916\u7684\u73af\u5883\u53d8\u91cf\u3002\u52a1\u5fc5\u67e5\u9605\u76f8\u5e94\u6587\u6863\u4ee5\u83b7\u5f97\u5b8c\u6574\u53d8\u91cf\u6e05\u5355\u3002<\/p>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u5408\u7406\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u80fd\u591f\u63d0\u5347\u6574\u4f53\u5b89\u5168\u6027\u4e0e\u6027\u80fd\u3002\u5728\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u4e4b\u524d\uff0c\u8bf7\u5148\u8ba4\u771f\u6838\u5bf9\u6240\u6709\u914d\u7f6e\u3002<\/p>\n<\/blockquote>\n<p>\u540c\u65f6\uff0c\u8fd8\u9700\u8981\u4e3a\u8fd9\u4e9b\u53d8\u91cf\u672c\u8eab\u5236\u5b9a\u5408\u9002\u7684\u8bbf\u95ee\u6743\u9650\u3002\u53ea\u6709\u53d7\u4fe1\u4efb\u7684\u7528\u6237\u624d\u53ef\u4ee5\u8bbf\u95ee\u654f\u611f\u914d\u7f6e\u6570\u636e\u3002\u8bf7\u5c06\u5bc6\u94a5\u4fdd\u5b58\u5728\u5b89\u5168\u4f4d\u7f6e\uff0c\u907f\u514d\u5c06\u5176\u76f4\u63a5\u5199\u5165\u516c\u5171\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u5c06\u73af\u5883\u53d8\u91cf\u96c6\u4e2d\u4fdd\u5b58\u5728\u4e00\u4e2a .env \u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u7edf\u4e00\u7ef4\u62a4\u3002\u8bb8\u591a API \u811a\u672c\u90fd\u652f\u6301\u4ece\u914d\u7f6e\u6587\u4ef6\u4e2d\u52a0\u8f7d\u73af\u5883\u53d8\u91cf\uff0c\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u7b80\u5316\u914d\u7f6e\u6d41\u7a0b\uff0c\u8ba9\u5b8c\u6574\u5b89\u88c5\u811a\u672c\u7684\u7ba1\u7406\u66f4\u6709\u6761\u7406\u3002<\/p>\n<p>\u5728\u5b89\u88c5\u5b8c\u6574\u811a\u672c\u540e\uff0c\u5e94\u91cd\u65b0\u5ba1\u67e5\u4e00\u6b21\u6240\u6709\u914d\u7f6e\uff0c\u5e76\u5bf9 API \u8fdb\u884c\u6d4b\u8bd5\u4ee5\u786e\u8ba4\u5176\u6b63\u5e38\u5de5\u4f5c\u3002\u5982\u679c\u51fa\u73b0\u9519\u8bef\uff0c\u68c0\u67e5\u6765\u6e90\u914d\u7f6e\u4e0e\u76f8\u5173\u6587\u4ef6\u5185\u5bb9\uff0c\u5e76\u6839\u636e API \u7684\u5b9e\u9645\u8981\u6c42\u8fdb\u884c\u4fee\u6b63\u3002<\/p>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u52a1\u5fc5\u5728\u8fd0\u884c API \u524d\u5c31\u5b8c\u6210\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3002\u9519\u8bef\u6216\u7f3a\u5931\u7684\u914d\u7f6e\u4e0d\u4ec5\u4f1a\u5bfc\u81f4 API \u6545\u969c\uff0c\u8fd8\u6709\u53ef\u80fd\u5c06\u654f\u611f\u6570\u636e\u66b4\u9732\u7ed9\u4e0d\u53ef\u4fe1\u7684\u5bf9\u8c61\u3002<\/p>\n<\/blockquote>\n<h2>\u5b89\u88c5 Domino REST API<\/h2>\n<h3>\u68c0\u67e5\u4f9d\u8d56<\/h3>\n<p>\u5728\u5b89\u88c5 Domino REST API \u4e4b\u524d\uff0c\u4f60\u9700\u8981\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5df2\u7ecf\u5177\u5907\u6240\u6709\u5fc5\u9700\u4f9d\u8d56\u3002\u7f3a\u5931\u7684\u6587\u4ef6\u6216\u5e93\u4f1a\u5bfc\u81f4 API \u542f\u52a8\u5931\u8d25\uff0c\u751a\u81f3\u5b8c\u5168\u65e0\u6cd5\u8fd0\u884c\u3002\u4f60\u5e94\u9010\u4e00\u68c0\u67e5\u6bcf\u4e00\u4e2a\u5e93\u6587\u4ef6\u53ca\u5176\u76ee\u6807\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002\u4e0b\u8868\u5217\u51fa\u4e86 Domino REST API \u4e2d\u6700\u5e38\u89c1\u7684\u4f9d\u8d56\u53ca\u5176\u76ee\u6807\u8def\u5f84\uff1a<\/p>\n<div fullwidth=\"\" class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 50px;\">\n<colgroup>\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\"><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u4f9d\u8d56\u540d\u79f0<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u76ee\u6807\u8def\u5f84<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>concurrentlinkedhashmap-lru-1.4.2.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/concurrentlinkedhashmap-lru-1.4.2.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jna-5.11.0.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/jna-5.11.0.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>domino-jnx-jna-1.15.1.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/domino-jnx-jna-1.15.1.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>domino-jnx-commons-1.15.1.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/domino-jnx-commons-1.15.1.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jackson-datatype-jdk8-2.14.0-rc3.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/jackson-datatype-jdk8-2.14.0-rc3.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jackson-databind-2.14.0-rc3.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/jackson-databind-2.14.0-rc3.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jackson-annotations-2.14.0-rc3.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/jackson-annotations-2.14.0-rc3.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>jackson-core-2.14.0-rc3.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/jackson-core-2.14.0-rc3.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>commons-io-2.11.0.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/commons-io-2.11.0.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>domino-jnx-vertx-json-1.15.1.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/domino-jnx-vertx-json-1.15.1.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>domino-jnx-api-1.15.1.jar<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/libs\/domino-jnx-api-1.15.1.jar<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>libidvaultapi.so<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/domino\/notes\/latest\/linux\/libidvaultapi.so<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>restapi<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/domino\/notes\/latest\/linux\/restapi<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>libkeepevents.so<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/domino\/notes\/latest\/linux\/libkeepevents.so<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>licence.txt<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/licence.txt<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>notices.txt<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi\/notices.txt<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u5728\u7ee7\u7eed\u4e0b\u4e00\u6b65\u4e4b\u524d\uff0c\u8bf7\u518d\u6b21\u6838\u5bf9\u6bcf\u4e00\u4e2a\u6587\u4ef6\u53ca\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002\u8fd9\u6709\u52a9\u4e8e\u907f\u514d\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u5404\u79cd\u62a5\u9519\u3002<\/p>\n<\/blockquote>\n<h3>\u914d\u7f6e\u6743\u9650<\/h3>\n<p>\u5408\u7406\u7684\u6743\u9650\u8bbe\u7f6e\u5bf9\u4e8e\u4fdd\u969c API \u53ca HCL Domino \u670d\u52a1\u5668\u7684\u5b89\u5168\u81f3\u5173\u91cd\u8981\u3002\u5e94\u6309\u7167\u4e0b\u8868\u6240\u793a\u4e3a\u76f8\u5173\u76ee\u5f55\u548c\u6587\u4ef6\u8bbe\u7f6e\u6240\u6709\u8005\u4e0e\u8bbf\u95ee\u6743\u9650\uff0c\u4ee5\u4fdd\u62a4\u654f\u611f\u6570\u636e\uff0c\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u66f4\u6539\u3002<\/p>\n<div fullwidth=\"\" class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 100px;\">\n<colgroup>\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\"><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u76ee\u5f55\/\u6587\u4ef6\u8def\u5f84<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u6240\u6709\u8005<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u8bbf\u95ee\u6743\u9650<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u8bf4\u660e<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/domino<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>root<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>755<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u9002\u7528\u4e8e \/opt \u4e0b\u7684\u76ee\u5f55\u4e0e\u6587\u4ef6\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/opt\/hcl\/restapi<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>root<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>755<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u9002\u7528\u4e8e \/opt \u4e0b\u7684\u76ee\u5f55\u4e0e\u6587\u4ef6\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/local\/notesdata\uff08\u76ee\u5f55\uff09<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>notes<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>770<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u76ee\u5f55\u9700\u8981\u8bbe\u7f6e\u6267\u884c\u4f4d\uff08x\uff09\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\/local\/notesdata\uff08\u6587\u4ef6\uff09<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>notes<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>660<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5e38\u89c4\u6587\u4ef6\u8bbf\u95ee\u6743\u9650\u8bbe\u7f6e\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u4e0d\u8981\u5c06\u6743\u9650\u8bbe\u7f6e\u4e3a 777\uff0c\u8fd9\u4f1a\u5927\u5e45\u589e\u52a0 API \u88ab\u653b\u51fb\u7684\u98ce\u9669\u3002<\/p>\n<\/blockquote>\n<h3>\u5b8c\u6210\u5b89\u88c5<\/h3>\n<p>\u6b64\u65f6\u4f60\u5df2\u7ecf\u51c6\u5907\u597d\u5b8c\u6210 Domino REST API \u7684\u5b89\u88c5\u6d41\u7a0b\u3002\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u6838\u5b9e Domino REST API \u662f\u5426\u6309\u9884\u671f\u5de5\u4f5c\uff1a<\/p>\n<ol>\n<li>\n<p>\u5206\u522b\u8fd0\u884c <code>node -v<\/code>\u3001<code>java -version<\/code> \u4e0e <code>curl --version<\/code>\uff0c\u786e\u8ba4\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86\u6b63\u786e\u7248\u672c\u7684\u76f8\u5173\u5de5\u5177\u3002<\/p>\n<\/li>\n<li>\n<p>\u786e\u4fdd Postman \u5df2\u5b89\u88c5\u5e76\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u4e14\u65e0\u9519\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u542f\u7528 API \u7684\u524d\u63d0\u4e0b\u542f\u52a8 HCL Domino \u670d\u52a1\u5668\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u662f\u5728\u672c\u5730\u73af\u5883\u5b89\u88c5 API\uff0c\u53ef\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee <code>http:\/\/localhost:8880<\/code> \u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u4e3a\u8fdc\u7a0b\u670d\u52a1\u5668\uff0c\u5219\u4f7f\u7528 Domino REST API \u5bf9\u5916\u63d0\u4f9b\u7684 Web \u5730\u5740\u8fdb\u884c\u8bbf\u95ee\u9a8c\u8bc1\u3002<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u5982\u679c\u4f60\u80fd\u591f\u770b\u5230\u6b22\u8fce\u9875\u9762\u6216\u6210\u529f\u53d1\u9001\u6d4b\u8bd5\u8bf7\u6c42\u5e76\u6536\u5230\u54cd\u5e94\uff0c\u8bf4\u660e\u5b89\u88c5\u5df2\u7ecf\u987a\u5229\u5b8c\u6210\uff01\ud83c\udf89<\/p>\n<\/blockquote>\n<h2>\u5728 Linux \u4e0a\u9a8c\u8bc1\u5e76\u52a0\u56fa\u5b89\u88c5<\/h2>\n<h3>\u68c0\u67e5 API \u670d\u52a1\u72b6\u6001<\/h3>\n<p>\u5b8c\u6210 API \u5b89\u88c5\u540e\uff0c\u9700\u8981\u786e\u8ba4\u5b83\u5df2\u7ecf\u5728 Linux \u670d\u52a1\u5668\u4e0a\u6b63\u5e38\u8fd0\u884c\u3002\u53ef\u4ee5\u5148\u68c0\u67e5\u5bf9\u5e94\u670d\u52a1\u7684\u72b6\u6001\uff0c\u4f8b\u5982\u4f7f\u7528 <code>systemctl status &lt;api-service&gt;<\/code> \u6216 <code>ps aux | grep api<\/code> \u67e5\u770b\u8fdb\u7a0b\u662f\u5426\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\u3002\u5982\u679c\u662f\u57fa\u4e8e Docker \u90e8\u7f72\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7 <code>docker ps<\/code> \u5217\u51fa\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668\u3002\u6b64\u5916\uff0c\u8fd8\u5e94\u5f53\u67e5\u770b\u5173\u952e\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ee5\u5c3d\u65e9\u53d1\u73b0\u9519\u8bef\u6216\u8b66\u544a\u4fe1\u606f\u3002\u5e38\u7528\u7684\u65e5\u5fd7\u8def\u5f84\u5305\u62ec\uff1a<code>\/var\/log\/syslog<\/code> \u6216 <code>\/var\/log\/messages<\/code>\uff08\u7cfb\u7edf\u6d3b\u52a8\u65e5\u5fd7\uff09\u3001<code>\/var\/log\/auth.log<\/code> \u6216 <code>\/var\/log\/secure<\/code>\uff08\u8ba4\u8bc1\u76f8\u5173\u4e8b\u4ef6\uff09\u3001<code>\/var\/log\/dmesg<\/code>\uff08\u786c\u4ef6\u4e0e\u5185\u6838\u6d88\u606f\uff09\u3001<code>\/var\/log\/cron<\/code>\uff08\u8ba1\u5212\u4efb\u52a1\u65e5\u5fd7\uff09\u7b49\u3002\u8fd9\u4e9b\u65e5\u5fd7\u5c06\u5e2e\u52a9\u4f60\u5728\u95ee\u9898\u65e9\u671f\u53ca\u65f6\u4ecb\u5165\u3002<\/p>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u5b9a\u671f\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\uff0c\u53ef\u4ee5\u5728\u95ee\u9898\u5f71\u54cd API \u6216\u670d\u52a1\u5668\u7a33\u5b9a\u8fd0\u884c\u4e4b\u524d\u5c31\u8fdb\u884c\u6392\u67e5\u4e0e\u4fee\u590d\u3002<\/p>\n<\/blockquote>\n<h3>\u6d4b\u8bd5 API \u7aef\u70b9<\/h3>\n<p>\u4f60\u5fc5\u987b\u6d4b\u8bd5 API \u7aef\u70b9\uff0c\u4ee5\u786e\u4fdd\u5728 Linux \u73af\u5883\u4e2d\u5b89\u88c5\u7684 API \u80fd\u591f\u6309\u9884\u671f\u5de5\u4f5c\u3002\u6709\u591a\u79cd\u5de5\u5177\u53ef\u4ee5\u534f\u52a9\u4f60\u8fdb\u884c\u6d4b\u8bd5\uff1a<\/p>\n<ul>\n<li>\n<p>cURL\uff1a\u901a\u8fc7\u547d\u4ee4\u884c\u53d1\u9001 HTTP \u8bf7\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>Postman\uff1a\u63d0\u4f9b\u56fe\u5f62\u754c\u9762\uff0c\u4fbf\u4e8e\u6784\u9020\u548c\u8c03\u8bd5\u8bf7\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>HTTPie\uff1a\u547d\u4ee4\u884c HTTP \u5ba2\u6237\u7aef\uff0c\u5bf9 JSON \u4ea4\u4e92\u652f\u6301\u53cb\u597d\u3002<\/p>\n<\/li>\n<li>\n<p>Fiddler \u4e0e Mitmproxy\uff1a\u53ef\u62e6\u622a\u5e76\u5206\u6790 HTTP \u6d41\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p>Swagger\uff1a\u7528\u4e8e\u6587\u6863\u5316\u5e76\u4ea4\u4e92\u5f0f\u6d4b\u8bd5 API \u7aef\u70b9\u3002<\/p>\n<\/li>\n<li>\n<p>Insomnia\uff1a\u652f\u6301\u590d\u6742\u8bf7\u6c42\u573a\u666f\u5e76\u53ef\u96c6\u6210\u5728\u5de5\u4f5c\u6d41\u4e2d\u3002<\/p>\n<\/li>\n<li>\n<p>Hoppscotch\u3001RapidAPI \u4e0e ReadyAPI\uff1a\u63d0\u4f9b\u66f4\u591a\u5728\u7ebf\u6216\u4f01\u4e1a\u7ea7\u6d4b\u8bd5\u9009\u9879\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5c1d\u8bd5\u5411\u4f60\u7684 API \u53d1\u9001\u8bf7\u6c42\u5e76\u68c0\u67e5\u54cd\u5e94\u7ed3\u679c\u3002\u5982\u679c\u53d1\u73b0\u9519\u8bef\uff0c\u8bf7\u7ed3\u5408\u65e5\u5fd7\u4e0e\u914d\u7f6e\u6587\u4ef6\u8fdb\u884c\u95ee\u9898\u6392\u67e5\u3002\u5bf9\u7aef\u70b9\u8fdb\u884c\u7cfb\u7edf\u5316\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u786e\u4fdd Linux \u670d\u52a1\u5668\u8fd4\u56de\u7684\u6570\u636e\u6b63\u786e\u65e0\u8bef\u3002<\/p>\n<h3>\u52a0\u56fa\u670d\u52a1\u5668\u5b89\u5168<\/h3>\n<p>\u5f3a\u5316 Linux \u670d\u52a1\u5668\u7684\u5b89\u5168\u9632\u62a4\u80fd\u591f\u6709\u6548\u4fdd\u62a4 API \u514d\u53d7\u5404\u7c7b\u653b\u51fb\u3002\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\u5bf9\u7cfb\u7edf\u8fdb\u884c\u52a0\u56fa\uff1a<\/p>\n<ol>\n<li>\n<p>\u66f4\u65b0\u7cfb\u7edf\u5e76\u53ca\u65f6\u5b89\u88c5\u5b89\u5168\u8865\u4e01\u3002\u4f7f\u7528 <code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code>\uff0c\u4fdd\u6301\u7cfb\u7edf\u5904\u4e8e\u53d7\u652f\u6301\u4e0e\u4fee\u8865\u72b6\u6001\u3002<\/p>\n<\/li>\n<li>\n<p>\u79fb\u9664\u4e0d\u5fc5\u8981\u7684\u8f6f\u4ef6\u4e0e\u670d\u52a1\u3002\u901a\u8fc7 <code>sudo apt remove telnet ftp rsh -y<\/code> \u5378\u8f7d\u4e0d\u518d\u4f7f\u7528\u7684\u7ec4\u4ef6\uff0c\u51cf\u5c11\u653b\u51fb\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u90e8\u7f72\u57fa\u7840\u5b89\u5168\u5de5\u5177\u3002\u542f\u7528 UFW \u7b49\u9632\u706b\u5899\uff0c\u5e76\u4f7f\u7528 Fail2ban \u963b\u6b62\u66b4\u529b\u7834\u89e3\u767b\u5f55\u884c\u4e3a\u3002<\/p>\n<\/li>\n<li>\n<p>\u52a0\u56fa SSH \u8bbf\u95ee\u3002\u7981\u7528 root \u76f4\u63a5\u767b\u5f55\u3001\u6539\u7528\u5bc6\u94a5\u8ba4\u8bc1\u3001\u66f4\u6539\u9ed8\u8ba4\u7aef\u53e3\uff0c\u5e76\u4e3a SSH \u542f\u7528 Fail2ban \u89c4\u5219\u3002<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u4fdd\u6301\u7cfb\u7edf\u66f4\u65b0\u4e0e\u914d\u7f6e\u5408\u7406\u7684\u5b89\u5168\u7b56\u7565\uff0c\u662f\u964d\u4f4e API \u4e0e\u670d\u52a1\u5668\u906d\u53d7\u653b\u51fb\u98ce\u9669\u7684\u5173\u952e\u3002<\/p>\n<\/blockquote>\n<p>\u901a\u8fc7\u4e0a\u8ff0\u63aa\u65bd\uff0c\u53ef\u4ee5\u8ba9\u4f60\u7684\u5b89\u88c5\u66f4\u52a0\u5b89\u5168\u53ef\u9760\u3002\u8bf7\u6301\u7eed\u76d1\u63a7 Linux \u670d\u52a1\u5668\u8fd0\u884c\u72b6\u6001\uff0c\u5e76\u9002\u65f6\u66f4\u65b0 API\uff0c\u4ee5\u7ef4\u6301\u957f\u671f\u7a33\u5b9a\u4e14\u5b89\u5168\u7684\u8fd0\u884c\u73af\u5883\u3002<\/p>\n<h2>\u6545\u969c\u6392\u67e5<\/h2>\n<h3>\u6743\u9650\u95ee\u9898<\/h3>\n<p>\u5728 Linux \u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u811a\u672c\u65f6\uff0c\u6743\u9650\u95ee\u9898\u7ecf\u5e38\u4f1a\u963b\u788d\u64cd\u4f5c\u7684\u987a\u5229\u8fdb\u884c\u3002\u4f60\u53ef\u80fd\u4f1a\u9047\u5230 \u201cPermission denied\u201d \u6216 \u201cbad interpreter\u201d \u7b49\u9519\u8bef\u4fe1\u606f\u3002\u8fd9\u7c7b\u95ee\u9898\u5f80\u5f80\u4e0e\u7f3a\u5c11\u6267\u884c\u6743\u9650\u3001\u6240\u6709\u8005\u4e0d\u5339\u914d\u6216\u5b89\u5168\u7b56\u7565\u76f8\u5173\u3002\u4e0b\u8868\u6c47\u603b\u4e86\u5e38\u89c1\u6743\u9650\u95ee\u9898\u3001\u53ef\u80fd\u539f\u56e0\u53ca\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<div fullwidth=\"\" class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 75px;\">\n<colgroup>\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\"><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u9519\u8bef\u4fe1\u606f<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u53ef\u80fd\u539f\u56e0<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u89e3\u51b3\u65b9\u6cd5<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Permission denied<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7f3a\u5c11\u6267\u884c\u6743\u9650\u4f4d<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>chmod +x script.sh<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Permission denied (noexec)<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u6587\u4ef6\u7cfb\u7edf\u6302\u8f7d\u5e26\u6709 noexec \u9650\u5236<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u590d\u5236\u5230 \/tmp \u6216\u4ee5\u53ef\u6267\u884c\u65b9\u5f0f\u91cd\u65b0\u6302\u8f7d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Permission denied (owner)<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u6240\u6709\u8005\u8bbe\u7f6e\u4e0d\u6b63\u786e<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4f7f\u7528 chown \u6216\u4ee5\u6587\u4ef6\u6240\u6709\u8005\u8eab\u4efd\u6267\u884c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Permission denied (SELinux)<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>SELinux \u5b89\u5168\u4e0a\u4e0b\u6587\u9650\u5236<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4f7f\u7528 restorecon \u6216 chcon \u4fee\u590d\u4e0a\u4e0b\u6587<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>bad interpreter<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Shebang \u4e2d\u89e3\u91ca\u5668\u8def\u5f84\u9519\u8bef<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4fee\u6b63\u89e3\u91ca\u5668\u8def\u5f84\u6216\u4f7f\u7528 env \u65b9\u5f0f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>bad interpreter: No such file<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u811a\u672c\u4f7f\u7528\u4e86 CRLF\uff08Windows\uff09\u884c\u7ed3\u675f\u7b26<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4f7f\u7528 dos2unix script.sh \u8f6c\u6362\u884c\u7ed3\u675f\u7b26<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<blockquote>\n<p>\u63d0\u793a\uff1a\u5728\u8fd0\u884c\u811a\u672c\u524d\uff0c\u5148\u68c0\u67e5\u6587\u4ef6\u6743\u9650\u4e0e\u6240\u6709\u8005\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u907f\u514d\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u5927\u91cf\u5e38\u89c1\u9519\u8bef\u3002<\/p>\n<\/blockquote>\n<h3>\u4f9d\u8d56\u95ee\u9898<\/h3>\n<p>\u7f3a\u5931\u6216\u51b2\u7a81\u7684\u4f9d\u8d56\u4f1a\u5bfc\u81f4 API \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5931\u8d25\u3002\u4f60\u9700\u8981\u68c0\u67e5\u662f\u5426\u5b58\u5728\u7248\u672c\u51b2\u7a81\u6216\u7f3a\u5c11\u7684\u5305\u3002\u53ef\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u6392\u67e5\uff1a<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528 <code>npm ls &lt;package-name&gt;<\/code> \u67e5\u627e\u91cd\u590d\u5b89\u88c5\u6216\u7248\u672c\u51b2\u7a81\u7684 NPM \u5305\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u4f7f\u7528 Python\uff0c\u53ef\u8fd0\u884c <code>pip check<\/code> \u68c0\u67e5\u4f9d\u8d56\u51b2\u7a81\u3002<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u4e8e Go \u9879\u76ee\uff0c\u53ef\u4f7f\u7528 <code>go mod why -m &lt;package&gt;<\/code> \u67e5\u770b\u67d0\u6a21\u5757\u88ab\u5f15\u5165\u7684\u539f\u56e0\u3002<\/p>\n<\/li>\n<li>\n<p>\u6839\u636e\u6392\u67e5\u7ed3\u679c\u66f4\u65b0\u4f9d\u8d56\u6587\u4ef6\u4ee5\u89e3\u51b3\u7248\u672c\u51b2\u7a81\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u8fdb\u884c\u5b89\u5168\u6f0f\u6d1e\u626b\u63cf\uff0c\u5e76\u8bb0\u5f55\u4f9d\u8d56\u66f4\u65b0\u4e0e\u7ba1\u7406\u60c5\u51b5\u3002<\/p>\n<\/li>\n<\/ol>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u4fdd\u6301\u4f9d\u8d56\u5e93\u7684\u53ca\u65f6\u66f4\u65b0\uff0c\u6709\u52a9\u4e8e\u63d0\u5347 Linux \u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\u4e0e\u7a33\u5b9a\u6027\u3002<\/p>\n<\/blockquote>\n<h3>\u5b89\u88c5\u5931\u8d25<\/h3>\n<p>\u6709\u65f6\u5b89\u88c5\u8fc7\u7a0b\u4f1a\u5728 Linux \u670d\u52a1\u5668\u4e0a\u76f4\u63a5\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f\u53ef\u80fd\u6d89\u53ca\u4e0b\u8f7d URL \u7f3a\u5931\u3001\u7f51\u7edc\u95ee\u9898\u6216\u4e0d\u652f\u6301\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002\u4e0b\u8868\u5217\u51fa\u4e86\u90e8\u5206\u5e38\u89c1\u5b89\u88c5\u9519\u8bef\u53ca\u542b\u4e49\uff1a<\/p>\n<div fullwidth=\"\" class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 50px;\">\n<colgroup>\n<col style=\"min-width: 25px;\">\n<col style=\"min-width: 25px;\"><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u9519\u8bef\u7c7b\u578b<\/p>\n<\/th>\n<th colspan=\"1\" rowspan=\"1\">\n<p>\u63cf\u8ff0<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u65e0\u6cd5\u627e\u5230\u4e0b\u8f7d URL\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u7531\u4e8e\u7f51\u7edc\u95ee\u9898\u6216\u6743\u9650\u4e0d\u8db3\u5bfc\u81f4\u4e0b\u8f7d\u9519\u8bef\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 4<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u7531\u4e8e\u65e0\u5199\u5165\u6743\u9650\uff0c\u65e0\u6cd5\u521b\u5efa\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 10<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u65e0\u6cd5\u8bc6\u522b Linux \u53d1\u884c\u7248\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u4e3a\u53d7\u652f\u6301\u7cfb\u7edf\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 11<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u53d7\u652f\u6301\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 12<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u68c0\u6d4b\u5230\u53e6\u4e00\u4e2a\u5b89\u88c5\u8fdb\u7a0b\u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 19<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u7531\u4e8e\u8bbf\u95ee\u9650\u5236\uff0c\u65e0\u6cd5\u627e\u5230\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 75<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u5305\u7ba1\u7406\u5668\u51fa\u73b0\u95ee\u9898\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Error 77<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b89\u88c5\u5931\u8d25\uff01\u5f53\u524d\u7684\u626b\u63cf\u7c7b\u578b\u914d\u7f6e\u4e0d\u88ab\u5141\u8bb8\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5982\u679c\u9047\u5230\u4e0a\u8ff0\u4efb\u4e00\u9519\u8bef\uff0c\u8bf7\u5148\u68c0\u67e5\u7f51\u7edc\u8fde\u901a\u6027\uff0c\u786e\u8ba4 Linux \u53d1\u884c\u7248\u662f\u5426\u53d7\u5230\u652f\u6301\uff0c\u5e76\u786e\u4fdd\u81ea\u5df1\u5177\u5907\u6240\u9700\u6743\u9650\u3002\u4ec5\u5728\u95ee\u9898\u4fee\u590d\u4e4b\u540e\uff0c\u518d\u91cd\u65b0\u5c1d\u8bd5\u5b89\u88c5\u3002\u8c28\u614e\u7684\u6545\u969c\u6392\u67e5\u53ef\u4ee5\u786e\u4fdd\u670d\u52a1\u5668\u957f\u65f6\u95f4\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<div dividerstyle=\"solid\" size=\"large\" color=\"#D1D1D1\" class=\"qc-divider-wrapper\">\n<div class=\"qc-divider\" style=\"border-top-style: solid; width: 100%; border-top-color: rgb(209, 209, 209);\"><\/div>\n<\/div>\n<p>\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u4e86\u89e3\u5982\u4f55\u5728\u5168\u65b0\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u3002\u8bf7\u52a1\u5fc5\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6301\u7eed\u68c0\u67e5\u670d\u52a1\u5668\u4e0a API \u7684\u8fd0\u884c\u72b6\u6001\uff0c\u5e76\u786e\u4fdd\u6574\u4f53\u73af\u5883\u7684\u5b89\u5168\u6027\u3002\u5b9a\u671f\u66f4\u65b0\u7cfb\u7edf\u4e0e\u4f9d\u8d56\uff0c\u5e76\u7ecf\u5e38\u67e5\u770b\u65e5\u5fd7\u3002\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\u6765\u7ef4\u62a4\u4f60\u7684 API \u4e0e\u670d\u52a1\u5668\u3002\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u672c\u6587\u4e2d\u7684\u6545\u969c\u6392\u67e5\u7ae0\u8282\u6216\u5e38\u89c1\u95ee\u9898\uff08FAQ\uff09\u83b7\u53d6\u5e2e\u52a9\u3002<\/p>\n<h2>FAQ<\/h2>\n<h3>\u5982\u4f55\u5224\u65ad API \u662f\u5426\u5b89\u88c5\u6210\u529f\uff1f<\/h3>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>systemctl status<\/code> \u68c0\u67e5\u670d\u52a1\u72b6\u6001\uff0c\u6216\u8005\u5411 API \u53d1\u9001\u6d4b\u8bd5\u8bf7\u6c42\u3002\u5982\u679c\u6536\u5230\u9884\u671f\u7684\u6210\u529f\u54cd\u5e94\uff0c\u5219\u8bf4\u660e API \u5df2\u7ecf\u6b63\u5e38\u5de5\u4f5c\u3002\u5efa\u8bae\u540c\u65f6\u67e5\u770b\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ee5\u6392\u9664\u9690\u85cf\u7684\u9519\u8bef\u6216\u8b66\u544a\u3002<\/p>\n<h3>\u51fa\u73b0 \u201cPermission denied\u201d \u9519\u8bef\u65f6\u8be5\u600e\u4e48\u529e\uff1f<\/h3>\n<p>\u9996\u5148\u4f7f\u7528 <code>ls -l<\/code> \u68c0\u67e5\u811a\u672c\u6743\u9650\u3002\u5982\u7f3a\u5c11\u6267\u884c\u6743\u9650\uff0c\u53ef\u901a\u8fc7 <code>chmod +x<\/code> \u6dfb\u52a0\u3002\u786e\u4fdd\u4f60\u4ee5\u6b63\u786e\u7684\u7528\u6237\u8eab\u4efd\u8fd0\u884c\u811a\u672c\uff0c\u9664\u975e\u786e\u6709\u5fc5\u8981\uff0c\u5426\u5219\u4e0d\u8981\u76f4\u63a5\u4f7f\u7528 root \u8d26\u6237\u6267\u884c\u3002<\/p>\n<h3>\u662f\u5426\u53ef\u4ee5\u5728\u4efb\u610f Linux \u53d1\u884c\u7248\u4e0a\u5b89\u88c5\u8be5 API\uff1f<\/h3>\n<p>\u5927\u591a\u6570 API \u90fd\u652f\u6301\u4e3b\u6d41\u53d1\u884c\u7248\uff0c\u5982 Ubuntu\u3001Debian \u6216 CentOS\u3002\u4f46\u5728\u5b89\u88c5\u524d\u5fc5\u987b\u5148\u9605\u8bfb\u5b98\u65b9\u6587\u6863\uff0c\u56e0\u4e3a\u67d0\u4e9b API \u53ef\u80fd\u4e0d\u652f\u6301\u8f83\u8001\u6216\u8f83\u5c11\u89c1\u7684\u7cfb\u7edf\u7248\u672c\u3002<\/p>\n<h3>\u5b89\u88c5\u5b8c\u6210\u540e\u5982\u4f55\u4fdd\u969c API \u4e0e\u670d\u52a1\u5668\u7684\u5b89\u5168\uff1f<\/h3>\n<p>\u4fdd\u6301\u7cfb\u7edf\u4e0e\u4f9d\u8d56\u5b9a\u671f\u66f4\u65b0\uff0c\u79fb\u9664\u65e0\u7528\u8f6f\u4ef6\uff0c\u914d\u7f6e\u9632\u706b\u5899\u5e76\u4f7f\u7528\u5f3a\u5bc6\u7801\uff0c\u9650\u5236 SSH \u8bbf\u95ee\u8303\u56f4\uff0c\u6301\u7eed\u76d1\u63a7\u65e5\u5fd7\u662f\u5426\u6709\u5f02\u5e38\u3002\u8fd9\u4e9b\u63aa\u65bd\u90fd\u6709\u52a9\u4e8e\u4fdd\u62a4\u670d\u52a1\u5668\u4e0e API \u7684\u5b89\u5168\u3002<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5168\u65b0\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e2a API \u65f6\uff0c\u9700\u8981\u9075\u5faa\u4e25\u8c28\u7684\u6d41\u7a0b\u3002\u5728\u5b89\u88c5\u8be5 API \u7684\u5b8c\u6574\u811a\u672c\u4e4b\u524d\uff0c\u4f60\u5fc5\u987b\u5148\u51c6\u5907\u597d\u8fd0\u884c\u73af\u5883\uff0c\u7279\u522b\u662f\u5728\u90e8\u7f72\u5230\u9999\u6e2f\u670d\u52a1\u5668\u79df\u7528\u73af\u5883\u65f6\u66f4\u8981\u683c\u5916\u8c28\u614e\u3002\u4f60\u5e94\u5f53\u68c0\u67e5 API \u6240\u9700\u7684\u5168\u90e8\u4f9d\u8d56\u5e76\u786e\u8ba4\u5b83\u4eec\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002\u5728\u5b8c\u6210 API \u7684\u90e8\u7f72\u540e\uff0c\u8fd8\u9700\u8981\u9a8c\u8bc1 API \u662f\u5426\u6309\u9884\u671f\u8fd0\u884c\u3002\u52a1\u5fc5\u91cd\u89c6\u5b89\u5168\u9632\u62a4\uff0c\u5bf9\u7cfb\u7edf\u8fdb\u884c\u52a0\u56fa\uff0c\u4ee5\u4fdd\u62a4 API \u514d\u53d7\u5a01\u80c1\uff0c\u5e76\u9075\u5faa\u9002\u7528\u4e8e \u9999\u6e2f\u670d\u52a1\u5668\u79df\u7528 \u73af\u5883\u7684\u5b89\u5168\u6700\u4f73\u5b9e\u8df5\u3002 \u5173\u952e\u8981\u70b9 \u9009\u62e9 Ubuntu \u6216 Debian \u7b49\u517c\u5bb9\u6027\u597d\u3001\u793e\u533a\u652f\u6301\u5f3a\u3001\u7ba1\u7406\u65b9\u4fbf\u7684 Linux \u53d1\u884c\u7248\u3002 \u5728\u5b89\u88c5 API \u4e4b\u524d\u52a1\u5fc5\u5148\u66f4\u65b0\u670d\u52a1\u5668\u8f6f\u4ef6\u5305\uff0c\u4ee5\u4fee\u8865\u5df2\u77e5\u6f0f\u6d1e\uff0c\u964d\u4f4e\u5b89\u5168\u98ce\u9669\u3002 \u786e\u8ba4\u6240\u6709\u5fc5\u9700\u5de5\u5177\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u786e\u4fdd API \u5b89\u88c5\u8fc7\u7a0b\u987a\u7545\u65e0\u8bef\u3002 \u4ece\u53ef\u4fe1\u6765\u6e90\u4e0b\u8f7d API \u811a\u672c\uff0c\u5e76\u6821\u9a8c\u6587\u4ef6\u5b8c\u6574\u6027\uff0c\u4ee5\u907f\u514d\u5b89\u5168\u98ce\u9669\u3002 \u5b9a\u671f\u67e5\u770b\u65e5\u5fd7\u5e76\u6d4b\u8bd5 API \u7aef\u70b9\uff0c\u786e\u4fdd\u5b89\u88c5\u8fd0\u884c\u7a33\u5b9a\u4e14\u5b89\u5168\u3002 \u51c6\u5907 Linux \u670d\u52a1\u5668 \u9009\u62e9\u517c\u5bb9\u7684\u53d1\u884c\u7248 \u9996\u5148\u5e94\u6839\u636e\u81ea\u8eab\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684 Linux \u53d1\u884c\u7248\u3002\u8bb8\u591a\u7528\u6237\u66f4\u504f\u597d Ubuntu \u6216 Debian\uff0c\u56e0\u4e3a\u5b83\u4eec\u62e5\u6709\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301\u4e0e\u4fbf\u6377\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u3002CentOS \u4e0e RHEL \u4e5f\u975e\u5e38\u9002\u5408\u4f01\u4e1a\u7ea7\u73af\u5883\u3002\u52a1\u5fc5\u786e\u8ba4\u4f60\u9009\u62e9\u7684\u53d1\u884c\u7248\u5df2\u5f97\u5230\u76ee\u6807 API \u811a\u672c\u7684\u652f\u6301\uff0c\u8fd9\u5c06\u6709\u52a9\u4e8e\u907f\u514d\u540e\u7eed\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002 \u521d\u59cb\u914d\u7f6e\u4e0e\u7cfb\u7edf\u66f4\u65b0 \u5728\u5b8c\u6210\u670d\u52a1\u5668\u57fa\u7840\u5b89\u88c5\u540e\uff0c\u4f60\u9700\u8981\u7acb\u5373\u66f4\u65b0\u6240\u6709\u7cfb\u7edf\u8f6f\u4ef6\u5305\u3002\u4fdd\u6301\u7cfb\u7edf\u6700\u65b0\u72b6\u6001\u53ef\u4ee5\u5e2e\u52a9\u9632\u5fa1\u5df2\u77e5\u5b89\u5168\u6f0f\u6d1e\u3002\u5bf9\u4e8e Ubuntu \u6216 Debian\uff0c\u53ef\u4ee5\u8fd0\u884c\uff1a [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":11,"featured_media":30358,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[80],"tags":[],"class_list":["post-30361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c<\/title>\n<meta name=\"description\" content=\"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u7684\u5206\u6b65\u6307\u5357\uff0c\u5305\u62ec\u73af\u5883\u51c6\u5907\u3001\u4f9d\u8d56\u68c0\u67e5\u3001\u6743\u9650\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56fa\u6700\u4f73\u5b9e\u8df5\u3002\" \/>\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.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Varidata Limited\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-24T08:41:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-24T08:46:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"685\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\"},\"author\":\"Varidata\",\"headline\":\"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\",\"datePublished\":\"2026-02-24T08:41:11+00:00\",\"dateModified\":\"2026-02-24T08:46:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\"},\"wordCount\":425,\"publisher\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg\",\"articleSection\":[\"Varidata \u77e5\u8bc6\u6587\u6863\"],\"inLanguage\":\"zh-SC\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\",\"name\":\"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\",\"isPartOf\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg\",\"datePublished\":\"2026-02-24T08:41:11+00:00\",\"dateModified\":\"2026-02-24T08:46:12+00:00\",\"description\":\"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u7684\u5206\u6b65\u6307\u5357\uff0c\u5305\u62ec\u73af\u5883\u51c6\u5907\u3001\u4f9d\u8d56\u68c0\u67e5\u3001\u6743\u9650\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56fa\u6700\u4f73\u5b9e\u8df5\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#breadcrumb\"},\"inLanguage\":\"zh-SC\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-SC\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage\",\"url\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg\",\"contentUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg\",\"width\":685,\"height\":372,\"caption\":\"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u6d41\u7a0b\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.varidata.com\/zh-cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"name\":\"Varidata Limited\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-SC\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\",\"name\":\"Varidata\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-SC\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"contentUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"width\":248,\"height\":94,\"caption\":\"Varidata\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/person\/afeb2203681f7919a757a02690f38abd\",\"name\":\"Daisy Yu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-SC\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/38db59364245f7a04c07a2888056fc3db37247c1af72457af92d8001da594989?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/38db59364245f7a04c07a2888056fc3db37247c1af72457af92d8001da594989?s=96&d=mm&r=g\",\"caption\":\"Daisy Yu\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c","description":"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u7684\u5206\u6b65\u6307\u5357\uff0c\u5305\u62ec\u73af\u5883\u51c6\u5907\u3001\u4f9d\u8d56\u68c0\u67e5\u3001\u6743\u9650\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56fa\u6700\u4f73\u5b9e\u8df5\u3002","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.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c","og_url":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/","og_site_name":"Varidata Limited","article_published_time":"2026-02-24T08:41:11+00:00","article_modified_time":"2026-02-24T08:46:12+00:00","og_image":[{"width":685,"height":372,"url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg","type":"image\/jpeg"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#article","isPartOf":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/"},"author":"Varidata","headline":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c","datePublished":"2026-02-24T08:41:11+00:00","dateModified":"2026-02-24T08:46:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/"},"wordCount":425,"publisher":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#organization"},"image":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg","articleSection":["Varidata \u77e5\u8bc6\u6587\u6863"],"inLanguage":"zh-SC"},{"@type":"WebPage","@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/","url":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/","name":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c","isPartOf":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage"},"image":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg","datePublished":"2026-02-24T08:41:11+00:00","dateModified":"2026-02-24T08:46:12+00:00","description":"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u7684\u5206\u6b65\u6307\u5357\uff0c\u5305\u62ec\u73af\u5883\u51c6\u5907\u3001\u4f9d\u8d56\u68c0\u67e5\u3001\u6743\u9650\u914d\u7f6e\u4e0e\u5b89\u5168\u52a0\u56fa\u6700\u4f73\u5b9e\u8df5\u3002","breadcrumb":{"@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#breadcrumb"},"inLanguage":"zh-SC","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/"]}]},{"@type":"ImageObject","inLanguage":"zh-SC","@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#primaryimage","url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg","contentUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2026\/02\/2026-02-24-160329-1.jpg","width":685,"height":372,"caption":"\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c\u6d41\u7a0b"},{"@type":"BreadcrumbList","@id":"https:\/\/www.varidata.com\/zh-cn\/knowledge\/how-to-install-full-script-of-api-on-a-fresh-linux-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.varidata.com\/zh-cn\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728\u5168\u65b0 Linux \u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u5b8c\u6574 API \u811a\u672c"}]},{"@type":"WebSite","@id":"https:\/\/www.varidata.com\/zh-cn\/#website","url":"https:\/\/www.varidata.com\/zh-cn\/","name":"Varidata Limited","description":"","publisher":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-SC"},{"@type":"Organization","@id":"https:\/\/www.varidata.com\/zh-cn\/#organization","name":"Varidata","url":"https:\/\/www.varidata.com\/zh-cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-SC","@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","contentUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","width":248,"height":94,"caption":"Varidata"},"image":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/person\/afeb2203681f7919a757a02690f38abd","name":"Daisy Yu","image":{"@type":"ImageObject","inLanguage":"zh-SC","@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/38db59364245f7a04c07a2888056fc3db37247c1af72457af92d8001da594989?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/38db59364245f7a04c07a2888056fc3db37247c1af72457af92d8001da594989?s=96&d=mm&r=g","caption":"Daisy Yu"}}]}},"_links":{"self":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/posts\/30361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/comments?post=30361"}],"version-history":[{"count":2,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/posts\/30361\/revisions"}],"predecessor-version":[{"id":30365,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/posts\/30361\/revisions\/30365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/media\/30358"}],"wp:attachment":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/media?parent=30361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/categories?post=30361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/tags?post=30361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}