1 jenkins的war包下载地址:
Download and deploy
2 xftp 等方式上传到服务器
#安装jdk
tar zxvf jdk-11.0.8_linux-x64_bin.tar.gz
mv jdk-11.0.8/ /usr/local/jdk
vim /etc/profile
export JAVA_HOME=/usr/local/jdk
export PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
source /etc/profile
java -version
java version "11.0.8" 2020-07-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.8+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
#修改jenkins工作目录
vim /etc/profile
export JENKINS_HOME=/data/.jenkins
source /etc/profile
java -jar /data/software/jenkins.war --httpPort=8009 > /data/logs/jenkins.log 2>&1 &
#通过ip+端口访问
#验证安装,从日志文件复制下哦
#安装Publish over SSH
3基本配置
#配置邮箱
#需要的工具,更加项目需求安装配置