Server deployment and simple use

What is a server? #

The server is a remote linux

1. For those purchased on Alibaba Cloud, you need to activate the security group settings and perform port mapping

Port mapping needs to be
enabled on the Alibaba Cloud panel. (How can I not access the port? This is probably the problem) Violently open port 1024/65535 (all ports are opened, which is very insecure)
Insert picture description here

2. Obtain the server's public network ip address, modify the instance name and password, the first modification needs to be restarted, and you can use xshell to connect remotely in the near future.

Insert picture description here

3. After connecting to the server, we need to set up the environment

Two ways
(1) fool-style (pagoda panel)
pagoda panel installation teaching: https://www.bt.cn/bbs/thread-19376-1-1.html

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

Insert picture description here

After downloading, you can get an address: the management panel of the pagoda.
Address:
Account Number:
Password:
Insert picture description here
Insert picture description here

We use foolishness this time.
(2) Imperative (native)
using Linux (subsequent supplement)

1. Customize the installation server environment

Insert picture description here

In the pagoda panel store, there are many applications that can be deployed, or one-click deployment.
In short, it's bells and whistles, and I won't elaborate
on it. After the installation is completed, the corresponding port needs to be released, otherwise it cannot be accessed.
Insert picture description here

2. Put it on your own website

For example, tomcat is placed directly under the webapps directory.
Some special projects, such as open source projects, need to follow their own operations.

3. Use xFTP to upload files

Put the war package directly into tomcat to
execute the jar package using the command java -jar

4. The website access test fails, it must be a firewall problem (Linux firewall and Alibaba Cloud Security Group Panel)

Guess you like

Origin blog.csdn.net/qq_46140800/article/details/115002688
Recommended