1.jenkins下载 war包 端口是8080
https://www.jenkins.io/zh/download/ jdk8 对应2.346
2.Jenkins初始化界面一直显示Please wait while Jenkins is getting ready to work …
https://blog.csdn.net/bigestt/article/details/125260988
3.jenkins使用
https://blog.csdn.net/qq_32352777/article/details/109267847
4.jekins jar 实现自动化部署
https://blog.csdn.net/qq_40922616/article/details/121115569
5.ssh测试连不上
https://blog.csdn.net/linmengmeng_1314/article/details/124759815
6.脚本启动
jar
#!/bin/bash
cp target/ruoyi.jar /root/RuoYi/
cd /root/RuoYi/
BUILD_ID=dontKillMe sh ry.sh restart
7.Jenkins自动化构建vue项目然后发布到远程服务器
https://juejin.cn/post/7022802457667305486
vue
#!/bin/bash
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
npm install
npm run build:prod
mv dist/* /etc/nginx/ruoyi-vue/
service nginx reload
8.启动脚本
#!/bin/sh
###########nginx
service nginx restart
###########mysql
service mysqld restart
###########jenkins
cd /root/jenkins
sh app.sh restart
###########周本
cd /root/tools
###########若依redis 6380
/root/test-redis/redis-server/src/redis-server /root/test-redis/redis-server/redis_6380.conf
sh ry.sh restart
###########若依
cd /root/RuoYi
sh ry.sh restart
###########喵喵 Redis 6379
redis-server /root/redis-server/redis.conf
###########喵喵
cd /root/Miao-Yunzai
npm start
########### w访问文件服务器
systemctl stop firewalld #关闭防火墙
setenforce 0 #关闭selinux
systemctl restart httpd #
exit 0
结果