Foreword
Bloggers are downloaded in the windows environment corresponding .tar.gz archive and upload it to the server configuration.
Here are configured version of the JDK-8u201, tomcat8.5.40 , Ali cloud server is its lightweight application server , the system is pre-installed Ubuntu
Upload and configure jdk and tomcat
.Tar.gz compressed file to download at the official website.
Oracle to enter the official website to download the compressed file jdk.
Click to download jdk
Apache tomcat enter the official website to download the compressed file
Click to download tomcat
It should be noted that we have to download tar.gz suffix archive
upload files
First open command (win + R type cmd open)
input commands
scp -r [文件名绝对路径] [服务器用户名]@[服务器ip地址]:/[上传到的文件夹路径]
e.g. scp -r E:\jdk-8u201-linux-x64.tar.gz [email protected]:/user/lib
Extracting compressed file jdk and tomcat
Here bloggers use putty remote operation of the database, the specific installation bloggers will explain their post blog.
After we connect to the server using the cd command to enter uploaded to the path location, enter the following command to decompress.
tar -zxvf jdk-8u60-linux-x64.tar.gz
tar -zxvf apache-tomcat-8.5.40.tar.gz
Configuration environment variable
jdk installation package after extraction is completed, we need to configure jdk environment variable.
First, enter the path etc
files using vim modify the figure mark, adding environment variables in the tail configuration file
save settings, and then we'll enter java -version to see whether the configuration
appear above statement shows jdk configuration was successful.
Start the server
Enter the installed tomcat bin directory in the directory, enter the command to start the tomcat ./startup.sh, since we are the jdk and tomcat configuration is successful, then you can have access to our server in the browser.
Here bloggers also modify the port number of the server 80, so that the direct input ip browser can access to the server, as follows:
Modify conf / server.xml file under tomcat, the value of the following line of the port 80. the changed
access server ip If the following screen appears, it shows that we have succeeded configuration: