Buy Tencent cloud lightweight server tutorial

  • (age 25 / discount for students) juejin.cn/post/691169…

Purchase of Tencent Cloud lightweight server console

  • Address path console.cloud.tencent.com/lighthouse/…

  • In the console, you need to reset the password in the instance information bar before using the image. In the Application information bar, you can make and purchase the image. For the lightweight server, I choose The Chinese version of Windows Server 2012 R2. Local login method for input MSTSC (in Windows + R), can connect to a remote desktop, computer there to fill in the purchase of public domain name server, can be seen in network and the domain name, account number and password input just change good account password, login mode in detail in the application of information can also be found in “more login way”

  • Can see in the firewall can also click add to add rules you wish to open port, because front project, backend start-up require port, if the project requires the port is not open, you may see project has been running on the server, but in public tip can’t open your project.
  • DNS domain name resolution address console.cloud.tencent.com/cns

Click add parsing can be here will you buy the IP address of the DNS to the server, which means you can not buy domain name through your server (public IP address)/(public IP address + port number) open access to your project, if you parse can use (domain name)/(domain name + port number) to access the project. For example (my front-end project:pixinlei.ltd/(Back-end project:pixinlei.ltd:3000/(81.71.146.247) (81.71.146.247:3000)

  • To install the IIS service tutorial cloud.tencent.com/document/pr…
  • Follow the steps to complete the installation process

Click on the toolbar, click on IIS Manager (the first one),

Open it and find the site in the left menu bar. Right-click add Site and enter the site name (it should be obtained randomly for myself). The physical path is in the dist directory packaged by NPM Run build. (C:\wwwroot\project1\dist) (C:\wwwroot\project1\dist) (C:\wwwroot\project1\dist) (C:\wwwroot\project1\dist) (C:\wwwroot\project1\dist) Make sure this port number is not occupied. My word front-end I did not change the use of port 80, the default back-end in the local time is 3000, here I also firewall open 3000 port.

Project running

For the front-end project, put the dist directory in place. I don’t seem to say to run it, but I can see it directly. On the back-end of my Node, I run it as I would run it locally.

The last

Set up the server, I am also the first time, crazy Baidu, want to watch the video to follow the video, but other people’s mirror and I am not the same, the operation method is not the same, is very headache, continue to crazy Baidu. I’m using Windows Server 2012 R2 Chinese version here, and I don’t have the same can see others how to do it, haven’t bought it can see my tutorial to get follow others to do it, I casually watch the video there seems to be a very simple, also seems to be very complex to do it, some to do Nginx reverse proxy, When I first started, the backend could only run locally on the server. I couldn’t see it with public IP. I also tried Nginx. May be those who have a lot of projects and need to do awesome ✌ do this, my “can run count successes”. Here encounter what problem also can ask me, don’t be too difficult, I also won’t, my QQ (2954716615).