Purchase Ali student ECS server, basic site building operations, cloud server construction and deployment configuration JDK and Tomcat (with installation package), SSH remote connection

Purchase student cloud server ¥10/month

The operating system I bought is linux——CentOs7, it is best to use linux as a server

Enter the console and wait for the completion of the instance creation,
Insert picture description here
Insert picture description here

I reset my instance password, username root, the password just reset, the instance restarts, you can connect remotely, just use Xshell

Insert picture description here

Then click Remote VNC, you need to remember the password you came out next

Insert picture description here

Insert picture description here

Then VNC is useless. Next, use Xshell to create a new connection, configure the host name as public IP, user name root (different under linux, win), and the password is the one I reset

Insert picture description here

Go to Xshell (a remote connection to the database, use the command line to operate the software, many online download tutorials), create a new connection

Insert picture description here
Insert picture description here

The connection is successful, the following is about the construction of the environment and the installation of the software.

Insert picture description here

In general server operating environment, we need to install the following:

JDK is used to run various programs and software, version control Git, server Tomcat

The various software installation packages I use are here

Baidu Cloud: Link: https://pan.baidu.com/s/1TBLVduUW0NjGEVuejOeZeQ Extraction code: wl39

Preface

1. Download,,,,,,,, huh

Insert picture description here
Alipay-25
Insert picture description here
Ding!
Insert picture description here

2. Use Xshell's rz upload

1. Enter the rz command to check whether it is installed

Insert picture description here

2. Similar to mine above, without installation, use command

yum -y install lrzsz

Install the
Insert picture description here
installation is complete!

3. Upload to the server

Use the cd command to enter the location where you want to store the software installation package, enter rz, select the file, and upload it
Insert picture description here

uploaded completedInsert picture description here

1. Start installing JDK

1. Create a java folder under /usr/local/ and enter

cd /usr/local/
mkdir java
cd java

Insert picture description here
2. Unzip, unzip the JDK installation package to /usr/local/java

tar -zxvf /root/install_bag/jdk-8u161-linux-x64.tar.gz -C ./

Insert picture description here
3. Configure environment variables, edit /etc/profile files,

vim /etc/profile

,Press i to edit, add the following JDK environment configuration at the end of the file, ESC+colon+wq to exit

JAVA_HOME=/usr/local/java/jdk1.8.0_161 
CLASSPATH=$JAVA_HOME/lib/ 
PATH=$PATH:$JAVA_HOME/bin 
export PATH JAVA_HOME CLASSPATH

Insert picture description here
4. Execute commands and refresh environment variables

source /etc/profile

5. Verify the installation

java
javac
java -version

Insert picture description here

Two, start to install Tomcat

1. Create a tomcat folder under /usr/local/ and enter

cd /usr/local/ 
mkdir tomcat 
cd tomcat

Insert picture description here
2. Unzip, unzip the Tomcat installation package to /usr/local/tomcat

tar -zxvf /root/install_bag/apache-tomcat-7.0.104.tar.gz -C ./

Insert picture description here
3. Start, run the startup script under bin

cd bin
./startup.sh

Insert picture description here
4. Verify the startup, open the URL in your computer browser: your public network ip: 8080 is
successful:
Insert picture description here

Failure: Go to the console-security group-add open port 8080, wait for a while to access after the change, don't worry...

Insert picture description hereInsert picture description here

Guess you like

Origin blog.csdn.net/qq_41170600/article/details/106505146
Recommended