Jenkin
Environmental configuration
1. Jenkin
step 1 JDK
安装yum -y list java-* -openjdk-devel
yum install -y ……
查看是否安装成功java -version
step 2 jekin
安装sudo wget -O /etc/yum.repos.d/jenkins.repo https://……/jenkins.repo
sudo rpm --import https://……/jenkins.io.key
yum install jenkins
修改配置## sudo vi /etc/sysconfig/jenkins
JENKINS_USER="root"
JENKINS_PORT="8080" ## 原值 "8080" 可以不修改##权限
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
遇到的错误##路径
service start error: "Caused by: java.lang.UnsatisfiedLinkError: /tmp/……"
solution:JENKINS_JAVA_OPTIONS add
"-Djava.io.tmpdir=$JENKINS_HOME/tmp" (mkdir $JENKINS_HOME/tmp)
启动服务service jenkins start
遇到的错误##vi /var/log/jenkins/jenkins.log
failed:
Caused by: java.net.BindException: can't bind 0.0.0.0/8081……
Caused by: java.net.BindException: Address already in use……
solution:PORT change to 8088
访问Jenkins,进行初始化设置http://:8088/
首次登录,进入 Jenkins 定制界面,不选择 Install suggested plugins 或 Select plugins to install ,直接关闭跳过下一个界面点击“Start using Jenkins”