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 7.2 安裝 MySQL 5.7.13CentOSMySql
- Centos7.2安裝NginxCentOSNginx
- CentOS7.2 安裝 MongoDB 3.4CentOSMongoDB
- MySQL xtrabackup for centos7.2安裝MySqlCentOS
- Centos7.2中安裝pipCentOS
- Jenkins CentOS 安裝JenkinsCentOS
- Centos 安裝 JenkinsCentOSJenkins
- CentOS 7.2 PowerShell下安裝Azure ModuleCentOS
- centos下安裝jenkinsCentOSJenkins
- CentOS 下編譯安裝 PHP7.2CentOS編譯PHP
- centos7.2 mysql5.7安裝教程CentOSMySql
- Centos系統安裝JenkinsCentOSJenkins
- centos 7.2 64位 docker安裝lamp環境CentOSDockerLAMP
- CentOS 7.2靜默安裝Oracle11gCentOSOracle
- centos7.2原始碼安裝Apache2.4CentOS原始碼Apache
- CentOS 下編譯安裝 PHP7.2(nginx 版)CentOS編譯PHPNginx
- CentOS 下編譯安裝 PHP7.2(apache 版)CentOS編譯PHPApache
- elasticsearch7.2(CentOS7.6 + Windows10)安裝ElasticsearchCentOSWindows
- centos7.2 influxdb安裝與簡單使用CentOSUX
- Centos7.6下安裝配置JenkinsCentOSJenkins
- CentOS7.2下安裝配置Node.js和YarnCentOSNode.jsYarn
- Docker 驗證 Centos7.2 離線安裝 Docker 環境DockerCentOS
- Mac 安裝 PHP7.2MacPHP
- ubuntu 安裝php7.2UbuntuPHP
- redis7.2 安裝部署Redis
- Centos 下安裝 Android SDK 供 Jenkins 打包使用CentOSAndroidJenkins
- Centos7安裝jenkins+docker部署tomcatCentOSJenkinsDockerTomcat
- CentOS6.x 安裝Bitnami Jenkins 2.xCentOSJenkins
- centos普通許可權使用者安裝jenkinsCentOSJenkins
- 在centos中安裝jenkins master測試環境CentOSJenkinsAST
- mysql5.7GroupReplication多主模式在Centos7.2上安裝部署MySql模式CentOS
- Jenkins安裝Jenkins
- CentOS7.2編譯安裝PHP7.2.3之史上最詳細步驟。CentOS編譯PHP
- 華為雲伺服器centos7.2下Percona-Server-5.6的安裝伺服器CentOSServer
- Centos7.2搭建LampCentOSLAMP
- rr 引導 DSM 7.2 版本安裝