centos7 彻底卸载jenkins

之前使用rpm包的安装方式安装过一次jenkins,想要卸载了,再重新安装,发现重新安装后启动不报错,但始终起不来jenkins服务

centos7 彻底卸载jenkins
经过尝试发现必须彻底删除jenkins文件才行
具体步骤如下

systemctl stop jenkins.service
rpm -e jenkins
rpm -qa | grep jenkins      # 查看是否还有jenkins依赖,有就删除
rm -rf /etc/sysconfig/jenkins.rpmsave
rm -rf /var/cache/jenkins/
rm -rf /var/lib/jenkins/
rm -rf /var/log/jenkins
rm -rf /usr/lib/jenkins

centos7 彻底卸载jenkins

至此,jenkins卸载完毕

再按centos7安装jenkins安装
centos7 彻底卸载jenkins

相关推荐