Abstract
Some time ago, ye Shen invited everyone to go whoring in the cattle group Hua Wei Yun The server , As a white whoring party , We must support Mr. Ye's work , So I bought a student computer for a year , But a while ago, things were a little bit more , No servers have been deployed , There's just a little time today , Plan to put web Curriculum javaweb The server is set up
Set up process
The server information is as follows : Server system version :Ubuntu 18.04 Server configuration :40G Hard disk +2G Memory +1M bandwidth
Connect to server
First of all to enter Hua Wei Yun Console , Change the password first , Change to your own password
Download and install xshell
Open the software after installation , make new connection
The host column is filled with our server's ip Address , This can be Hua Wei Yun The console found
The connection requires us to log in , Hua Wei Yun The default login name of is root, Now fill in the password we just reset
The interface shows that the login is successful
Javaweb Server deployment process
First of all, we need to transfer files to the server , So we need to install one first lrzsz plug-in unit , The code is as follows :
apt-get install lrzsz
Type... On the command line rz The selection file box shows that the installation is successful
Huawei's cloud server doesn't come with it java, So we need to install it ourselves java, The following two codes install jre and jdk
apt-get install default-jre
apt-get install default-jdk
stay Hua Wei Yun Installation on server jre and jdk You don't have to configure environment variables , It's convenient Next we use our own Windows To Tomcat Download from the official website Tomcat
After downloading, use rz The order will Tomcat Transfer to the cloud server
Next, decompress the package , because Tomcat It doesn't need to be installed , The command to unzip is as follows :
tar -zvxf apache-tomcat-8.5.49.tar.gz
After decompression, you can delete the source file
We enter Tomcat Of webapps Folder , Take us war The package is uploaded to this folder ( How to generate war Bag is web The content of the course , I won't repeat ) After uploading, enter Tomcat Of bin Folder , start-up Tomcat The service can be
We also need to open our servers 8080 port
At this time, enter the server's ip Address :8080, You can see us Tomcat Welcome interface for
Add us to the back war The name of the package , You can visit our written javaweb Program
Conclusion
Cloud server 9 Yuan a year , It's really the same as giving for nothing , Thank you, ye Shen , thank Hua Wei Yun , Thanks to the party and the country , Let me enjoy such a good welfare .