The more you know, the more you don’t know
Like it and see. Make it a habit
GitHub github.com/JavaFamily has collected the brain map, personal contact information and technical exchange group of the first line Dachang surface pilot. Welcome Star and your comments
preface
I don’t know how many times people in the group said that their project was not bright. They were afraid that they could not find a job when they went out of the university without a project. They asked Aobing how I got the Offer from Huawei during my internship.
In fact, the university project is very simple, there is no need to be too difficult, because the interviewer knows that you have no experience, will not care about this, but you have to have a project this is a necessary condition, no matter how to add, delete, change, check you should be 6 than others, or find a 0 experience in the people, is not to dig a hole for him?
And if you have a decent resume, or if your project has some good points, perfect, your Offer rate will beat the competition.
I have done several projects in university, a few days ago I asked the students, but also in the stable operation of the school, to tell the truth, I am a little proud.
However, to be honest, my Offer from Huawei has little to do with these projects. The projects I completed in college were completely out of interest. I remember the time when I went to the library alone before my roommates got up, and my eyes got wet before I went back to the library when my roommates were sleeping.
I will write about it in the Program life series. Before or after the New Year, I will give you my journey from college to now.
At that time, I worked as an administrator in the electronic reading room, and even stayed up all night in the library for many times to catch up with the schedule. Fortunately, I finally completed the project, from the front end to the service end, from research and development to deployment and launch.
As we all know, when schools used the course selection system, many of the systems made by schools for third-party companies were very poor, but the project made by Aobin was not bad, because I used Redis at that time. Now I think the design idea is still avant-garde.
Well blown so much, in fact, is to lead to today’s theme, how to build a project from 0 to 1 can be accessed by the Internet.
Many partners see the end to say, C c I want to learn is distributed, do not learn garbage stand-alone system.
Distributed is not a single service composition, you have more than a few RPC communication is not good?
The body of the
I will use my own server to give you an example of how to build a project from 0 to 1 that students and novices can use to interview, and old hands can also recall their lost youth.
May have a small partner doubts, c c why to server, not local yao?
Can, of course not to promote the server ha, we can not buy, I just elaborated on their own point of view, because we go out after hard to avoid the situation of their own operation server, some companies do not have integrated release system, that requires you to go to the machine to operate.
Then you RM – RF, good to go to the finance office to get the next salary, the end of the year, early home For the Spring Festival can still be ok?
Joke ha, but a lot of operations we are not often familiar with in fact will not know, really to operate or the interviewer asked you, familiar with all kinds of operations, you said not familiar with, good back to wait for news.
As the interviewer, you have little experience in the interview, he will pay more attention to your thinking, and whether you have practical operation, pragmatic?
Shuaic my university project is often operated, so the server operation and Linux command for a long period of time are still good, the technology stack is also very familiar with the construction, but recently I used the company’s tools, command forgot much better, need to reflect on.
Server in the activation of the time will let you choose the system, this time OBin MY personal advice, some basic has been familiar with the installation process and environment configuration of the students can directly choose the mirror, mirror market there are a lot of very suitable mirror, I choose is with JDK8, Tomcat8, MySQL mirror.
Did not make the students can try to choose a blank machine, and then the next good these things, step by step to try, I think the harvest will have, with you in your own computer to build the difference you will immediately experience, this is why we recommend one of the reasons for server operation.
Mirror to choose
Mirror remember to choose free, generally free.
You can see your server in the instance, the following is the handsome c server, unexpectedly as handsome as me, god.
Above are newly built partners, have a server partner, but want to change to mirror how to do?
Everyone first stop the service and then click on the right to change the operating system, it will let you go to the mirror market to choose, before you choose any system can be changed.
Logging In to the Server
You can log in to the server remotely on the management page or use the corresponding console tool to connect to the server locally.
I recommend the local console connection will be better, every time to log in to the server to go to the web page is very troublesome.
Remote link code, remember is everyone’s public IP, management interface to see, remember when you buy the configuration of the password, because this time to enter.
SSH [email protected] -p 22 (the last 22 is a port, which I will cover later)
To this step, many small partners directly login success, but before the server has been a friend is not found, appear the following page?
The reason for this information is that on the first SSH connection, an authentication is generated and stored in known_hosts in the client. But if the server authenticates this, the authentication information will of course change. So, just delete the authentication information from the computer, regenerate it when connected, and everything is perfect. This is as simple as typing a command in the client
Ssh-keygen -r + Enter the IP address of the server
Then connect again and it will appear
Are you sure you want to continue connecting (yes/no)?
Enter yes! The connection is complete! At the same time, new certifications are generated.
After entering, if you are a mirror friend, you will find that you have all the things you have prepared, and the environment is set up. You can just use it directly.
But if you do not choose the mirror friend, you need to build an FTP or use the transfer command to download Tomcat, MySQL and other transfer in the installation.
As you can see, there’s also a default password folder, which has MySQL and FTP account passwords and things like that, and it may vary from image to image.
This is what you need to configure to connect to local MySQL when you write your own service code later.
The blog site
This time teach everyone to build the project say big or small, say small he has everything, anyway xiaobai and students must be very suitable, is a personal blog website.
Let’s take a look at the blog and see if your project as a university is up to scratch.
The project I did in college was much less fun than this, it would have been nice to have such a nice UI!
Project code
I’m a straight guy who thinks UI is great, but you think UI is all right? Let’s look at the project!
Project Git address https://github.com/halo-dev/halo.git we clone it.
The project itself is owned by Gradle. Many people are going to say, “I don’t want it, I want Maven project.”
I just want to tell you that technology is not pressure. At present, many large factories are Maven projects and Gradle projects account for a high proportion. How do you know what the company you go to will use?
How much will you use it to reduce the cost of learning? The Leader secretly gives you a thumb beside him and sighs: Handsome reader, there is something.
Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle: Gradle (Windows friends directly download a good official website gradle.org/install)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Copy the code
If you want to install Gradle, you can use the following command to install Gradle.
$ brew install gradle
Copy the code
Next, go to the project to set the Gradle address. Here is the setting of IDEA
Why recommend personal blog projects?
Many people ask me why I recommend this project, this project has seen the code, there are no grammar mistakes, the project structure is completely standard project, annotations are also very complete, the code style is quite good, or use a lot of new syntax and annotations.
And it is not difficult to understand, the structure is very simple, front-end and back-end are very simple, we look at the code, look at the interface before and after, soon can adapt to the project.
Next we can use the project to make a package, or directly download the package. (Jar packages and war packages are optional)
Download the latest Halo installation package from the command line
curlhttps://github.com/halo-dev/halo/releases/download/v1.1.1/halo-1.1.1.jar -- - L output halo - latest. Jar
Copy the code
or
wgethttps://github.com/halo-dev/halo/releases/download/v1.1.1/halo-1.1.1.jar - O halo - latest. Jar
Copy the code
File transfer, shuaic I am used to command line, FTP tools are still not used, I will post command line how to transfer jar packages from local to server.
scp -P 22 /Java/program.war root@123.456.789.987:/usr/server/tomcat7/webapps/
Copy the code
Let’s go into the machine and check. The file has been transferred in.
Since it is a SpringBoot project, you can run it as long as you have the JDK.
java -jar halo-latest.jar
Copy the code
Then you can access your IP + port (8090) and see the project
And then a lot of partners say, cheat a man who plays with women’s feelings, how can mine not?
Wait a minute wait a minute, ao third ah still is preparing to say, everybody’s port opened by default 22, -1, 3389
22 is not very familiar, is the beginning of our link port number → SSH [email protected] -p 22 is also because the manufacturer default to open for us, we can directly link.
But we want to access other ports, so go to open, remember to open the same entrance and exit yo!
Then reboot the machine and restart the project, right!! Access to?? Let’s register first
Then log in again.
As you can see, the validation exceptions and so on are thrown directly from the log. I think the project is very fragrant for students and beginners, and the code style in it is also more comfortable for you.
Log in, we can find that the function is very complete, the basic structure of the blog site is in.
Have a premature guess, haven’t graduated design friends… 😂
omg
See here many partners may say that you are to promote the server to write it, I tell the truth there is a certain component, but more because of my own group, there are often many partners to the project of the whole process is not very familiar with, so just out of such an article.
This is just a standalone project, you can download and deploy it on Git to experience the whole deployment process if you want to experience other technology stacks. There will be a lot of difficulties in the process. Believe me, 100000% will not be successful at one time, but the process you slowly explore is the process of learning and harvest.
People often ask me how the big guys grow up, step on the pit and put in a lot of practice, there is no other way.
The Leader of my old employer in 1995 was the Leader of the front end and back end of our previous company. The technical depth, breadth and business depth were all remarkable. How did you do that?
I went back at dawn every day, held meetings during the day, wrote code at night, and even squeezed time to learn new businesses. The technology stack was also explored by myself.
I was so familiar with him that I went to a meeting to discuss business as soon as I sat down after buying breakfast. When I came back at 6 o ‘clock in the evening, I said, “Hey, eggs and soy milk are cold, and then threw them into the trash can.
Learning is a road which sometimes makes people happy and sometimes depressed.
We grow together on the road.
Pay attention and don’t get lost
All right, everybody, that’s all for this article. All the people here are talented.
I will update a few weekly Internet big factory interview and commonly used technology stack related articles, thank you very talented people can see here, if this article is written well, feel “AO third” I have something to ask for praise 👍 for attention ❤️ for share 👥 for warm male I really very useful!!
White piao is not good, creation is not easy, everyone’s support and recognition, is the biggest power of my creation, we see the next article!
AoBing | article “original”
If there are any mistakes in this blog, please comment, thank you very much!
This article has been included in GitHub github.com/JavaFamily. There is a pilot mind map of Dacang surface, and a lot of my documents have also been sorted out. Welcome Star and improvement. We can refer to the test points for the interview review, I hope we have something together.