# anolis_os_first_assignment **Repository Path**: minzui/anolis_os_first_assignment ## Basic Information - **Project Name**: anolis_os_first_assignment - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-07 - **Last Updated**: 2022-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 最终效果 ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307225512466-848403913.png) ### 多线程处理http request [看这里](http://c.biancheng.net/view/8607.html) ### http 的请求报文与响应报文 [看这里](https://baijiahao.baidu.com/s?id=1662842929861521073&wfr=spider&for=pc) 对于响应头部,按照题目要求,只需要填入content-type就好了 ## 关于在anolis os上需要设置监听ip为0.0.0.0的问题 `server_addr.sin_addr.s_addr = htonl(INADDR_ANY);// 监听任意网卡的报文数据,0.0.0.0表示来自任意网卡的包都要发给server` [解释是](https://www.cnblogs.com/pengdonglin137/p/3309505.html) ## listen与accept的区别 [区别](http://c.biancheng.net/cpp/html/3036.html) ## 对于用fork加上exec执行dmidecode - 为什么需要fork子进程来执行deidecode? ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307154333669-36376066.png) - 为什么需要关闭父进程的管道end of write ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307154505669-1543097071.png) - 为什么 fork 与 exec不结合成一个命令 ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307154722519-1755913848.png) [xv6手册](https://th0ar.gitbooks.io/xv6-chinese/content/content/chapter0.html) ## 关于pipe [看这里](https://www.cnblogs.com/whiteHome/p/4863516.html) ## 连接服务器遇到了问题 解决方案如图 ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307224002585-145399737.png) ## 安装vim问题 修改这两个文件下的enabled参数 ![](https://img2022.cnblogs.com/blog/1743182/202203/1743182-20220307224213113-261270640.png)