{"id":1247,"date":"2020-05-18T21:11:54","date_gmt":"2020-05-18T13:11:54","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1247"},"modified":"2020-05-18T21:11:54","modified_gmt":"2020-05-18T13:11:54","slug":"%e8%87%aa%e5%8a%a8%e5%8c%96%e8%bf%90%e7%bb%b4%e5%b9%b3%e5%8f%b0spug","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1247","title":{"rendered":"\u81ea\u52a8\u5316\u8fd0\u7ef4\u5e73\u53f0Spug"},"content":{"rendered":"<header class=\\\"postHeader\\\">\n<h1 id=\\\"__docusaurus\\\" class=\\\"postHeaderTitle\\\" style=\\\"padding-left: 40px;\\\">\u5173\u4e8eSpug<\/h1>\n<\/header>\n<article style=\\\"padding-left: 40px;\\\">\n<p style=\\\"padding-left: 40px;\\\"><code>Spug<\/code>\u00a0\u9762\u5411\u4e2d\u5c0f\u578b\u4f01\u4e1a\u8bbe\u8ba1\u7684\u8f7b\u91cf\u7ea7\u65e0Agent\u7684\u81ea\u52a8\u5316\u8fd0\u7ef4\u5e73\u53f0\uff0c\u6574\u5408\u4e86\u4e3b\u673a\u7ba1\u7406\u3001\u4e3b\u673a\u6279\u91cf\u6267\u884c\u3001\u4e3b\u673a\u5728\u7ebf\u7ec8\u7aef\u3001\u5e94\u7528\u53d1\u5e03\u90e8\u7f72\u3001\u5728\u7ebf\u4efb\u52a1\u8ba1\u5212\u3001\u914d\u7f6e\u4e2d\u5fc3\u3001\u76d1\u63a7\u3001\u62a5\u8b66\u7b49\u4e00\u7cfb\u5217\u529f\u80fd\u3002<\/p>\n<h2>\u7279\u6027<\/h2>\n<ul>\n<li>\u6279\u91cf\u6267\u884c: \u4e3b\u673a\u547d\u4ee4\u5728\u7ebf\u6279\u91cf\u6267\u884c<\/li>\n<li>\u5728\u7ebf\u7ec8\u7aef: \u4e3b\u673a\u652f\u6301\u6d4f\u89c8\u5668\u5728\u7ebf\u7ec8\u7aef\u767b\u5f55<\/li>\n<li>\u4efb\u52a1\u8ba1\u5212: \u7075\u6d3b\u7684\u5728\u7ebf\u4efb\u52a1\u8ba1\u5212<\/li>\n<li>\u53d1\u5e03\u90e8\u7f72: \u652f\u6301\u81ea\u5b9a\u4e49\u53d1\u5e03\u90e8\u7f72\u6d41\u7a0b<\/li>\n<li>\u914d\u7f6e\u4e2d\u5fc3: \u652f\u6301KV\u3001\u6587\u672c\u3001json\u7b49\u683c\u5f0f\u7684\u914d\u7f6e<\/li>\n<li>\u76d1\u63a7\u4e2d\u5fc3: \u652f\u6301\u7ad9\u70b9\u3001\u7aef\u53e3\u3001\u8fdb\u7a0b\u3001\u81ea\u5b9a\u4e49\u7b49\u76d1\u63a7<\/li>\n<li>\u62a5\u8b66\u4e2d\u5fc3: \u652f\u6301\u77ed\u4fe1\u3001\u90ae\u4ef6\u3001\u9489\u9489\u3001\u5fae\u4fe1\u7b49\u62a5\u8b66\u65b9\u5f0f<\/li>\n<li>\u4f18\u96c5\u7f8e\u89c2: \u57fa\u4e8e Ant Design \u7684UI\u754c\u9762<\/li>\n<li>\u5f00\u6e90\u514d\u8d39: \u524d\u540e\u7aef\u4ee3\u7801\u5b8c\u5168\u5f00\u6e90<\/li>\n<\/ul>\n<p><img src=\\\"http:\/\/image.qbangmang.com\/app-apply-2.0.png\\\" alt=\\\"about\\\" \/><br \/>\n<\/article>\n<h2>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/h2>\n<header>\n<h1 id=\\\"__docusaurus\\\" style=\\\"padding-left: 40px;\\\">docker\u90e8\u7f72<\/h1>\n<\/header>\n<article style=\\\"padding-left: 40px;\\\">\n<div style=\\\"padding-left: 40px;\\\">\n<h2>\u64cd\u4f5c\u7cfb\u7edf<\/h2>\n<p>\u4e00\u952e\u5b89\u88c5\u811a\u672c\u5728Centos7\/8\u548cUbuntu 18.04\u9a8c\u8bc1\u901a\u8fc7\uff0c\u5176\u4ed6\u7248\u672c\u6682\u672a\u9a8c\u8bc1\u3002<\/p>\n<h2>\u5b89\u88c5\u547d\u4ee4<\/h2>\n<pre><code class=\\\"hljs css language-shell script\\\"><span class=\\\"hljs-meta\\\">$<\/span><span class=\\\"bash\\\"> curl https:\/\/spug.dev\/installer\/spug-installer | bash<\/span>\n<\/code><\/pre>\n<h2>\u9ed8\u8ba4\u8bbe\u7f6e<\/h2>\n<pre><code class=\\\"hljs\\\"><span class=\\\"hljs-meta\\\"># \u9ed8\u8ba4\u4ee3\u7801\u5b89\u88c5\u8def\u5f84\uff1a<\/span>\n\/data\/spug\n<span class=\\\"hljs-meta\\\"># \u9ed8\u8ba4\u521b\u5efa\u7684\u6570\u636e\u5e93\u8d26\u53f7<\/span>\n\u7528\u6237\uff1aspug\n\u5bc6\u7801\uff1aspug.dev\n<span class=\\\"hljs-meta\\\"># \u9ed8\u8ba4\u521b\u5efa\u7684\u7cfb\u7edf\u7ba1\u7406\u5458<\/span>\n\u8d26\u6237\uff1aadmin\n\u5bc6\u7801\uff1aspug.dev\n<\/code><\/pre>\n<h2>\u5b89\u5168\u5efa\u8bae<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\u5b89\u88c5\u7684\u00a0<code>Redis<\/code>\u00a0\u670d\u52a1\u76d1\u542c\u5728\u00a0<code>127.0.0.1<\/code> \u4f46\u672a\u8bbe\u7f6e\u5bc6\u7801\uff0c\u5982\u9700\u542f\u7528\u5bc6\u7801\u8ba4\u8bc1\uff0c\u914d\u7f6e\u4f7f\u7528\u5e26\u5bc6\u7801\u7684 <code style=\\\"font-style: inherit; font-weight: inherit;\\\">Redis<\/code><span style=\\\"font-size: 16px;\\\">\u00a0\u670d\u52a1\uff1f<\/span>\u5047\u8bbe\u00a0<code>Redis<\/code>\u00a0\u5bc6\u7801\u4e3a\u00a0<code>foo123<\/code>\uff0c\u5219\u9700\u8981\u66f4\u6539\u4ee5\u914d\u7f6e\u6587\u4ef6\u00a0<code>spug_api\/spug\/settings.py<\/code>\u00a0\u6216\u8005\u00a0<code>overrides.py<\/code>\u00a0\u5982\u4e0b\u5185\u5bb9<br \/>\n<blockquote><p>\u81ea\u5b9a\u4e49\u7684\u914d\u7f6e\u53ef\u4ee5\u5728\u00a0<code>spug_api\/spug\/<\/code>\u00a0\u76ee\u5f55\u4e0b\u521b\u5efa\u00a0<code>overrides.py<\/code>\u00a0\u6587\u4ef6\u6765\u8986\u76d6\u9ed8\u8ba4\u7684\u914d\u7f6e\u3002<\/p><\/blockquote>\n<pre>$ vi spug_api\/spug\/settings.py\nCACHES = {\n    \\\"default\\\": {\n        \\\"BACKEND\\\": \\\"django_redis.cache.RedisCache\\\",\n        \\\"LOCATION\\\": \\\"redis:\/\/:foo123@127.0.0.1:6379\/1\\\",\n        \\\"OPTIONS\\\": {\n            \\\"CLIENT_CLASS\\\": \\\"django_redis.client.DefaultClient\\\",\n        }\n    }\n}\nCHANNEL_LAYERS = {\n    \\\"default\\\": {\n        \\\"BACKEND\\\": \\\"channels_redis.core.RedisChannelLayer\\\",\n        \\\"CONFIG\\\": {\n            \\\"hosts\\\": [\\\"redis:\/\/:foo123@127.0.0.1:6379\/0\\\"],\n        },\n    },\n}<\/pre>\n<\/li>\n<li>\u9ed8\u8ba4\u5b89\u88c5\u4e86\u00a0<code>Mariadb<\/code>\u00a0\u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u670d\u52a1\uff0c\u76d1\u542c\u5728\u00a0<code>127.0.0.1<\/code>\u00a0\u521b\u5efa\u4e86\u7528\u6237\u540d\u4e3a\u00a0<code>spug<\/code>\u00a0\u5bc6\u7801\u4e3a\u00a0<code>spug.dev<\/code>\u00a0\u7684\u7528\u6237\uff0c\u5b89\u5168\u8d77\u89c1\u8bf7\u81ea\u884c\u66f4\u6539\u8be5\u5bc6\u7801\uff0c\u5e76\u4fee\u6539\u00a0<code>\/data\/spug\/spug_api\/spug\/overrides.py<\/code>\u00a0\u4f7f\u7528\u65b0\u5bc6\u7801\u3002<\/li>\n<li>\u786e\u4fdd\u670d\u52a1\u7aef\u63a5\u6536\u5230\u8bf7\u6c42\u00a0<code>HTTP Header<\/code>\u00a0\u7684\u00a0<code>X-Real-IP<\/code>\u00a0\u4e3a\u771f\u5b9e\u7684\u5ba2\u6237\u7aef\u5730\u5740\uff0c<code>Spug<\/code>\u00a0\u4f1a\u4f7f\u7528\u8be5IP\u63d0\u9ad8\u5b89\u5168\u6027\uff08\u5f53\u767b\u7528\u6237\u7684IP\u53d1\u751f\u53d8\u5316\u65f6Token\u81ea\u52a8\u5931\u6548\uff09\u3002<\/li>\n<\/ul>\n<h2>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/h2>\n<h2>\u624b\u52a8\u5b89\u88c5<\/h2>\n<h2>\u51c6\u5907\u73af\u5883<\/h2>\n<ul>\n<li>Python 3.6\u53ca\u4ee5\u4e0a<\/li>\n<li>Mysql 5.5\u53ca\u4ee5\u4e0a<\/li>\n<\/ul>\n<h2>\u5b89\u88c5\u6b65\u9aa4<\/h2>\n<p>\u4ee5\u4e0b\u5b89\u88c5\u6b65\u9aa4\u5047\u8bbe\u9879\u76ee\u90e8\u7f72\u5728\u4e00\u53f0\u00a0<code>Centos7<\/code>\u00a0\u7cfb\u7edf\u7684\u00a0<code>\/data\/spug<\/code>\u00a0\u76ee\u5f55\u4e0b\u3002<\/p>\n<h3>1. Clone\u9879\u76ee\u4ee3\u7801<\/h3>\n<pre>$ git clone https:\/\/github.com\/openspug\/spug \/data\/spug\n$ cd \/data\/spug\n$ git checkout x.x.x   # x.x.x \u4e3a\u6307\u5b9a\u7684\u53d1\u884c\u7248\u672c\uff0c\u4f8b\u5982 git checkout v2.2.2\n<\/pre>\n<h3>2. <a href=\\\"https:\/\/github.com\/openspug\/spug\/releases\\\">\u4e0b\u8f7d<\/a>\u00a0\u5df2\u7f16\u8bd1\u6253\u5305\u540e\u7684\u524d\u7aef\u9879\u76ee<\/h3>\n<p>\u5c06\u4e0b\u8f7d\u597d\u7684\u524d\u7aef\u538b\u7f29\u5305\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\uff0c<code>x.x.x<\/code>\u00a0\u662f\u7684\u4f60\u4e0b\u8f7d\u597d\u7684\u538b\u7f29\u5305\u7248\u672c<\/p>\n<blockquote><p>\u8bbf\u95ee\u00a0<a href=\\\"https:\/\/github.com\/openspug\/spug\/releases\\\"><code>Github<\/code><\/a>\u00a0\u6bd4\u8f83\u6162\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5728\u5c1d\u8bd5\u5728\u00a0<a href=\\\"https:\/\/gitee.com\/openspug\/spug\/releases\\\"><code>Gitee<\/code><\/a>\u00a0\u4e0b\u8f7d\u3002<\/p><\/blockquote>\n<pre>$ tar xf spug_web_x.x.x.tar.gz -C \/data\/spug\/spug_web\/;\n<\/pre>\n<h3>3. \u521b\u5efa\u8fd0\u884c\u73af\u5883<\/h3>\n<pre># \u5b89\u88c5\u4f9d\u8d56\n$ yum install mariadb-devel python3-devel gcc openldap-devel redis nginx supervisor\n# \u521b\u5efa\u865a\u62df\u73af\u5883\n$ cd \/data\/spug\/spug_api\n$ python3 -m venv venv\n$ source venv\/bin\/activate\n# \u5b89\u88c5python\u5305\n$ pip install -r requirements.txt -i https:\/\/pypi.doubanio.com\/simple\/\n$ pip install gunicorn mysqlclient -i https:\/\/pypi.doubanio.com\/simple\/\n<\/pre>\n<h3>4. \u4fee\u6539\u540e\u7aef\u914d\u7f6e<\/h3>\n<p>\u540e\u7aef\u9ed8\u8ba4\u4f7f\u7528\u7684\u00a0<code>Sqlite<\/code>\u00a0\u6570\u636e\u5e93\uff0c\u901a\u8fc7\u4fee\u6539\u914d\u7f6e\u4f7f\u7528\u00a0<code>MYSQL<\/code>\u00a0\u4f5c\u4e3a\u540e\u7aef\u6570\u636e\u5e93\uff0c<a href=\\\"https:\/\/www.spug.dev\/docs\/install-error#%E4%BD%BF%E7%94%A8-sqlserver-%E6%95%B0%E6%8D%AE%E5%BA%93\\\">\u5982\u4f55\u4f7f\u7528SqlServer\u6570\u636e\u5e93\uff1f<\/a><\/p>\n<blockquote><p>\u5728\u00a0<code>spug_api\/spug\/<\/code>\u00a0\u76ee\u5f55\u4e0b\u521b\u5efa\u00a0<code>overrides.py<\/code>\u00a0\u6587\u4ef6\uff0c\u542f\u52a8\u540e\u7aef\u670d\u52a1\u540e\u4f1a\u81ea\u52a8\u8986\u76d6\u9ed8\u8ba4\u7684\u914d\u7f6e\uff0c\u907f\u514d\u76f4\u63a5\u4fee\u6539\u00a0<code>settings.py<\/code>\u00a0\u4ee5\u4fbf\u4e8e\u540e\u671f\u83b7\u53d6\u65b0\u7248\u672c\u3002<\/p><\/blockquote>\n<pre>$ vi spug_api\/spug\/overrides.py\nDEBUG = False\nALLOWED_HOSTS = [\\'127.0.0.1\\']\nDATABASES = {\n    \\'default\\': {\n        \\'ATOMIC_REQUESTS\\': True,\n        \\'ENGINE\\': \\'django.db.backends.mysql\\',\n        \\'NAME\\': \\'spug\\',             # \u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u6570\u636e\u5e93\u540d\uff0c\u8bf7\u9884\u5148\u521b\u5efa\u597d\u7f16\u7801\u4e3autf8mb4\u7684\u6570\u636e\u5e93\n        \\'USER\\': \\'spug_user\\',        # \u6570\u636e\u5e93\u7528\u6237\u540d\n        \\'PASSWORD\\': \\'spug_passwd\\',  # \u6570\u636e\u5e93\u5bc6\u7801\n        \\'HOST\\': \\'127.0.0.1\\',        # \u6570\u636e\u5e93\u5730\u5740\n        \\'OPTIONS\\': {\n            \\'charset\\': \\'utf8mb4\\',\n            \\'sql_mode\\': \\'STRICT_TRANS_TABLES\\',\n            #\\'unix_socket\\': \\'\/opt\/mysql\/mysql.sock\\' # \u5982\u679c\u662f\u672c\u673a\u6570\u636e\u5e93,\u4e14\u4e0d\u662f\u9ed8\u8ba4\u5b89\u88c5\u7684Mysql,\u9700\u8981\u6307\u5b9aMysql\u7684socket\u6587\u4ef6\u8def\u5f84\n        }\n    }\n}\n<\/pre>\n<h3>5. \u521d\u59cb\u5316\u6570\u636e\u5e93<\/h3>\n<pre>$ cd \/data\/spug\/spug_api\n$ python manage.py initdb\n<\/pre>\n<h3>6. \u521b\u5efa\u9ed8\u8ba4\u7ba1\u7406\u5458\u8d26\u6237<\/h3>\n<pre>$ python manage.py useradd -u admin -p spug.dev -s -n \u7ba1\u7406\u5458\n# -u \u7528\u6237\u540d\n# -p \u5bc6\u7801\n# -s \u8d85\u7ea7\u7ba1\u7406\u5458\n# -n \u7528\u6237\u6635\u79f0\n<\/pre>\n<h3>7. \u521b\u5efa\u542f\u52a8\u670d\u52a1\u811a\u672c<\/h3>\n<pre>$ vi \/etc\/supervisord.d\/spug.ini\n[program:spug-api]\ncommand = bash \/data\/spug\/spug_api\/tools\/start-api.sh\nautostart = true\nstdout_logfile = \/data\/spug\/spug_api\/logs\/api.log\nredirect_stderr = true\n[program:spug-ws]\ncommand = bash \/data\/spug\/spug_api\/tools\/start-ws.sh\nautostart = true\nstdout_logfile = \/data\/spug\/spug_api\/logs\/ws.log\nredirect_stderr = true\n[program:spug-worker]\ncommand = bash \/data\/spug\/spug_api\/tools\/start-worker.sh\nautostart = true\nstdout_logfile = \/data\/spug\/spug_api\/logs\/worker.log\nredirect_stderr = true\n[program:spug-monitor]\ncommand = bash \/data\/spug\/spug_api\/tools\/start-monitor.sh\nautostart = true\nstdout_logfile = \/data\/spug\/spug_api\/logs\/monitor.log\nredirect_stderr = true\n[program:spug-scheduler]\ncommand = bash \/data\/spug\/spug_api\/tools\/start-scheduler.sh\nautostart = true\nstdout_logfile = \/data\/spug\/spug_api\/logs\/scheduler.log\nredirect_stderr = true\n<\/pre>\n<h3>8. \u521b\u5efa\u524d\u7aefnginx\u914d\u7f6e\u6587\u4ef6<\/h3>\n<pre>$ vi \/etc\/nginx\/conf.d\/spug.conf\nserver {\n        listen 80;\n        server_name _;     # \u4fee\u6539\u4e3a\u81ea\u5b9a\u4e49\u7684\u8bbf\u95ee\u57df\u540d\n        root \/data\/spug\/spug_web\/build\/;\n        location ^~ \/api\/ {\n                rewrite ^\/api(.*) $1 break;\n                proxy_pass http:\/\/127.0.0.1:9001;\n                proxy_redirect off;proxy_set_header X-Real-IP $remote_addr;\n        }\n        location ^~ \/api\/ws\/ {\n                rewrite ^\/api(.*) $1 break;\n                proxy_pass http:\/\/127.0.0.1:9002;\n                proxy_http_version 1.1;\n                proxy_set_header Upgrade $http_upgrade;\n                proxy_set_header Connection \\\"Upgrade\\\";\n                proxy_set_header X-Real-IP $remote_addr;\n        }\n        error_page 404 \/index.html;\n}<\/pre>\n<blockquote><p>\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u6ca1\u6709\u5728\u00a0<code>spug.conf<\/code>\u00a0\u4e2d\u6307\u5b9a\u00a0<code>server_name<\/code>\u00a0\u5219\u9700\u8981\u628a\u00a0<code>\/etc\/nginx\/nginx.conf<\/code>\u00a0\u4e2d\u9ed8\u8ba4\u7684\u00a0<code>server<\/code>\u00a0\u5757\u6ce8\u91ca\u6216\u5220\u9664\u540e\u624d\u80fd\u6b63\u5e38\u8bbf\u95ee\uff0c \u5426\u5219\u4f1a\u6253\u5f00 Nginx \u9ed8\u8ba4\u9875\u9762\u3002<\/p><\/blockquote>\n<h3>9. \u542f\u52a8\u670d\u52a1<\/h3>\n<pre># \u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\n$ systemctl enable nginx\n$ systemctl enable redis\n$ systemctl enable supervisord\n# \u542f\u52a8\u670d\u52a1\n$ systemctl restart nginx\n$ systemctl restart redis\n$ systemctl restart supervisord\n<\/pre>\n<h3>10. \u8bbf\u95ee\u6d4b\u8bd5<\/h3>\n<p>\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u6d4b\u8bd5\u3002\n<\/p><\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8eSpug Spug\u00a0\u9762\u5411\u4e2d\u5c0f\u578b\u4f01\u4e1a\u8bbe\u8ba1\u7684\u8f7b\u91cf\u7ea7\u65e0Agent\u7684\u81ea\u52a8\u5316\u8fd0\u7ef4\u5e73\u53f0\uff0c\u6574\u5408\u4e86\u4e3b\u673a\u7ba1\u7406\u3001\u4e3b\u673a\u6279\u91cf\u6267\u884c\u3001 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1247\"> <span class=\"screen-reader-text\">\u81ea\u52a8\u5316\u8fd0\u7ef4\u5e73\u53f0Spug<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[112],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"\u5173\u4e8eSpug Spug\u00a0\u9762\u5411\u4e2d\u5c0f\u578b\u4f01\u4e1a\u8bbe\u8ba1\u7684\u8f7b\u91cf\u7ea7\u65e0Agent\u7684\u81ea\u52a8\u5316\u8fd0\u7ef4\u5e73\u53f0\uff0c\u6574\u5408\u4e86\u4e3b\u673a\u7ba1\u7406\u3001\u4e3b\u673a\u6279\u91cf\u6267\u884c\u3001&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1247"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1247"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1247\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1247"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}