goautotest

jenkins在linux下使用时使用的jenkins默认创建的用户

linux的权限比较严格,使用jenkins用户,会有很多的限止。这里的解决方法是修改jenkins运行时使用的用户。

修改为root或者其它权限稍大的用户,不一定修改为root.这里只做演示。

JENKINS_HOME="/var/lib/jenkins"
## Type: string
## Default: ""
## ServiceRestart: jenkins
#
# Java executable to run Jenkins
# When left empty, we\'ll try to find the suitable Java.
#
JENKINS_JAVA_CMD=""

## 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="root"

修改完成后,保存并重启服务!

这样在执行相关命令时,就顺畅了好多。

分类:

技术点:

相关文章:

  • 2021-04-28
  • 2021-11-24
  • 2021-08-15
  • 2021-04-21
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-11-15
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-17
  • 2021-08-20
相关资源
相似解决方案