-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
46 lines (32 loc) · 955 Bytes
/
run.sh
File metadata and controls
46 lines (32 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Debug
./server -p 9006 -l 1 -m 1 -o 1 -a 1
# Proactor LT LT
# ./server -p 9006 -c 1 -m 0 -t 16 -a 0
# Proactor LT ET
# ./server -p 9006 -c 1 -m 1 -t 16 -a 0
# Proactor ET LT
# ./server -p 9006 -c 1 -m 2 -t 16 -a 0
# Proactor ET ET
# ./server -p 9006 -c 1 -m 3 -t 16 -a 0
# Reactor LT ET
# ./server -p 9006 -c 1 -m 1 -t 16 -a 1
# -p,自定义端口号,默认9006
# -l,选择日志写入方式,默认同步写入
# 0,同步写入;1,异步写入
# -m,listenfd和connfd的模式组合,默认使用LT + LT
# 0,表示使用LT + LT
# 1,表示使用LT + ET
# 2,表示使用ET + LT
# 3,表示使用ET + ET
# -o,优雅关闭连接,默认不使用
# 0,不使用
# 1,使用
# -s,数据库连接数量 默认为8
# -t,线程数量 默认为8
# -c,关闭日志,默认打开
# 0,打开日志
# 1,关闭日志
# -a,选择反应堆模型,默认Proactor
# 0,Proactor模型
# 1,Reactor模型