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