File tree Expand file tree Collapse file tree 6 files changed +268
-383
lines changed
run/src/test/resources/demo/kafka Expand file tree Collapse file tree 6 files changed +268
-383
lines changed Original file line number Diff line number Diff line change 44
55![ 示例1] ( ../img/hpptdemo.jpg )
66
7- 1、在集群中任一服务器上新建一个hppt目录,并上传hppt.jar(也可用可执行文件 hppt.exe 或 hppt) 、ss.yml、log4j2.xml文件到此目录下:
7+ 1、在集群中任一服务器上新建一个hppt目录,并上传hppt.jar、ss.yml、log4j2.xml文件到此目录下:
88
99```
1010hppt
11- - hppt.jar (or hppt.exe or hppt_linux_file)
11+ - hppt.jar
1212 - ss.yml
1313 - log4j2.xml
1414```
@@ -30,33 +30,19 @@ clients:
3030(注:实际应用中,为了确保安全,建议把密码设置得更复杂一些)
3131
3232
33- 执行如下命令运行服务端的hppt(3选1)
33+ 执行如下命令运行服务端的hppt
3434
3535jar包运行
3636``` shell
3737cd hppt
3838< jdk21_path> /bin/java -jar hppt.jar ss ss.yml
3939```
4040
41- windows下可执行文件运行
42- ``` shell
43- cd hppt
44- chcp 65001
45- hppt.exe ss ss.yml
46- ```
47-
48- linux下可执行文件运行
49- ``` shell
50- cd hppt
51- ./hppt ss ss.yml
52- # 后台运行用命令 nohup ./hppt ss ss.yml >/dev/null &
53- ```
54-
55- 2、自己笔记本上,新建一个hppt目录,拷贝hppt.jar (or hppt.exe or hppt_linux_file)、sc.yml、log4j2.xml文件到此目录下:
41+ 2、自己笔记本上,新建一个hppt目录,拷贝hppt.jar、sc.yml、log4j2.xml文件到此目录下:
5642
5743```
5844hppt
59- - hppt.jar (or hppt.exe or hppt_linux_file)
45+ - hppt.jar
6046 - sc.yml
6147 - log4j2.xml
6248```
@@ -89,26 +75,13 @@ forwards:
8975
9076```
9177
92- 执行如下命令启动客户端的hppt(3选1)
78+ 执行如下命令启动客户端的hppt
9379
9480jar包运行
9581``` shell
9682cd hppt
9783< jdk21_path> /bin/java -jar hppt.jar sc sc.yml
9884```
9985
100- windows下可执行文件运行
101- ``` shell
102- cd hppt
103- chcp 65001
104- hppt.exe sc sc.yml
105- ```
106-
107- linux下可执行文件运行
108- ``` shell
109- cd hppt
110- ./hppt sc sc.yml
111- # 后台运行用命令 nohup ./hppt ss ss.yml >/dev/null &
112- ```
11386
11487随后,你就可以在公司用linux连接工具访问localhost的10022端口,来登录应用服务器了
Original file line number Diff line number Diff line change 44
55![ 示例1] ( ../img/3.jpg )
66
7- 1、在集群中任一服务器上新建一个hppt目录,并上传hppt.jar(也可用可执行文件 hppt.exe 或 hppt) 、ss.yml、log4j2.xml文件到此目录下:
7+ 1、在集群中任一服务器上新建一个hppt目录,并上传hppt.jar、ss.yml、log4j2.xml文件到此目录下:
88
99```
1010hppt
11- - hppt.jar (or hppt.exe or hppt_linux_file)
11+ - hppt.jar
1212 - ss.yml
1313 - log4j2.xml
1414```
@@ -29,28 +29,14 @@ clients:
2929```
3030(注:实际应用中,为了确保安全,建议把密码设置得更复杂一些)
3131
32- 执行如下命令运行服务端的hppt(3选1)
32+ 执行如下命令运行服务端的hppt
3333
3434jar包运行
3535``` shell
3636cd hppt
3737< jdk21_path> /bin/java -jar hppt.jar ss ss.yml
3838```
3939
40- windows下可执行文件运行
41- ``` shell
42- cd hppt
43- chcp 65001
44- hppt.exe ss ss.yml
45- ```
46-
47- linux下可执行文件运行
48- ``` shell
49- cd hppt
50- ./hppt ss ss.yml
51- # 后台运行用命令 nohup ./hppt ss ss.yml >/dev/null &
52- ```
53-
5440
5541在nginx上增加一段配置指向hppt
5642
@@ -73,7 +59,7 @@ server {
7359
7460随后,访问` http://111.222.33.44:80/aaa/ ` 能看到“not a WebSocket handshake request”字样即证明服务端部署成功。
7561
76- 2、自己笔记本上,新建一个hppt目录,拷贝hppt.jar (or hppt.exe or hppt_linux_file) 、sc.yml、log4j2.xml文件到此目录下:
62+ 2、自己笔记本上,新建一个hppt目录,拷贝hppt.jar、sc.yml、log4j2.xml文件到此目录下:
7763
7864```
7965hppt
@@ -111,26 +97,12 @@ forwards:
11197
11298```
11399
114- 执行如下命令启动客户端的hppt(3选1)
100+ 执行如下命令启动客户端的hppt
115101
116102jar包运行
117103``` shell
118104cd hppt
119105< jdk21_path> /bin/java -jar hppt.jar sc sc.yml
120106```
121107
122- windows下可执行文件运行
123- ``` shell
124- cd hppt
125- chcp 65001
126- hppt.exe sc sc.yml
127- ```
128-
129- linux下可执行文件运行
130- ``` shell
131- cd hppt
132- ./hppt sc sc.yml
133- # 后台运行用命令 nohup ./hppt ss ss.yml >/dev/null &
134- ```
135-
136108随后,你就可以在公司用linux连接工具访问localhost的10022端口,来登录应用服务器了
You can’t perform that action at this time.
0 commit comments