之前使用rpm包的安装方式安装过一次jenkins,想要卸载了,再重新安装,发现重新安装后启动不报错,但始终起不来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
至此,jenkins
卸载完毕
再按centos7安装jenkins安装