From 51879fef419f067cdaaf0d43a863e185b96d7f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=E8=A1=8C=E7=94=B5?= <376162295@qq.com> Date: Thu, 16 Jun 2022 06:14:21 +0000 Subject: [PATCH] =?UTF-8?q?add=20lepus=5Fconsole=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=BB=98=E8=AE=A48080=E7=AB=AF=E5=8F=A3=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...7\243\347\232\204\346\226\271\346\263\225" | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 "lepus_console \344\277\256\346\224\271\351\273\230\350\256\2448080\347\253\257\345\217\243\347\232\204\346\226\271\346\263\225" diff --git "a/lepus_console \344\277\256\346\224\271\351\273\230\350\256\2448080\347\253\257\345\217\243\347\232\204\346\226\271\346\263\225" "b/lepus_console \344\277\256\346\224\271\351\273\230\350\256\2448080\347\253\257\345\217\243\347\232\204\346\226\271\346\263\225" new file mode 100644 index 0000000..b3d2bcf --- /dev/null +++ "b/lepus_console \344\277\256\346\224\271\351\273\230\350\256\2448080\347\253\257\345\217\243\347\232\204\346\226\271\346\263\225" @@ -0,0 +1,36 @@ +工具:使用UltraEdit或者其他文件编辑工具,这里以UE为准 + +步骤如下: + +1、用UE打开lepus-console后默认显示十六进制编码,这个时候按ctrl+H,转换为文本视图 + +2、按ctrl+f,输入8080查找关键字 + +3、找到以下2处8080后,按ctrl+H,切换到十六进制的视图进行修改(PS,文本视图直接修改后保存会报错) + +文本视图: html.jpeg.json.wasm.webp1562578125:***@:8080::/96:http:path +十六进制视图:006cfe50h: 32 35 3A 2A 2A 2A 40 3A 38 30 38 30 3A 3A 2F ; 25:***@:8080::/ +修改后,以8880为例(这里使用的是ascii码,0是30,8是38) +十六进制视图:006cfe50h: 32 35 3A 2A 2A 2A 40 3A 38 38 38 30 3A 3A 2F ; 25:***@:8880::/ + +文本视图: variable PORT is undefined. Using port :8080 +十六进制视图:006f6cf0h: 20 55 73 69 6E 67 20 70 6F 72 74 20 3A 38 30 38 ; Using port :808 + 006f6d00h: 30 20 62 79 20 64 65 66 61 75 6C 74 66 61 69 6C ; 0 by defaultfail +修改后 +十六进制视图:006f6cf0h: 20 55 73 69 6E 67 20 70 6F 72 74 20 3A 38 38 38 ; Using port :888 + 006f6d00h: 30 20 62 79 20 64 65 66 61 75 6C 74 66 61 69 6C ; 0 by defaultfail + +4、最后在十六进制视图里,ctrl+s保存修改的结果 + +5、重新执行./lepus_console,启动日志如下: +[GIN-debug] GET /api/v1/event --> lepus-go/src/controller/event.List (3 handlers) +[GIN-debug] GET /api/v1/event/filterItems --> lepus-go/src/controller/event.FilterItems (3 handlers) +[GIN-debug] GET /api/v1/event/charts --> lepus-go/src/controller/event.Charts (3 handlers) +[GIN-debug] GET /api/v1/event/chartsFull --> lepus-go/src/controller/event.ChartsFull (3 handlers) +[GIN-debug] GET /api/v1/event/type/list --> lepus-go/src/controller/event.TypeList (3 handlers) +[GIN-debug] GET /api/v1/event/group/list --> lepus-go/src/controller/event.GroupList (3 handlers) +[GIN-debug] GET /api/v1/event/entity/list --> lepus-go/src/controller/event.EntityList (3 handlers) +[GIN-debug] GET /api/v1/event/key/list --> lepus-go/src/controller/event.KeyList (3 handlers) +[GIN-debug] Listening and serving HTTP on :8880 + +可以看到端口已经修改为8880 -- Gitee