Skip to content

Commit

Permalink
updata
Browse files Browse the repository at this point in the history
  • Loading branch information
forthespada committed Aug 17, 2020
1 parent 4acbe46 commit 1a43795
Show file tree
Hide file tree
Showing 29 changed files with 665 additions and 340 deletions.
Binary file removed .vs/MyPoorWebServer/v16/.suo
Binary file not shown.
Binary file removed .vs/MyPoorWebServer/v16/Browse.VC.db
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
all: myhttp

myhttp: httpd.c
gcc -W -Wall -o myhttp httpd.c -lpthread

clean:
rm myhttp
51 changes: 0 additions & 51 deletions MyPoorWebServer.sln

This file was deleted.

85 changes: 0 additions & 85 deletions MyPoorWebServer.vcxproj

This file was deleted.

47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#### 1、编译准备工作

post.html 以及 post.cgi需要一定的权限才可以执行。

1、cd httpdocs

2、sudo chmod 600 test.html

sudo chmod 600 post.html

sudo chmod +X post.cgi

![](./image/1.png)



3、cd ../

4、make

5、 ./myhttp



#### 2、资源

默认端口号是6379,默认是test.html界面,同一路径下还有 post.html资源

#### 3、整体过程图

![](./image/2.png)

![](./image/3.png)



![](./image/4.png)

![](./image/5.png)

#### 4、参考

非常感谢

https://www.cnblogs.com/qiyeboy/p/6296387.html

https://www.jianshu.com/p/18cfd6019296

0 comments on commit 1a43795

Please sign in to comment.