先自我介绍一下,小编浙江大学毕业,去过华为、字节跳动等大厂,目前阿里P7
深知大多数程序员,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Java开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上Java开发知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
如果你需要这些资料,可以添加V获取:vip1024b (备注Java)
正文
[root@jenkins tomcat-java-demo]# ls target/
classes generated-sources ly-simple-tomcat-0.0.1-SNAPSHOT maven-archiver maven-status myapp.war
设置免密登录
[root@jenkins ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory ‘/root/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:xtKS6e4tqVK8B849+eoUbbTJAJp38COb253ccwIw+FY root@jenkins
The key’s randomart image is:
±–[RSA 3072]----+
| o |
| o = |
| o + B E |
| . * # o |
| .o O S |
| += O + |
| +.++o+ + . |
| . +oB. + |
| …===o |
±—[SHA256]-----+
[root@jenkins ~]# ssh-copy-id root@192.168.129.134
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/root/.ssh/id_rsa.pub”
The authenticity of host ‘192.168.129.134 (192.168.129.134)’ can’t be established.
ECDSA key fingerprint is SHA256:uHo8Vg0cYwJ7KOQnCtvlu7g43XP3sjNQjDZoeCO6lBY.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys
root@192.168.129.134’s password:
Number of key(s) added: 1
Now try logging into the machine, with: “ssh ‘root@192.168.129.134’”
and check to make sure that only the key(s) you wanted were added.
将包输送到server主机
[root@jenkins tomcat-java-demo]# pwd
/opt/tomcat-java-demo
[root@jenkins tomcat-java-demo]# scp target/myapp.war root@192.168.129.134:/usr/local/tomcat/webapps/
myapp.war 100% 17MB 125.8MB/s 00:00
测试
===================================================================
查看打的包
[root@jenkins tomcat-java-demo]# cd /root/.jenkins/workspace/
[root@jenkins workspace]# ls
demo demo@tmp
在server主机上创建备份
[root@server webapps]# mkdir /opt/backup
[root@server ~]# tar -Jcf /opt/backup/myapp-$(date +%Y%m%d%H%M).tar.xz /usr/local/tomcat/webapps/myapp
tar: 从成员名中删除开头的“/”
[root@server ~]# ls /opt/backup/
myapp-202110191923.tar.xz
配置流线脚本
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
// Get some code from a GitHub repository
git ‘https://gitee.com/forgotten/tomcat-java-demo.git’
// Run Maven on a Unix agent.
sh ‘’’
mvn -Dmaven.test.failure.ignore=true clean package
mv target/ly-simple-tomcat-0.0.1-SNAPSHOT.war target/myapp.war
‘’’
// To run Maven on a Windows agent, use
// bat “mvn -Dmaven.test.failure.ignore=true clean package”
}
}
stage(“publish”){
steps{
sh ‘’’
ssh root@192.168.129.134 ‘tar -Jcf /opt/backup/myapp-$(date +%Y%m%d%H%M).tar.xz /usr/local/tomcat/webapps/myapp’
scp target/myapp.war root@192.168.129.134:/usr/local/tomcat/webapps/
ssh root@192.168.129.134 ‘/usr/local/tomcat/bin/catalina.sh stop’
sleep 3
ssh root@192.168.129.134 ‘/usr/local/tomcat/bin/catalina.sh start’
‘’’
}
}
}
}
最近我根据上述的技术体系图搜集了几十套腾讯、头条、阿里、美团等公司21年的面试题,把技术点整理成了视频(实际上比预期多花了不少精力),包含知识脉络 + 诸多细节,由于篇幅有限,这里以图片的形式给大家展示一部分
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注Java)
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
mg-Lf9tQ50v-1713635144739)]
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
需要这份系统化的资料的朋友,可以添加V获取:vip1024b (备注Java)
[外链图片转存中…(img-LjKFG6mr-1713635144739)]
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!