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

那 bash 写了个 webserver

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