参考:https://www.cnblogs.com/stulzq/p/9291237.html
https://www.haowenbo.com/articles/2019/07/24/1563964257491.html
1、在安装jenkins的时候一直失败。报错内容是
stat: cannot stat ‘/var/cache/jenkins’: No such file or directory stat: cannot stat ‘/var/log/jenkins’: No such file or directory stat: cannot stat ‘/var/lib/jenkins’: No such file or directory error: %pre(jenkins-2.150.1-1.1.noarch) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package jenkins-2.150.1-1.1.noarch Verifying : jenkins-2.150.1-1.1.noarch 1/1 Failed: jenkins.noarch 0:2.150.1-1.1
因为之前已经有了
/etc/sysconfig/jenkins
删掉,重新安装即可