We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkins太重、依赖的东西太多,以至于不太适合用docker来构建所以直接用war运行
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum -y update
yum install -y jenkins
vim /etc/init.d/jenkins
candidates=" /etc/alternatives/java /usr/lib/jvm/java-1.8.0/bin/java /usr/lib/jvm/jre-1.8.0/bin/java /usr/lib/jvm/java-1.7.0/bin/java /usr/lib/jvm/jre-1.7.0/bin/java /usr/bin/java /usr/local/src/java/jdk1.8.0_171/bin/java "
/etc/init.d/jenkins start 或 systemctl start jenkins.service
/usr/lib/jenkins/jenkins.war
/etc/sysconfig/jenkins
/var/lib/jenkins/
/var/log/jenkins/
真正的服务文件
/etc/init.d/jenkins
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Centos7 Jenkins安装
Jenkins太重、依赖的东西太多,以至于不太适合用docker来构建所以直接用war运行
1.安装rpm源
2.更新yum
3.运行jenkins
4.完成以上几步或许有可能安装运行成功,但很不巧我运行不成功.解决方案
5.找到candidates在后面添加你自己的jdk路径
6.运行jenkins
PS
war包
配置文件 (端口号、jenkins_home目录等)
默认的JENKINS_HOME目录
Jenkins日志文件地址
真正的服务文件
The text was updated successfully, but these errors were encountered: