Jenkins安裝 CentOS 7.2
安裝過程直接參考官網, 預設安裝穩定版 2.32.2-1.1。
需要安裝java
yum -y install java-1.8.0-openjdk* --skip-broken
開機啟動
systemctl enable jenkins.service
啟動
systemctl start jenkins.service
建議修改預設工作目錄,避免目錄許可權導致的問題
vi /etc/sysconfig/jenkins
JENKINS_HOME="/data/jenkins"
Jenkins--Run shell command in jenkins as root user?
You need to modify the permission for jenkins
user so that you can run the shell commands. You can install the jenkins as as service (download the rpm package), You might need to change the ports because by default it runs http on 8080 and AJP on 8009 port. Following process is for CentOS
Open up the this script (using VIM or other editor):
vim /etc/sysconfig/jenkins
Find this $JENKINS_USER and change to “root”:
$JENKINS_USER="root"
Then change the ownership of Jenkins home, webroot and logs:
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
- Restart Jenkins and check the user has been changed:
service jenkins restart
ps -ef | grep jenkins
Now you should be able to run the Jenkins jobs as the root user and all the shell command will be executed as root
.
相關文章
- CentOS 7.6 安裝 Elasticsearch 7.2CentOSElasticsearch
- CentOS 7 安裝 PHP 7.2CentOSPHP
- Centos 安裝 JenkinsCentOSJenkins
- Jenkins CentOS 安裝JenkinsCentOS
- CentOS7.2 安裝 MongoDB 3.4CentOSMongoDB
- MySQL xtrabackup for centos7.2安裝MySqlCentOS
- Centos7.2中安裝pipCentOS
- Centos系統安裝JenkinsCentOSJenkins
- CentOS 下編譯安裝 PHP7.2CentOS編譯PHP
- centos7.2 mysql5.7安裝教程CentOSMySql
- centos 7.2 64位 docker安裝lamp環境CentOSDockerLAMP
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- centos7.2原始碼安裝Apache2.4CentOS原始碼Apache
- Centos7.6下安裝配置JenkinsCentOSJenkins
- CentOS 下編譯安裝 PHP7.2(apache 版)CentOS編譯PHPApache
- CentOS 下編譯安裝 PHP7.2(nginx 版)CentOS編譯PHPNginx
- elasticsearch7.2(CentOS7.6 + Windows10)安裝ElasticsearchCentOSWindows
- CentOS7.2下安裝配置Node.js和YarnCentOSNode.jsYarn
- Centos7安裝jenkins+docker部署tomcatCentOSJenkinsDockerTomcat
- Centos 下安裝 Android SDK 供 Jenkins 打包使用CentOSAndroidJenkins
- Docker 驗證 Centos7.2 離線安裝 Docker 環境DockerCentOS
- redis7.2 安裝部署Redis
- Mac 安裝 PHP7.2MacPHP
- ubuntu 安裝php7.2UbuntuPHP
- Jenkins安裝Jenkins
- mysql5.7GroupReplication多主模式在Centos7.2上安裝部署MySql模式CentOS
- CentOS 7.2 下編譯安裝PHP7.0.10+MySQL5.7.14+Nginx1.10.1的方法CentOS編譯PHPMySqlNginx
- ubuntu 安裝jenkinsUbuntuJenkins
- yum 安裝 jenkinsJenkins
- docker安裝jenkinsDockerJenkins
- Mac 安裝 JenkinsMacJenkins
- docker 安裝 jenkinsDockerJenkins
- JENKINS安裝配置Jenkins
- CentOS7.2編譯安裝PHP7.2.3之史上最詳細步驟。CentOS編譯PHP
- Centos7下安裝配置最新版本Jenkins(2.452.3)CentOSJenkins
- rr 引導 DSM 7.2 版本安裝
- Jenkins安裝與使用Jenkins
- Jenkins快速上手安裝Jenkins
- Jenkins安裝及配置Jenkins