跳转至

卸载文档

此操作不可逆, 请确认已经备份好数据库

  • 确保已经停止 jms koko guacamole 进程
  • 确定数据已经处理完毕
  • 请自行替换文中相关路径为你的实际环境路径

1. 正常部署卸载

rm -rf /opt/jumpserver
rm -rf /opt/koko /opt/koko
rm -rf /opt/docker-guacamole
rm -rf /opt/lina
rm -rf /opt/luna
rm -rf /opt/py3
rm -rf /config
rm -rf /etc/nginx/conf.d/jumpserver.conf

2. 脚本部署卸载

cd /opt/setuptools
./jmsctl.sh uninstall

3. docker 组件部署卸载

rm -rf /opt/jumpserver
rm -rf /opt/py3
rm -rf /etc/nginx/conf.d/jumpserver.conf
docker rm jms_koko
docker rm jms_guacamole
docker rmi jumpserver/jms_koko:v2.1.1
docker rmi jumpserver/jms_guacamole:v2.1.1
rm -rf /usr/lib/systemd/system/jms.service
rm -rf /opt/start_jms.sh
rm -rf /opt/stop_jms.sh

4. docker-compose 部署卸载

cd /opt/Dockerfile
docker-compose down
docker volume prune
docker rmi jumpserver/jms_core:2.1.0
docker rmi jumpserver/jms_koko:v2.1.1
docker rmi jumpserver/jms_guacamole:v2.1.1
docker rmi jumpserver/jms_nginx:2.1.0
docker rmi jumpserver/jms_redis:2.1.0
docker rmi jumpserver/jms_mysql:2.1.0
rm -rf /opt/Dockerfile
  • 删除数据库
mysql -uroot
drop database jumpserver;
exit
  • 清空 redis
redis-cli -h 127.0.0.1
flushall
exit