比赛名称: 测试
比赛类型: 内部(受邀或输入密码才能参赛)
比赛状态: 已结束
比赛时间: 开始于 2020-12-05 16:00:00,至 2020-12-05 18:00:00结束。
On Linux, the most easiest way to serve clients from the Internet with a html or binary file is using netcat (nc). Netcat is able to do almost every kind of simple network operation and is very robust.
In order to serve the client with data, an exemplary index.html is needed. Also, a favico.ico would be nice, especially as Mozilla Firefox browser always asks for this file, regardless of whether there is a favico.ico given in the html or not.
Assuming that our index.html and favico.gif are in /home/user1/ and given that the index.html contains text only, we create a file ‘server.sh‘ with following content: