Created
August 18, 2021 03:58
-
-
Save Haoxiqiang/0ff958ba9a049a3ece01f02eaf06a66a to your computer and use it in GitHub Desktop.
jenkins rus as root user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. change jenkins's config | |
vi /etc/sysconfig/jenkins | |
edit: | |
$JENKINS_USER="root" | |
2. change all files permisions | |
chown -R root:root /var/lib/jenkins | |
chown -R root:root /var/cache/jenkins | |
chown -R root:root /var/log/jenkins | |
3. restart jenkins | |
systemctl restart jenkins | |
4. check jenkins running status | |
ps -ef | grep jenkins | |
you will get the jenkins run as root | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment