From 65d8f546125fc406f5cc0acda9817c8c52266622 Mon Sep 17 00:00:00 2001 From: gaojiazhen Date: Mon, 18 Sep 2023 10:10:27 +0000 Subject: [PATCH] =?UTF-8?q?update=20qtfs/README.md.=201=E3=80=81=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=92=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E7=9A=84ip=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E9=87=8D=E5=90=AF=E5=AF=BC=E8=87=B4ip=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=B5=8B=E8=AF=95=202?= =?UTF-8?q?=E3=80=81=E9=98=B2=E7=81=AB=E5=A2=99=E9=98=BB=E6=96=AD=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83=E7=9A=84=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E5=92=8C=E6=B5=8B=E8=AF=95=E7=AB=AF=E9=80=9A=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaojiazhen --- qtfs/README.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/qtfs/README.md b/qtfs/README.md index 97048a6..56456e0 100644 --- a/qtfs/README.md +++ b/qtfs/README.md @@ -88,20 +88,22 @@ qtfs的特性: 1. cd qtfs_server 2. make clean && make -j QTFS_TEST_MODE=1 - 3. insmod qtfs_server.ko qtfs_server_ip=x.x.x.x qtfs_server_port=12345 qtfs_log_level=WARN - 4. 配置白名单,将qtfs/config/qtfs/whitelist文件拷贝至/etc/qtfs/下,请手动配置需要的白名单选项,至少需要配置一个Mount白名单才能启动后续服务。 - 5. nohup ./engine 16 1 192.168.10.10 12121 192.168.10.11 12121 2>&1 & + 3.指定测试服务端的ip,ip a a ip_server(例:192.168.10.10)/port dev network(例:ens32),防止机器重启造成的ip变更问题,方便测试 + 4. insmod qtfs_server.ko qtfs_server_ip=x.x.x.x qtfs_server_port=12345 qtfs_log_level=WARN + 5. 配置白名单,将qtfs/config/qtfs/whitelist文件拷贝至/etc/qtfs/下,请手动配置需要的白名单选项,至少需要配置一个Mount白名单才能启动后续服务。 + 6. nohup ./engine 16 1 192.168.10.10 12121 192.168.10.11 12121 2>&1 & Tips: 该模式暴露网络端口,有可能造成安全隐患,仅能用于功能验证测试,勿用于实际生产环境。 客户端安装: 1. cd qtfs 2. make clean && make -j QTFS_TEST_MODE=1 + 3.指定测试用户端的ip,ip a a ip_client(例:192.168.10.11)/port dev network(例:ens32),防止机器重启造成的ip变更问题,方便测试 3. insmod qtfs.ko qtfs_server_ip=x.x.x.x qtfs_server_port=12345 qtfs_log_level=WARN - 4. cd ../ipc/ - 5. make clean && make && make install - 6. nohup udsproxyd 1 192.168.10.11 12121 192.168.10.10 12121 2>&1 & - Tips: 该模式暴露网络端口,有可能造成安全隐患,仅能用于功能验证测试,勿用于实际生产环境。 + 4. cd ../ipc/ + 5. make clean && make && make install + 6. nohup udsproxyd 1 192.168.10.11 12121 192.168.10.10 12121 2>&1 & + Tips: 该模式暴露网络端口,有可能造成安全隐患,仅能用于功能验证测试,勿用于实际生产环境。 ## 使用说明 @@ -110,6 +112,7 @@ qtfs的特性: mount -t qtfs /home /root/mnt/ 客户端进入"/root/mnt"后便可查看到server端/home目录下的所有文件,以及对其进行相关操作。此操作受到白名单的控制,需要挂载路径在server端白名单的Mount列表,或者在其子目录下,且后续的查看或读写操作都需要开放对应的白名单项才能进行。 +Tips:若完成测试环境的配置后,无法通过服务端访问所挂载的客户端文件,可检查是否由防火墙的阻断导致。 ## 参与贡献 -- Gitee