# 編輯配置文件 vim /etc/sysconfig/jenkins # 修改$JENKINS_USER $JENKINS_USER="root"
chown -R root:root /var/lib/jenkins chown -R root:root /var/cache/jenkins chown -R root:root /var/log/jenkins
systemctl restart jenkins