Skip to content

Commit

Permalink
添加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Oct 23, 2021
1 parent 869da7b commit 94a9bd8
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- 支持Linux和Windows下运行
- 可以对接Mysql\Redis\MsSql\Oracle数据库
- 自带Http\WebSocket\Socket\Mqtt支持
- 可以添加ssl证书(ASP模式)
- 可以添加Ssl证书
- 可以对接[ColorMirai](https://github.com/Coloryr/ColorMirai) QQ机器人
- 占用内存极少
- 可以配置端口反向代理和域名反向代理
Expand Down
Binary file added doc/pic/code1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/pic/wrk1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/pic/wrk2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/pic/wrk3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 71 additions & 5 deletions doc/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,83 @@
(宿主系统:Windows Server 2019)
- .Net版本:6.0.100-rc.1
-------------------
## [wrk](https://github.com/wg/wrk)
### [wrk](https://github.com/wg/wrk)
![结果](./pic/wrk.png)
## [postjson](http://coolaf.com/)
### [postjson](http://coolaf.com/)
![结果](./pic/postjson.png)
## [JMeter](https://jmeter.apache.org/)
### [JMeter](https://jmeter.apache.org/)
![配置](./pic/jmeter1.png)
![结果](./pic/jmeter2.png)
## [webbench](https://github.com/EZLippi/WebBench)
### [webbench](https://github.com/EZLippi/WebBench)
![结果](./pic/webbench.png)
## [siege](https://github.com/JoeDog/siege)
### [siege](https://github.com/JoeDog/siege)
```
siege -c 255 -r 10 http://localhost:35555/
```
![结果](./pic/siege.png)

## 反向代理测试

### 被反代部分
使用go编写一个简单的服务器
```go
package main

import (
"fmt"
"net/http"
)

func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "你好,你的请求是 %s\n", r.URL.Path)
})

http.ListenAndServe(":8000", nil)
}
```

简单测试
![结果](./pic/wrk3.png)

-------------------
### 服务器配置文件
```
"Rotes": {
"turn": {
"Url": "http://127.0.0.1:8000/",
"Heads": {}
}
},
"RoteEnable": true,
"Ssl": false,
"Ssls": {
"default": {
"SslLocal": "./test.sfx",
"SslPassword": "123456"
}
},
"UrlRotes": {
"www.test.com": {
"Url": "http://localhost:8000/",
"Heads": {}
}
},
"NoInput": false,
"Http": [
{
"IP": "+",
"Port": 81
}
],
```

`www.test.com`会指向`127.0.0.1`

### 端口转发测试

![结果](./pic/wrk1.png)

### 域名映射测试

![结果](./pic/wrk2.png)

0 comments on commit 94a9bd8

Please sign in to comment.