标签:cmd 登录 rpm app 代理 jenkin str connect dns
Jenkins下载地址:https://jenkins.io/download/
考虑各平台兼容性,故选择war包jenkins.war
rpm -ivh jdk-8u161-linux-x64.rpm
安装tomcat8
mkdir-p /setup/ /opt/ /data/jenkins/
wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.zip -P /setup/
cd /setup/
unzip /setup/apache-tomcat-8.5.32.zip -d /opt
mv /opt/apache-tomcat-8.5.32 /opt/tomcat-jenkins
安装jenkins并配置数据路径
wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war -P /setup/
mkdir /opt/tomcat-jenkins/webapps/jenkins/
unzip /setup/jenkins.war -d /opt/tomcat-jenkins/webapps/jenkins
vim /opt/tomcat-jenkins/bin/catalina.sh
......
export JENKINS_HOME="/data/jenkins"
# OS specific support. $var _must_ be set to either true or false.
......
yum或者rpm安装jenkins请修改
/etc/sysconfig/jenkins
启动jenkins
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload
chmod +x /opt/tomcat-jenkins/bin/*.sh
sh /opt/tomcat-jenkins/bin/startup.sh
访问jenkins并初次安装
http://ip:8080/jenkins
/data/jenkins/secrets/initialAdminPassword
密码,粘贴到下面输入框。PS: 服务会提醒
This Jenkins instance uses deprecated protocols: JNLP-connect,JNLP2-connect. It may impact stability of the instance. If newer protocol versions are supported by all system components (agents, CLI and other clients), it is highly recommended to disable the deprecated protocols. Protocol Configuration.
解决办法 : 系统管理--全局安全配置--代理--代理协议-取消所有< 弃用 >选项--保存
反向代理设置错误
解决办法 : 选择放弃即可
解决办法:
<yum或者rpm安装> /etc/rc.d/init.d/jenkins
在'PARAMS' 后面内增加 '-Dhudson.DNSMultiCast.disabled=true'
####################
<tomcat启动war包> tomcat/bin/catalina.sh
新增 '-Dhudson.DNSMultiCast.disabled=true'
标签:cmd 登录 rpm app 代理 jenkin str connect dns
原文地址:https://www.cnblogs.com/taoyuxuan/p/11612459.html