{"id":133,"date":"2026-01-22T08:53:04","date_gmt":"2026-01-22T08:53:04","guid":{"rendered":"https:\/\/blog.gpst.net.cn:4008\/?p=133"},"modified":"2026-01-28T06:24:15","modified_gmt":"2026-01-28T06:24:15","slug":"haproxy-%e7%9a%84%e5%90%af%e5%81%9c%e7%ae%a1%e7%90%86%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=133","title":{"rendered":"haproxy \u7684\u542f\u505c\u7ba1\u7406\u811a\u672c"},"content":{"rendered":"\n<p>\u8fd9\u4e2a\u811a\u672c\u672c\u8d28\u662f\u4e00\u4e2a haproxy \u7684\u542f\u505c\u7ba1\u7406\u811a\u672c\uff0c\u6838\u5fc3\u529f\u80fd\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>mkcfSTR \u51fd\u6570<\/strong>\uff1a\u52a8\u6001\u751f\u6210 haproxy \u914d\u7f6e\u6587\u4ef6\uff08<code>\/app\/haproxy\/conf\/ha.cf<\/code>\uff09\uff0c\u5305\u542b\u5168\u5c40\u914d\u7f6e\u3001\u9ed8\u8ba4\u914d\u7f6e\u3001\u76d1\u63a7\u9875\u9762\u914d\u7f6e\u548c TCP \u53cd\u5411\u4ee3\u7406\uff0810051 \u7aef\u53e3\u8f6c\u53d1\u5230\u4e24\u4e2a\u540e\u7aef\u8282\u70b9\uff09\u3002<\/li>\n\n\n\n<li><strong>start \u51fd\u6570<\/strong>\uff1a\u5f3a\u5236\u6740\u6b7b\u73b0\u6709 haproxy \u8fdb\u7a0b \u2192 \u91cd\u65b0\u751f\u6210\u914d\u7f6e\u6587\u4ef6 \u2192 \u542f\u52a8 haproxy \u2192 \u542f\u52a8\u6210\u529f\u540e\u6e05\u7a7a\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n\n\n\n<li><strong>stop \u51fd\u6570<\/strong>\uff1a\u5f3a\u5236\u6740\u6b7b\u6240\u6709 haproxy \u8fdb\u7a0b\u3002<\/li>\n\n\n\n<li><strong>listenXI \u51fd\u6570<\/strong>\uff1a\u68c0\u67e5 haproxy \u662f\u5426\u8fd0\u884c\uff0c\u672a\u8fd0\u884c\u5219\u6267\u884c start\u3002<\/li>\n\n\n\n<li><strong>case \u5206\u652f<\/strong>\uff1a\u652f\u6301<code>start\/stop\/restart\/listen<\/code>\u56db\u79cd\u6267\u884c\u53c2\u6570\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n##############################################################################\n# \u811a\u672c\u540d\u79f0: haproxy_manager.sh\n# \u811a\u672c\u529f\u80fd: \u7ba1\u7406haproxy\u670d\u52a1\uff08\u542f\u52a8\/\u505c\u6b62\/\u91cd\u542f\/\u76d1\u542c\u68c0\u67e5\uff09\n# \u914d\u7f6e\u8def\u5f84: \/app\/haproxy\/conf\/ha.cf\n# \u8fd0\u884c\u7528\u6237: \u5efa\u8baeroot\u7528\u6237\u6267\u884c\uff08\u9700\u521b\u5efa\u8fdb\u7a0b\u3001\u7ed1\u5b9a\u7aef\u53e3\uff09\n# \u529f\u80fd\u8bf4\u660e:\n#   1. \u542f\u52a8\uff1a\u5f3a\u5236\u505c\u6b62\u73b0\u6709haproxy \u2192 \u751f\u6210\u914d\u7f6e\u6587\u4ef6 \u2192 \u542f\u52a8haproxy\n#   2. \u505c\u6b62\uff1a\u5f3a\u5236\u505c\u6b62\u6240\u6709haproxy\u8fdb\u7a0b\n#   3. \u91cd\u542f\uff1a\u5148\u505c\u6b62\u518d\u542f\u52a8\n#   4. \u76d1\u542c\uff1a\u68c0\u67e5haproxy\u662f\u5426\u8fd0\u884c\uff0c\u672a\u8fd0\u884c\u5219\u542f\u52a8\n# \u6ce8\u610f\u4e8b\u9879:\n#   1. \u9700\u786e\u4fdd\/app\/haproxy\/sbin\/haproxy\u53ef\u6267\u884c\n#   2. \u9700\u786e\u4fdd7001\u7528\u6237\/\u7ec4\u5b58\u5728\uff08haproxy\u8fd0\u884c\u7528\u6237\uff09\n#   3. \u7ed1\u5b9a8080\/10051\u7aef\u53e3\u9700root\u6743\u9650\n##############################################################################\n\n# ======================== \u914d\u7f6e\u9879\u5b9a\u4e49 ========================\nhaproxy_cf=\"\/app\/haproxy\/conf\/ha.cf\"  # haproxy\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\nhaproxy_bin=\"\/app\/haproxy\/sbin\/haproxy\"  # haproxy\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\nhaproxy_pid=\"\/var\/run\/haproxy-private.pid\"  # haproxy PID\u6587\u4ef6\nlog_file=\"\/var\/log\/haproxy_manager.log\"  # \u811a\u672c\u8fd0\u884c\u65e5\u5fd7\n\n# ======================== \u65e5\u5fd7\u51fd\u6570 ========================\nlog() {\n    echo \"&#091;$(date +'%Y-%m-%d %H:%M:%S')] $1\" &gt;&gt; $log_file\n}\n\n# ======================== \u751f\u6210haproxy\u914d\u7f6e\u6587\u4ef6 ========================\nmkcfSTR() {\n    # \u68c0\u67e5\u914d\u7f6e\u76ee\u5f55\u662f\u5426\u5b58\u5728\uff0c\u4e0d\u5b58\u5728\u5219\u521b\u5efa\n    if &#091;&#091; ! -d $(dirname $haproxy_cf) ]]; then\n        mkdir -p $(dirname $haproxy_cf)\n        chmod 755 $(dirname $haproxy_cf)\n        log \"\u521b\u5efahaproxy\u914d\u7f6e\u76ee\u5f55: $(dirname $haproxy_cf)\"\n    fi\n\n    # \u751f\u6210haproxy\u914d\u7f6e\u6587\u4ef6\n    cat &gt;$haproxy_cf &lt;&lt;EOF\nglobal\n    maxconn 65535                # \u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\n    chroot \/app\/haproxy          # \u5207\u6362\u6839\u76ee\u5f55\uff0c\u589e\u5f3a\u5b89\u5168\u6027\n    uid 7001                     # haproxy\u8fd0\u884c\u7528\u6237ID\n    gid 7001                     # haproxy\u8fd0\u884c\u7ec4ID\n    daemon                       # \u4ee5\u5b88\u62a4\u8fdb\u7a0b\u8fd0\u884c\n    stats socket \/var\/lib\/haproxy\/stats  # \u7edf\u8ba1\u4fe1\u606f\u5957\u63a5\u5b57\n    quiet                        # \u9759\u9ed8\u6a21\u5f0f\uff0c\u51cf\u5c11\u65e5\u5fd7\u8f93\u51fa\n    nbproc 1                     # \u542f\u52a81\u4e2a\u8fdb\u7a0b\n    pidfile $haproxy_pid         # PID\u6587\u4ef6\u8def\u5f84\n\ndefaults\n    log global                   # \u4f7f\u7528global\u6bb5\u7684\u65e5\u5fd7\u914d\u7f6e\n    mode tcp                     # \u9ed8\u8ba4\u5de5\u4f5c\u6a21\u5f0f\u4e3aTCP\uff08\u56db\u5c42\u4ee3\u7406\uff09\n    option httplog               # \u8bb0\u5f55HTTP\u65e5\u5fd7\n    option dontlognull           # \u4e0d\u8bb0\u5f55\u7a7a\u8fde\u63a5\u65e5\u5fd7\n    option redispatch            # \u8fde\u63a5\u5931\u8d25\u65f6\u91cd\u65b0\u5206\u53d1\u5230\u5176\u4ed6\u670d\u52a1\u5668\n    option abortonclose          # \u5ba2\u6237\u7aef\u8fde\u63a5\u5173\u95ed\u65f6\u7ec8\u6b62\u4f1a\u8bdd\n    log 127.0.0.1 local0 err     # \u9519\u8bef\u65e5\u5fd7\u53d1\u9001\u5230\u672c\u5730syslog\n    retries 4                    # \u8fde\u63a5\u91cd\u8bd5\u6b21\u6570\n    maxconn 65535                # \u6bcf\u4e2a\u8fdb\u7a0b\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\n    contimeout 5000              # \u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\uff08ms\uff09\n    clitimeout 50000             # \u5ba2\u6237\u7aef\u8d85\u65f6\u65f6\u95f4\uff08ms\uff09\n    srvtimeout 50000             # \u670d\u52a1\u5668\u8d85\u65f6\u65f6\u95f4\uff08ms\uff09\n\n# \u7ba1\u7406\u76d1\u63a7\u9875\u9762\u914d\u7f6e\nlisten admin_stats\n    stats enable                 # \u542f\u7528\u7edf\u8ba1\u529f\u80fd\n    bind *:8080                  # \u76d1\u63a7\u9875\u9762\u7ed1\u5b9a8080\u7aef\u53e3\n    mode http                    # \u76d1\u63a7\u9875\u9762\u5de5\u4f5c\u6a21\u5f0f\u4e3aHTTP\n    option httplog               # \u8bb0\u5f55HTTP\u65e5\u5fd7\n    log global                   # \u4f7f\u7528global\u6bb5\u65e5\u5fd7\u914d\u7f6e\n    maxconn 10                   # \u76d1\u63a7\u9875\u9762\u6700\u5927\u5e76\u53d1\u6570\n    stats refresh 30s            # \u76d1\u63a7\u9875\u9762\u81ea\u52a8\u5237\u65b0\u65f6\u95f4\n    stats uri \/admin?stats=bqezYrdtotiq6bajrvzqpbcTe4&amp;key=auGj2cnxdunljsm4batxqqxphQ  # \u76d1\u63a7\u9875\u9762\u8bbf\u95ee\u8def\u5f84\n    stats realm haproxy          # \u8ba4\u8bc1\u63d0\u793a\u4fe1\u606f\n    stats auth admin:sM9we6Idyf  # \u76d1\u63a7\u9875\u9762\u8ba4\u8bc1\u8d26\u53f7\u5bc6\u7801\n    stats hide-version           # \u9690\u85cfhaproxy\u7248\u672c\u4fe1\u606f\n    stats admin if TRUE          # \u542f\u7528\u76d1\u63a7\u9875\u9762\u7ba1\u7406\u529f\u80fd\n\n# ZBXXISRT\u4e1a\u52a1\u4ee3\u7406\u914d\u7f6e\uff0810051\u7aef\u53e3\u8f6c\u53d1\uff09\nlisten ZBXXISRT\n    bind 0.0.0.0:10051           # \u7ed1\u5b9a10051\u7aef\u53e3\n    mode tcp                     # TCP\u6a21\u5f0f\n    option redispatch            # \u8fde\u63a5\u5931\u8d25\u91cd\u5206\u53d1\n    option abortonclose          # \u5173\u95ed\u8fde\u63a5\u65f6\u7ec8\u6b62\u4f1a\u8bdd\n    retries 4                    # \u91cd\u8bd5\u6b21\u6570\n    maxconn 64000                # \u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\n    contimeout 5000              # \u8fde\u63a5\u8d85\u65f6\n    clitimeout 50000             # \u5ba2\u6237\u7aef\u8d85\u65f6\n    srvtimeout 50000             # \u670d\u52a1\u5668\u8d85\u65f6\n    balance roundrobin           # \u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\uff1a\u8f6e\u8be2\n    # \u540e\u7aef\u670d\u52a1\u5668\u914d\u7f6e\uff08\u6743\u91cd1\uff0c\u6700\u5927\u8fde\u63a540000\uff0c5\u79d2\u68c0\u67e5\u4e00\u6b21\u72b6\u6001\uff09\n    server 172.16.12.242:20051 172.16.12.242:20051 weight 1 maxconn 40000 check inter 5s\n    server 172.16.12.220:20051 172.16.12.220:20051 weight 1 maxconn 40000 check inter 5s\nEOF\n\n    # \u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u7ed3\u679c\n    if &#091;&#091; $? -eq 0 ]]; then\n        log \"haproxy\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u6210\u529f: $haproxy_cf\"\n        chmod 644 $haproxy_cf  # \u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6\u6743\u9650\n        return 0\n    else\n        log \"haproxy\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u5931\u8d25\"\n        echo -e \"\\e&#091;1;31mhaproxy\u914d\u7f6e\u6587\u4ef6\u751f\u6210\u5931\u8d25!\\e&#091;0;m\"\n        return 1\n    fi\n}\n\n# ======================== \u542f\u52a8haproxy ========================\nstart() {\n    log \"\u5f00\u59cb\u542f\u52a8haproxy\u670d\u52a1\"\n    \n    # 1. \u505c\u6b62\u73b0\u6709haproxy\u8fdb\u7a0b\n    if &#091;&#091; -f $haproxy_pid ]] &amp;&amp; ps -p $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1; then\n        log \"\u68c0\u6d4b\u5230haproxy\u5df2\u8fd0\u884c\uff08PID: $(cat $haproxy_pid)\uff09\uff0c\u5148\u505c\u6b62\"\n        kill -9 $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1\n        rm -f $haproxy_pid\n    elif &#091;&#091; $(pgrep haproxy 2&gt;\/dev\/null | wc -l) -gt 0 ]]; then\n        log \"\u68c0\u6d4b\u5230haproxy\u8fdb\u7a0b\u5b58\u5728\uff0c\u5f3a\u5236\u505c\u6b62\u6240\u6709\u8fdb\u7a0b\"\n        pgrep haproxy | xargs kill -9 &gt;\/dev\/null 2&gt;&amp;1\n    fi\n\n    # 2. \u9a8c\u8bc1haproxy\u53ef\u6267\u884c\u6587\u4ef6\n    if &#091;&#091; ! -x $haproxy_bin ]]; then\n        log \"haproxy\u53ef\u6267\u884c\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u65e0\u6267\u884c\u6743\u9650: $haproxy_bin\"\n        echo -e \"\\e&#091;1;31mhaproxy\u53ef\u6267\u884c\u6587\u4ef6\u4e0d\u5b58\u5728\u6216\u65e0\u6267\u884c\u6743\u9650!\\e&#091;0;m\"\n        return 1\n    fi\n\n    # 3. \u751f\u6210\u914d\u7f6e\u6587\u4ef6\n    mkcfSTR\n    if &#091;&#091; $? -ne 0 ]]; then\n        return 1\n    fi\n\n    # 4. \u542f\u52a8haproxy\n    $haproxy_bin -f $haproxy_cf\n    if &#091;&#091; $? -eq 0 ]]; then\n        # \u7b49\u5f851\u79d2\u786e\u4fdd\u8fdb\u7a0b\u542f\u52a8\n        sleep 1\n        if &#091;&#091; $(pgrep haproxy 2&gt;\/dev\/null | wc -l) -gt 0 ]]; then\n            log \"haproxy\u542f\u52a8\u6210\u529f\"\n            echo -e \"\\e&#091;1;32mhaproxy\u542f\u52a8\u6210\u529f.\\e&#091;0;m\"\n            return 0\n        else\n            log \"haproxy\u542f\u52a8\u547d\u4ee4\u6267\u884c\u6210\u529f\uff0c\u4f46\u672a\u68c0\u6d4b\u5230\u8fdb\u7a0b\"\n            echo -e \"\\e&#091;1;31mhaproxy\u542f\u52a8\u5931\u8d25\uff1a\u672a\u68c0\u6d4b\u5230\u8fd0\u884c\u8fdb\u7a0b!\\e&#091;0;m\"\n            return 1\n        fi\n    else\n        log \"haproxy\u542f\u52a8\u547d\u4ee4\u6267\u884c\u5931\u8d25\"\n        echo -e \"\\e&#091;1;31mhaproxy\u542f\u52a8\u5931\u8d25\uff1a\u6267\u884c\u547d\u4ee4\u8fd4\u56de\u9519\u8bef!\\e&#091;0;m\"\n        return 1\n    fi\n}\n\n# ======================== \u505c\u6b62haproxy ========================\nstop() {\n    log \"\u5f00\u59cb\u505c\u6b62haproxy\u670d\u52a1\"\n    \n    # \u4f18\u96c5\u505c\u6b62\uff08\u4f18\u5148\u4f7f\u7528PID\u6587\u4ef6\uff09\n    if &#091;&#091; -f $haproxy_pid ]] &amp;&amp; ps -p $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1; then\n        kill $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1\n        sleep 2\n        # \u68c0\u67e5\u662f\u5426\u505c\u6b62\u6210\u529f\uff0c\u672a\u6210\u529f\u5219\u5f3a\u5236\u6740\u6b7b\n        if ps -p $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1; then\n            kill -9 $(cat $haproxy_pid) &gt;\/dev\/null 2&gt;&amp;1\n            log \"\u5f3a\u5236\u505c\u6b62haproxy\uff08PID: $(cat $haproxy_pid)\uff09\"\n        fi\n        rm -f $haproxy_pid\n    # \u65e0PID\u6587\u4ef6\u5219\u67e5\u627e\u8fdb\u7a0b\u5e76\u505c\u6b62\n    elif &#091;&#091; $(pgrep haproxy 2&gt;\/dev\/null | wc -l) -gt 0 ]]; then\n        pgrep haproxy | xargs kill &gt;\/dev\/null 2&gt;&amp;1\n        sleep 2\n        # \u5f3a\u5236\u6740\u6b7b\u5269\u4f59\u8fdb\u7a0b\n        pgrep haproxy | xargs kill -9 &gt;\/dev\/null 2&gt;&amp;1\n        log \"\u5f3a\u5236\u505c\u6b62\u6240\u6709haproxy\u8fdb\u7a0b\"\n    fi\n\n    # \u9a8c\u8bc1\u505c\u6b62\u7ed3\u679c\n    if &#091;&#091; $(pgrep haproxy 2&gt;\/dev\/null | wc -l) -eq 0 ]]; then\n        log \"haproxy\u505c\u6b62\u6210\u529f\"\n        echo -e \"\\e&#091;1;32mhaproxy\u5173\u95ed\u6210\u529f.\\e&#091;0;m\"\n        return 0\n    else\n        log \"haproxy\u505c\u6b62\u5931\u8d25\uff1a\u4ecd\u6709\u8fdb\u7a0b\u8fd0\u884c\"\n        echo -e \"\\e&#091;1;31mhaproxy\u5173\u95ed\u5931\u8d25\uff1a\u4ecd\u6709\u8fdb\u7a0b\u8fd0\u884c!\\e&#091;0;m\"\n        return 1\n    fi\n}\n\n# ======================== \u76d1\u542c\u68c0\u67e5\uff08\u8fdb\u7a0b\u4fdd\u6d3b\uff09 ========================\nlistenXI() {\n    log \"\u68c0\u67e5haproxy\u8fd0\u884c\u72b6\u6001\"\n    \n    if &#091;&#091; $(pgrep haproxy 2&gt;\/dev\/null | wc -l) -eq 0 ]]; then\n        log \"haproxy\u672a\u8fd0\u884c\uff0c\u542f\u52a8haproxy\"\n        start\n    else\n        log \"haproxy\u5df2\u8fd0\u884c\uff08PID: $(pgrep haproxy)\uff09\"\n        echo -e \"\\e&#091;1;32mhaproxy\u5df2\u5728\u8fd0\u884c.\\e&#091;0;m\"\n    fi\n}\n\n# ======================== \u4e3b\u903b\u8f91\u5206\u652f ========================\ncase $1 in\nstart)\n    start\n    ;;\nstop)\n    stop\n    ;;\nrestart)\n    log \"\u5f00\u59cb\u91cd\u542fhaproxy\u670d\u52a1\"\n    stop\n    sleep 1\n    start\n    ;;\nlisten)\n    listenXI\n    ;;\n*)\n    echo \"\u7528\u6cd5: $0 {start|stop|restart|listen}\"\n    log \"\u65e0\u6548\u53c2\u6570: $1\uff0c\u4f7f\u7528\u9ed8\u8ba4\u7528\u6cd5\u63d0\u793a\"\n    exit 1\n    ;;\nesac\n\nexit $?<\/code><\/pre>\n\n\n\n<p>\u5148\u521b\u5efa\u65e5\u5fd7\u6587\u4ef6\uff1a<code>touch \/var\/log\/haproxy_manager.log &amp;&amp; chmod 644 \/var\/log\/haproxy_manager.log<\/code> <\/p>\n\n\n\n<p>\u9a8c\u8bc1 7001 \u7528\u6237 \/ \u7ec4\u5b58\u5728\uff1a<code>id 7001<\/code>\uff08\u4e0d\u5b58\u5728\u5219\u521b\u5efa\uff1a<code>useradd -u 7001 -s \/sbin\/nologin -M yewu<\/code>\uff09 <\/p>\n\n\n\n<p>\u8d4b\u4e88\u811a\u672c\u6267\u884c\u6743\u9650\uff1a<code>chmod +x haproxy_manager.sh<\/code> <\/p>\n\n\n\n<p>\u6d4b\u8bd5\u8fd0\u884c\uff1a<code>.\/haproxy_manager.sh start<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u811a\u672c\u672c\u8d28\u662f\u4e00\u4e2a haproxy \u7684\u542f\u505c\u7ba1\u7406\u811a\u672c\uff0c\u6838\u5fc3\u529f\u80fd\uff1a \u5148\u521b\u5efa\u65e5\u5fd7\u6587\u4ef6\uff1atouch \/var\/log\/haproxy_manager.log &amp;&amp; chmod 644 \/var\/log\/haproxy_manager.log \u9a8c\u8bc1 7001 \u7528\u6237 \/ \u7ec4\u5b58\u5728\uff1aid 7001\uff08\u4e0d\u5b58\u5728\u5219\u521b\u5efa\uff1auseradd -u 7001 -s \/sbin\/nologin -M yewu\uff09 \u8d4b\u4e88\u811a\u672c\u6267\u884c\u6743\u9650\uff1achmod +x haproxy_manager.sh \u6d4b\u8bd5\u8fd0\u884c\uff1a.\/haproxy_manager.sh start<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133"}],"version-history":[{"count":2,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}