1 2 | cd mxVision/bin ls -l uninstall.sh |
若脚本没有可执行权限,请执行如下命令,给予“uninstall.sh”脚本可执行权限。
1 | chmod u+x uninstall.sh |
1 2 | ./uninstall.sh ./Ascend-mindxsdk-mxvision_{version}_linux-{arch}.run --uninstall |
使用“uninstall.sh”脚本进行卸载操作仅适用于正常安装途径,如需解决安装异常等情况,请通过“--uninstall”方式进行卸载。
1 2 | [WARN ][Uninst ] StreamServer is still running. Uninstallation aborted. [INFO ][Uninst ] Uninstall MindX SDK failed. |
此时应该使用以下命令检查当前Vision SDK下的服务的运行情况。并逐个检查进程的运行情况。若相关进程因业务原因不可停止,应考虑停止卸载过程。
1 2 3 | pgrep mxStreammanager | xargs ps -o cmd=-p | grep $(pwd) pgrep mxmfCommander | xargs ps -o cmd=-p | grep $(pwd) ps -ef | grep "python3 streamserverSourceCode/main.py" |
1 | [INFO ][Uninst ]No service is running. Uninstallation going. |
卸载过程可能在部分文件夹中产生如下提示。
1 | rm: cannot remove 'config': Directory not empty |
此类提示是由于保留配置文件而产生的,可忽略相关提示。