. Netcore CentOS Environment to build the actual combat

Source: Internet
Author: User

Step 1. installing VMware workstation:https://my.vmware.com/cn/web/vmware/info/slug/desktop_end_user_computing/vmware_ Workstation_pro/14_0 Download Install 2. Installation CentOS7 installed after the discovery cannot use the network reference http://blog.csdn.net/wanz2/article/details/528208763. Install the. NET Core Reference website step: Https://www.microsoft.com/net/learn/get-started/linuxcentos4. Installation Nginx also refer to the official website step: https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-75. VS2017 New Project Publish cost place folder new project, use MVC template to publish to local folder 6. Upload the packaged files directly to CentOS via XFTP to CentOS (I built a Web folder in the root directory dedicated to the deployed site) 7. Run the Dotnetcore site in xftp click New Terminal Open Xshell Locate the path to the site folder Cd/root/web/mvc perform dotnet HelloWord.dll see the following information It means you've been successful. This time, you're out of access. Because the firewall is not enabled for Port 5000 if you want to see if you can open another terminal input 8. Configure Nginx to point 80 port to Dotnetcore site This step is through Nginx 80 request to go to the above localhost:5000 first find Nginx in the configuration open will find in the following directory in a new file input configuration
server {    listen;    Location/{        Proxy_pass http://localhost:5000;        Proxy_http_version 1.1;        Proxy_set_header Upgrade $http _upgrade;        Proxy_set_header Connection keep-alive;        Proxy_set_header Host $host;        Proxy_cache_bypass $http _upgrade;    }}

  

Then restart the Nginx = = "sudo nginx-s reload9, see the results in the browser input 192.168.2.105 summary: Some problems encountered in the process, such as the CentOS system in the virtual machine can not be used in the network this toss the labor of a morning (if have met, The 2nd has references)

. Netcore CentOS Environment to build the actual combat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.