smart_deploy_war

  1. install jdk1.8.0_192 to /usr/local/
  2. set the classpath in /etc/profile
  3. ln -s /usr/local/jdk1.8.0_192/bin/java /bin/java
  4. scp apache-tomcat-8.5.35 to the target server (/usr/local/apache-tomcat-8.5.35)
  5. chmod -R 777 /usr/local/apache-tomcat-8.5.35
  6. stop firewalld
1
2
3
4
5
6
7
# 停止并禁用firewalld开机启动
sytemctl disable firewalld
chkconfig iptables off

# 查看防火状态
systemctl status firewalld
service iptables status
  1. /data/docker_volumes/jenkins/.ssh/192.1.114.170_jenkins_id_rsa.pub >>>>>>>>>>>>>>>> user@ip–>authorized_keys

    1
    FYI https://www.cnblogs.com/weifeng1463/p/7878366.html
  2. ~/.ssh/id_rsa.pub >>>>>>>>>>>>>>>> user@ip–>authorized_keys

  3. target-server /etc/ssh/ssh_config 中的 StrictHostKeyChecking ask 改成 StrictHostKeyChecking no