-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4acbe46
commit 1a43795
Showing
29 changed files
with
665 additions
and
340 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.