# Linux下简单的http server **Repository Path**: cui-lihao/simple-http-server-under-linux ## Basic Information - **Project Name**: Linux下简单的http server - **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-03 - **Last Updated**: 2022-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 操作步骤: dmidecode > index.html gcc client.c -o client.out gcc httped.c -o httped.out -lpthread(pthread 库不是 Linux 系统默认的库,连接时需要使用静态库 libpthread.a,所以在使用pthread_create()创建线程,以及调用 pthread_atfork()函数建立fork处理程序时,需要链接该库。) 服务端运行在39329端口: ![输入图片说明](serverimage.png) 服务端模拟用户请求: 浏览器访问截图: ![浏览器访问截图](imgimage.png)