while true; do { echo -e ‘HTTP/1.1 200 OK\r\n’; echo hello world; } | nc -l 8080; done
功能稍微健全一点的可以参考这里https://github.com/avleen/bashttpd/
原文链接:https://www.f2er.com/bash/389355.htmlwhile true; do { echo -e ‘HTTP/1.1 200 OK\r\n’; echo hello world; } | nc -l 8080; done
功能稍微健全一点的可以参考这里https://github.com/avleen/bashttpd/
原文链接:https://www.f2er.com/bash/389355.html