Ali cloud linux jdk and tomcat server configuration

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

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
Here Insert Picture Description

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

Here Insert Picture Description

Configuration environment variable

jdk installation package after extraction is completed, we need to configure jdk environment variable.
First, enter the path etc
Here Insert Picture Description
files using vim modify the figure mark, adding environment variables in the tail configuration file
Here Insert Picture Descriptionsave settings, and then we'll enter java -version to see whether the configuration
Here Insert Picture Descriptionappear 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
Here Insert Picture Description
access server ip If the following screen appears, it shows that we have succeeded configuration:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_42267300/article/details/92608193