Open ChoiChangYong opened 3 years ago
$ sudo vi /etc/sysconfig/jenkins
...
## Type: string
## Default: "jenkins"
## ServiceRestart: jenkins
#
# Unix user account that runs the Jenkins daemon
# Be careful when you change this, as you need to update
# permissions of $JENKINS_HOME and /var/log/jenkins.
#
# JENKINS_USER="jenkins"
JENKINS_USER="root"
...
$ sudo chown -R root:root /var/lib/jenkins/
$ sudo chown -R root:root /var/cache/jenkins/
$ sudo chown -R root:root /var/log/jenkins/
$ sudo systemctl restart jenkins
$ sudo vi /etc/sysconfig/jenkins
...
## Path: Development/Jenkins
## Description: Jenkins Automation Server
## Type: string
## Default: "/var/lib/jenkins"
## ServiceRestart: jenkins
#
# Directory where Jenkins store its configuration and working
# files (checkouts, build reports, artifacts, ...).
#
# JENKINS_HOME="/var/lib/jenkins"
JENKINS_HOME="/home/ec2-user/jenkins"
...
$ sudo systemctl restart jenkins