Nah, when doing Java, the most important thing is to deploy your "work" to the public network.
Especially for beginners, they need to prove to the interviewer what they know. This is really important. It is empty talk. Why does the interviewer believe that the content of your resume is true? The best way is of course to put the work on the public website, showing him his face
For colleagues who have already started working, this is relatively simple, because at work, deploying a project is nothing more than passing .war (or other forms) through ftp, then restart tomcat, and wait for it to be completed. However, if you are a learner, you will face greater challenges than those who are already working. Why? Because I don’t have an environment that has been built, and there is no “upload, restart”. It’s all OK. If you are a student who is not familiar with Linux, the challenges faced are no less than never learning programming. It’s difficult to start learning Java from Hello.
In order to solve this problem, a series of tutorials were made, starting from scratch, starting from an empty environment, and achieving the ability to see a running effect on the public network.
During this period, not only did all of each step be recorded, but the software and tools needed were also downloaded to reduce the learning curve (because some software is really a bit difficult to find).
1. First, purchase Alibaba Cloud server. There are many types of Alibaba Cloud servers. Because they are learning needs, I helped everyone find the cheapest 14.76 per week. . . One week is enough to master this
2. Detailed explanation of each step of purchase
There are many purchase parameters for Alibaba Cloud servers. Do novices know how to choose a security group? Do you know how to choose the cheapest one? (It is not the cheapest by default). Do you know how to choose a mirror and an operating system? These are not a problem for experienced people, but they will make novices pick their heads for a long time. So I have made detailed records and explanations for this part.
3. After purchasing, connect to the server
The server is Linux, which is different from Windows. Windows remote connection can be used, and Linux connection requires special tools.
After a successful connection, what you see is not a graphical interface, but a command line interface, and you need to be proficient in using these commands.
Finally, you have to practice using the vi tool to master how to edit and save configuration files.
4. The ftp server is immediately followed. The ftp server is used to accept uploading files from the PC side to the Linux server. This is also a big pit, which involves users, permissions, ftp server installation, port opening, related configuration, and ftp client. Anyway, it is also a big mess.
5. Java environment installation
This is the simplest, just one sentence
6. Mysql
When deploying J2EE applications, there is no JSP only, but you have to connect to the database. So Mysql needs to be installed and configured by itself
7. Tomcat
It's time to get to this place, it's Tomcat's turn to play
8. Deploy J2EE applications
The last step here is to deploy J2EE applications. Here we need to use the previous ftp for uploading, and we also need to configure mysql and tomcat.
9. Tutorial address:
http://how2j.cn/k/deploy2linux/deploy2linux-breif/1591.html?tid=115
Summarize
The above is the method of deploying the J2EE-developed website to Alibaba Cloud server introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!