Jenkins + Git 项目中 主机配置
我这里用的是 tomcat ,需配置 JDK 环境,然后给 Jenkins 发送密钥对。
[ ~]# tar xf apache-tomcat-8.5.16.tar.gz
[ ~]# tar xf jdk-8u191-linux-x64.tar.gz
[ ~]# mv jdk1.8.0_191/ /usr/local/java
[ ~]# mv apache-tomcat-8.5.16 /usr/local/tomcat
[ ~]# vim /etc/profile
export JAVA_HOME=/usr/local/java/
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar[ ~]# source /etc/profile
[ ~]# java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)[ ~]# ssh-keygen
[ ~]# ssh-copy-id 192.168.200.117
相关推荐
达观数据 2020-11-11
汪康 2020-10-30
ppppfly 2020-10-24
synshitou 2020-10-21
programmeryu 2020-09-24
Topbeyond 2020-08-21
lrcoop 2020-08-18
young依然 2020-08-17
oden 2020-08-16
lrcoop 2020-08-15
yserver 2020-08-15
王永迪 2020-08-15
pursuemylife 2020-08-14
pandaphinex 2020-08-09
leonranri 2020-07-26
CloasGao 2020-07-21
zccheu 2020-07-18