.net core3.1 project deployment experience on centos7.6

 

0x00 environment to build

1) Use your PuTTY Telnet centos

2) yum -y update system updates

3) Installation pagoda panel: -Y yum the install the install.sh wget && wget -O http://download.bt.cn/install/install.sh && the install.sh SH

4) Log pagoda panel initializing the system, install MYSQL, PHP, NGNIX, FTP, etc.

5) or the use of PuTTY Telnet when .net core 3.1 run to start the installation:

The first step: add the package source rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm

The second step: the installation yum install dotnet-sdk-3.1  

Check how the installation has not been successful please refer to other popular science articles.

0x01 configuration

1) create a site inside the pagoda panel, after using the built-in FTP function to upload release WebAPI project, pagoda comes decompression zip file, unzip it.

2) Use PuTTY Telnet, cd / www / wwwroot / yourwebsiteroot, run: dotnet yourwebapi.dll, if not with port parameters, the program will run the default listening port 5000.

It should emphasize that, in the case I just started to have a variety of positions, and external access: http: // IP: 5000 can not succeed, the original is centos default is to open the firewall, add exceptions or close the mention in addition console security group wanted to go to the cloud host's port 5000 open access, this also refrain from that.

3) panel inside the pagoda site settings, modify the configuration file, NGINX just forward http request, he was a webserver, and our project is to monitor 5000

 

4) Restart NGINX

5) kick call it a day

 

Simple statement does not mean that the process is very smooth, and finally took two days to complete.

 

 

 

 

 

 

 

 

 

号称国内第三的电信天翼云还是不错的,双11的时候1折抢的服务器,121元。

 

Guess you like

Origin www.cnblogs.com/datacool/p/datacool2020.html