• 请不要在回答技术问题时复制粘贴 AI 生成的内容
FingerLiu
V2EX  ›  程序员

那 bash 写了个 webserver

  •  
  •   FingerLiu · Oct 17, 2019 · 3187 views
    This topic created in 2575 days ago, the information mentioned may be changed or developed.

    有个增加机器后自动注册到 ansible hosts 的需求,闲来无事拿 bash 写了个 webserver 搞了下。

    https://github.com/FingerLiu/auth-enabled-bash-server

    9 replies  •  2019-10-18 15:52:38 +08:00
    lzvezr
    lzvezr
    Oct 17, 2019 via iPhone
    1
    感觉没什么意思,bash 无非就是调用各种工具,你调用了 netcat,我调用 python,都可以写 server,只不过 python 更简单
    imn1
    imn1
    Oct 17, 2019
    2
    先问一下会不会被电信停机
    FingerLiu
    FingerLiu
    OP
    Oct 18, 2019
    3
    @imn1 没 get 到跟电信有啥关系
    FingerLiu
    FingerLiu
    OP
    Oct 18, 2019
    4
    @lzvezr 那你可以写一个 Python 的对比一下呀 来
    imn1
    imn1
    Oct 18, 2019
    5
    imn1
    imn1
    Oct 18, 2019
    6
    回复娱乐一下 ;)
    YakuMioto
    YakuMioto
    Oct 18, 2019
    7
    1L 说的没毛病
    lzvezr
    lzvezr
    Oct 18, 2019 via iPhone
    8
    @FingerLiu 一行就够了
    `python -m http.server 8080`
    FingerLiu
    FingerLiu
    OP
    Oct 18, 2019
    9
    @lzvezr 看下需求谢谢。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:41 · PVG 12:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.