This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.
preface
XiaoLin’s fans have recently reached out to me and said:
Lin Ge, I am a fresh graduate, recently want to interview, have what can add points?
Ringo, I’m going to look for an internship. I have to write my resume recently. Is there anything I can add?
Ringo, I am preparing my graduation project recently. Is there any operation that can impress my tutor?
The answers to these questions, I will say that they usually set up a website, use ali cloud/tencent cloud/huawei cloud/seven NiuYun etc all kinds of cloud server to quickly build a belongs to own x small sites, though not very cow x, but said to find an internship, graduation design points, this is pure enough, people will think you are beginning ability, No more words, start right away, give me ten minutes, lead you to learn a small knowledge of installing X.
π Buying a server
I will not say more about the steps to buy a server, open a certain 60/ a certain degree, and search a cloud server at will. Today, I use the server of Ali Cloud, just because I bought a server last time.
It doesn’t matter what server it is, it has to be Linux, otherwise the next steps will be meaningless! General students can use 1 core 2G, a year is not expensive, about 80-100 a month.
𧨠Installation Environment
Today we will install the most simple base environment to test, just install JDK and MySQL, if you do not have to install can see my previous blog:
- Test N times, Ali cloud centos7 install mysql5.7, read this article once too!
- Install the JDK in 5 minutes
Prepare project
Now comes the most exciting moment for us. First we have to prepare a test project. One of the test projects I took today is a small resume management system, which is not fully written yet.
We need to modify the database information first.
Let’s start packing the project! Find the Mvane of IDEA -> project name ->Lifecycle-> Package
When we see this, our project is packaged and ready to deploy! Nice!
We go to the location of the default JAR package packaged by Idea, and we can see our JAR package!
The last step is to synchronize the database to the remote server’s database!
The deployment of
We first put the jar package on the server in any directory, although it is any directory, but it is better to have a standard directory, easy to maintain and expand later. My catalog is in/usr/project
So let’s CD over thereThen drag and drop to upload our project.
The final step is to run our project.
Java jar ResumeManager - 1.0.0. JarCopy the code
There he is! There he is!
If there is no error, it means that our project is set up and deployed, but if the black window is closed, our JAR package will stop running, so how to let it run in the background? We just need to add one word in front of it.
Nohup Java jar ResumeManager - 1.0.0. JarCopy the code
Open ports
If we use the cloud server, there is a final step, that is to open the port, cloud server for security, many ports are closed, can not access, this also caused that we can not access our website, take Ali cloud server for example.
test
Finally, IP + port can be accessed! You’re done
If you have any bugs or suggestions during the release, please feel free to put them forward in the comments section. I will check and verify them one by one. It is the best to give a one-button three-link.