在Linux中安装jenkins

下载jenkins
mkdir -p jenkins/jenkins_home
mkdir -p jenkins/jenkins_node
cd jenkins
 
4)启动jenkins
start_jenkins.sh
#!/bin/bash
JENKINS_ROOT=/home/AAA/jenkins
export JENKINS_HOME=$JENKINS_ROOT/jenkins_home
java -jar $JENKINS_ROOT/jenkins.war --httpPort=8000
 
chmod a+x start_jenkins.sh
 
nohup ./start_jenkins.sh > jenkins.log 2>&1 &
 
5)访问jenkins:
在浏览器中输入http://ip:8000
 

你可能感兴趣的:(Jenkins)