Mac ali Cloud server configuration method

  • 2020-06-23 02:18:52
  • OfStack

Recently, Alibaba cloud server is engaged in 9.9 yuan activity for half a year.

According to the purchase process

Public mirror: Select the first CentOs, < It is recommended to use the lower version,CentOs more >

Then there will be a public IP and a private IP,

Here we use public network IP. The server can be configured in either of the following two ways, 2 is recommended

1.

Find - in the Purchase Settings screen > Instance details - > The remote connection

Enter your account password into your purchase server operating system

2.

Use software CyberDuck to connect to your server and enter the password on mac terminal $ssh root@123.36.222.22 (public network IP).

Note :CyberDuck transport protocol USES SSH

Terminal and visual tools are available

cd Check your location, cd

Probably under root file.

Note: Files under root have similar folders to the root directory of the server. Make no mistake

B installs the JDK and Tomcat configuration JDK environment variables on the server

Find file /ect/profile in the unzipped JDK

Go to viprofile and find JDK's environment Settings, put it in there, save, exit and see if Java-ES67en is set

There will be JDK version information

C unzip the tomcat folder and find the bin file. There are many files in the bin file. startup is the file to start tomcat

The webapps folder holds the project you want to start < The project name >

Start the


$ ./startup.sh

Note: This way the outside world can access your project public network IP:8080/ project name/ES90en.html

8080 is the default port number

To view


$ ps -ef|grep tomcat

12092 This is one process id

Kill the process


$ kill -9 12092

conclusion


Related articles: