Create a new user and configure jdk, tomcat environment

Into the root account

Adding a user
input useradd qwe

Password
input passwd qwe

Repeat twice password setting is completed

Switch user
input su - qwe

Other files into the server copy jdk
input jdk1.8.0_102 -r scp / [email protected] : / Home / QWE

Editing .bash_profile
input .bash_profile vim
Here Insert Picture Description
Source file to take effect
input source .bash_profile

Use wget to download tomcat
enter wget https://www.apache.org/dist/tomcat/tomcat-8/v8.5.41/bin/apache-tomcat-8.5.41.tar.gz.asc

Unzip the file
input tar -xzvf apache-tomcat-8.5.41.tar.gz

bin file into the tomcat start tomcat

Enter the URL, the default port 8080, accessed
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq1105273619/article/details/90519596