The following is a locally uploaded summary of one of my projects

Creating a Server Instance

First, you need to purchase a suitable server from each cloud server platform

Here I use Ari Cloud (Windows 2008 Server version)

Why did the system choose 2008 and not 2012?

Since 2008 takes up less resources than 2012, of course, if you have a high server configuration, there is no need to worry

After shutting down the server instance, select Replace system from more Server options

Configure the server account password and wait for the system to be installed

Start the server

Click start instance

The server console provides the remote connection instance function, but it is between the web version, part of the function and operation is not comprehensive, so we move to the remote desktop connection of our own computer, and remember the public IP address, user name and boot password

Enter IP, username, password and click Connect

Configuring the Server

After startup, you can start configuring Node, Java, Nginx, etc

Nginx (node at blog.csdn.net/time_____/a… A)

Download and install the latest Nginx version

Conf file under nginx-1.15.8\conf\, open it with the editor, and add the proxy for your project (Vue = 2048, root = nginx home directory, index = Vue).

Local projects are packaged and launched

The process is to change the url of the local request to the private IP address of the server

 

Here is a server that needs to be configured with a security group in order to open up the interface for invocation, otherwise the 2048 port number just configured cannot be accessed

Then change the local project baseurl to the server private IP address

The packaged files are then generated using NPM run Build to package the project into the build folder

Copy the folder to the Nginx home directory and name it vue

The back-end online

Same with the front end

Upload the project to the server and run it (I’m nodejs here, so switch to the project directory and run Node Server)

Run CMD start Nginx in the Nginx home directory to open the Nginx server

Online access

Finally in our browser to access the server’s IP plus address

Finally, our project is uploaded