This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15086|Reply: 2

[.NET Core] NET Core2.2 + CentOS7 + nginx1.14.1

[Copy link]
Posted on 6/12/2019 8:44:31 AM | | |
This post was last edited by 夏 on 2019-6-12 08:45
Centos 7 installation. NET Core SDK tutorial
https://www.itsvse.com/thread-4860-1-1.html
Centos 7 .Net core background daemon supervisor tutorial
https://www.itsvse.com/thread-4870-1-1.html
Centos installation nginx-1.14.0 tutorial
https://www.itsvse.com/thread-4855-1-1.html

nginx website profile:
However, this GBK encoding format is not supported by default in .net core, resulting in garbled data. We need nuget to install System.Text.Encoding.CodePages. Then register in the Startup.cs Configure:
asp.net core default ports are 5000. Then when we run the second program, it will prompt that port 5000 is occupied. At this point, we need to assign different ports to each program.
Create a new JSON file in the root directoryhosting.json

Modification in Program.cs file






Previous:Small scum management! How to solve this?
Next:win10 virtual machine
Posted on 6/12/2019 6:17:27 PM |
Lao Tie, please share the line of Gauss 1972469036qqq
 Landlord| Posted on 6/13/2019 10:20:20 AM |
hzh Posted on 2019-6-12 18:17
Lao Tie, please share the line of Gauss 1972469036qqq

Links:https://pan.baidu.com/s/1TmSx53PN30FL8De7pDmHsgExtraction code: ddhn After copying this content, open the Baidu Netdisk mobile app, which is more convenient to operate
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com