Java Xiaobai Learning Guide [day45]---Linux deployment using HUAWEI CLOUD

Linux local deployment & HUAWEI cloud remote deployment

1. HUAWEI CLOUD purchase process

1. Purchase process

Purchase link: https://console.huaweicloud.com/ecm/?region=cn-east-2#/ecs/createVm

① Basic configuration

1606382913175

The test only uses 1 core cpu, memory 1GB, remember to choose CentOS for mirroring (do not choose the latest version)

②, network configuration

1606383627644

③, advanced configuration

1606383414887

④, confirm the configuration

Insert picture description here

⑤ After the public network IP is successfully allocated, it can be tested

1606383727657

Remote login for testing

1606383818893

Note: If it is an on-demand purchase, it will be billed by the hour, even if the cloud server is turned off, it will be billed

2. Simple to use

Configure the public network whitelist

1606383942137

It must be consistent with our previous network configuration selection, otherwise it will not work

1606384052057

2. Huawei Cloud (ECS) remote deployment

1、OneinStack

http://oneinstack.com/-Click [Interactive Installation] and follow the steps to complete the installation

Connect using Xshell

1606385523300

①, download the oneinstack package

[root@testw ~]# cd /usr/local/src/

[root@testw src]# wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz

②, decompress the oneinstack package

[root@testw src]# tar -zxvf oneinstack-full.tar.gz -C ./

[root@testw src]# cd /usr/local/src/oneinstack/

③, start and install the software

[root@testw src]# ./install.sh

④. The installation options can be viewed on the official website (the last five of the group are all N)

img

2. Configure after installation, release project test

①, modify the port to 80

1606386846019

The suffixes of these two files are exchanged, and the above xml cannot be used normally

②. Use Navicat to create links to prepare for project deployment

③, deploy the web project to tomcat

​ (1) Copy cms project webapp to /usr/local/src/webapp

​ (2) Modify the port of tomcat/conf/server.xml to 80

​ (3) Deployment project

<Context docBase="/usr/local/src/webapp" path=""/>

success! ! !

g-NmKJqBDj-1609057203311)]

2. Configure after installation, release project test

①, modify the port to 80

Insert picture description here

The suffixes of these two files are exchanged, and the above xml cannot be used normally

②. Use Navicat to create links to prepare for project deployment

③, deploy the web project to tomcat

​ (1) Copy cms project webapp to /usr/local/src/webapp

​ (2) Modify the port of tomcat/conf/server.xml to 80

​ (3) Deployment project

<Context docBase="/usr/local/src/webapp" path=""/>

success! ! !

Guess you like

Origin blog.csdn.net/WLK0423/article/details/111818054