卸载

前提条件

操作步骤

  1. 使用SSH远程登录工具,进入操作系统命令行界面
  2. 从如下目录拷贝需要保留的扫描报告,其中“/opt”为工具安装目录,请根据实际情况替换。

    • Web模式:/opt/DevKit/workspace/user/tools/report/(user代表用户名,tools代表工具名,例如“/opt/DevKit/workspace/devadmin/porting/report”)
    • CLI模式:“/opt/DevKit/tools/report”

  3. 执行如下命令卸载鲲鹏DevKit“/opt”为工具安装目录,请根据实际情况替换)。

    1
    bash /opt/DevKit/tools/uninstall.sh
    

    回显信息如下:

     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
    You will remove devkit from your operating system, do you want to continue? [y/N]: y
      get devkit config
      The system uses yum to manage packages.
      Delete sudo tools
      Delete sudo tools success
      Delete /opt/DevKit/logs/sys_perf file success
      Delete /opt/DevKit/logs/components_log file success
      Delete /opt/DevKit/tools/python_venv_aituner file success
      File /opt/DevKit/config/agent_space/aituner not exists, continue
      Delete tuner install path
      Delete devkit install path success
    
    Starting uninstalling DevKit for Java
    
    
    Stopping Service DevKit for Java if it's running.
    
    unregister Service DevKit for Java.
    
    Removed /etc/systemd/system/multi-user.target.wants/java_perf.service.
    WARN: none file under DevKit Home /opt/DevKit/devkitplugins is found for
    
      DevKit for Java
    start removing files under DevKit for Java's home folder
    start removing java_perf.service files under /home/root/java_perf
    
    The uninstallation is completed.
    
    Thanks for using DevKit for Java during these times!
    Hope see you again!
    
      delete web ssl service certificates success
    no crontab for devkit
    devkit:x:1000:1000::/home/devkit:/sbin/nologin
      Execute uninstall success.
    
    • 当用户执行卸载命令时,如果有正在运行的任务,工具会给出提示“A task is running. Are you sure you want to uninstall DevKit?(y/n)”。若用户仍选择卸载,当前运行的任务会直接中断。
    • 卸载操作会完全清除工具安装痕迹。