<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] > [joewalnes/websocketd](https://github.com/joewalnes/websocketd) ## 概述 它的最大特點,就是后臺腳本不限語言,標準輸入(stdin)就是 WebSocket 的輸入,標準輸出(stdout)就是 WebSocket 的輸出。 ## 示例 ### hello world <details> <summary>counter.sh</summary> ``` #!/bin/bash echo 1 sleep 1 echo 2 sleep 1 echo 3 ``` </details> <br /> <details> <summary>index.hhtml</summary> ``` var ws = new WebSocket('ws://localhost:8080/'); ws.onmessage = function(event) { console.log(event.data); }; ``` </details> <br /> 運行 ``` > websocketd --port=8080 bash ./counter.sh ``` ### 監控服務器 > [github](https://github.com/joewalnes/web-vmstats) ![](https://github.com/joewalnes/web-vmstats/raw/master/screenshot.png) vmstat 指令 ``` $ vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 3 0 43652 2742600 453820 2829164 0 0 1 10 0 0 6 1 93 0 1 0 43652 2742784 453820 2829164 0 0 0 0 3106 5701 11 1 87 0 0 0 43652 2742908 453820 2829164 0 0 0 0 3898 6703 11 2 87 0 1 0 43652 2743672 453820 2829164 0 0 0 32 3844 6708 11 2 87 0 2 0 43652 2743980 453820 2829164 0 0 0 80 4130 7164 11 2 87 0 ``` 運行 run 文件 ``` #!/bin/sh # Download websocketd for your platform from # https://github.com/joewalnes/websocketd/wiki/Download-and-install ./websocketd --port=9231 --staticdir=web /usr/bin/vmstat -n 1 ``` 執行 ``` ./run ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看