Tham khảo chi tiết tại: www.codeproject.com/Articles/1227574/Hosting-ASP-NET-Core-in-Linux
Một số bước cần chú ý: 1. Cài .NET Core trên server 2. Cài nginx và chạy $ sudo apt-get install nginx $ sudo service nginx start 3. Chỉnh sửa cấu hình file default (ở /etc/nginx/sites-available) Thêm dòng trong vùng location: proxy_pass http://localhost:5000; 4. Restart và chạy ứng dụng $ sudo nginx -t $ sudo nginx -s reload Nhớ chạy WebApp trước bằng lệnh: dotnet MyWebApp.dll
0 Comments
|
Giới thiệuTrang thông tin bài viết hướng dẫn thao tác trên môi trường .NET Core Archives
November 2020
Categories |