一行bash命令http server

来源:互联网 发布:部落冲突女王升级数据 编辑:程序博客网 时间:2024/06/05 05:35

while true; do { echo -e ‘HTTP/1.1 200 OK\r\n’; echo hello world; } | nc -l 8080; done

功能稍微健全一点的可以参考这里https://github.com/avleen/bashttpd/

原创粉丝点击