---
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/doc/1d8b75a8-a5c4-4f95-8168-075c231a0d73"
publicId: "1d8b75a8-a5c4-4f95-8168-075c231a0d73"
---

# 天锐绿盾插件不生效问题定位

## 

[天锐绿盾文档（含测试脚本）](https://www.e-cology.com.cn/sp/doc/docShare/1271598305778802689?tenantKey=t7akvdnf84)

## linux系统检测方式

1. 通过顶部的文档链接获取检测脚本

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1271598705310203915&type=imgs)

 2. 获取E10服务的线程ID

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1271593018762338316&type=imgs)

3. 执行检测脚本

```
chmod 777 tipray_check.sh
# pid需要更换为实际的线程ID
./tipray_check.sh pid
```

常见的执行结果 (可执行文件未安装成功)：

```
[root@e-cology10qas tmp]# ./tipray_check.sh 12722
========== Target Java Process ==========
pid=12722
java.exe=/home/ecology/jdk/bin/java
detected.jdk.home=/home/ecology/jdk
java.home.from.target=/home/ecology/jdk/jre
jcmd=/home/ecology/jdk/bin/jcmd
catalina.base=/home/ecology/e10-server0/E10
catalina.home=/home/ecology/e10-server0/E10
target.LD_LIBRARY_PATH=<empty>
=========================================
========== TiprayAPI Jar Detection ==========
jar.selected=/home/ecology/e10-server0/E10/webapps/ROOT/WEB-INF/lib/TiprayAPI-2023.01.05.jar
jar.dir=/home/ecology/e10-server0/E10/webapps/ROOT/WEB-INF/lib
jar.candidates:
  /home/ecology/e10-server0/E10/webapps/ROOT/WEB-INF/lib/TiprayAPI-2023.01.05.jar
=============================================
========== Native Library Scan ==========
java.library.path.from.target=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
scan.results:
  /usr/java/packages/lib/amd64/libTiprayAPI.so => NOT_FOUND
  /usr/lib64/libTiprayAPI.so => NOT_FOUND
  /lib64/libTiprayAPI.so => NOT_FOUND
  /lib/libTiprayAPI.so => NOT_FOUND
  /usr/lib/libTiprayAPI.so => NOT_FOUND
[WARN] libTiprayAPI.so was not found in the target process java.library.path.
[WARN] The test is expected to fail with UnsatisfiedLinkError unless another loader path resolves it.
=========================================
========== TiprayAPI DllInit Test ==========
java.version=1.8.0_201
java.home=/home/ecology/jdk/jre
java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
LD_LIBRARY_PATH=null
============================================
Enter loadLibrary...
[FINAL_RESULT] iRe=null
[EXCEPTION_CLASS] java.lang.UnsatisfiedLinkError
[EXCEPTION_MESSAGE] no TiprayAPI in java.library.path
[EXCEPTION_STACKTRACE_BEGIN]
java.lang.UnsatisfiedLinkError: no TiprayAPI in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at com.TiprayAPI.cpp.TiprayAPI.<clinit>(TiprayAPI.java:9)
        at TiprayDllInitTest.main(TiprayDllInitTest.java:16)
[EXCEPTION_STACKTRACE_END]
[PROCESS_EXIT_CODE] 1
[root@e-cology10qas tmp]#
```

## windows系统检测方式

1. 下载windows脚本压缩包

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1274169397750095874&type=imgs)

2. 管理员权限打开powershell,进入解压后的文件夹执行命令
  
  ```
  
  powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\build_tipray_gui_exe.ps1
  ```
3. 选中E10程序

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1274169977683066892&type=imgs)

4. 点击run check 查看执行结果

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1274170102176636938&type=imgs)

5. 返回iRe=0即表示测试成功

![image.png](https://weapp.eteams.cn/api/file/preview?fileId=1274194802558722058&type=imgs)
