CentOS 7 | centos .net core
![CentOS 7](https://i.imgur.com/axBPWDg.jpg)
在本篇文章中,將會:安裝CentOS7並建立基本環境安裝Nginx並將ASP.NETCore包成服務自動啟動安裝Certbot並申請SSL憑證使連線允許安全的HTTPS透過Certbot與Crontab使SSL證書可以自動更新Environment在安裝完CentOS7後,我們首先先設定一下基本環境,以及安裝一些需要用到的Packages(e.g.SSH,xRDP,dotNETRuntime),關於這個部分可以參考之前的文章CentOS7EnvironmentSetup[1]以及微軟官方文件[2],並依照自己的需求操作。NginxASP.NETCore內建kestrel伺服器讓我們可以不經修改直接搬到CentOS上執行,但輕巧的代價就是功能陽春,因此實...
![CentOS 7](https://i.imgur.com/H8YKUrg.jpg)
在本篇文章中,將會:
安裝 CentOS 7 並建立基本環境 安裝 Nginx 並將 ASP.NET Core 包成服務自動啟動 安裝 Certbot 並申請 SSL 憑證使連線允許安全的 HTTPS 透過 Certbot 與 Crontab 使 SSL 證書可以自動更新 Environment在安裝完 CentOS 7 後,我們首先先設定一下基本環境,以及安裝一些需要用到的 Packages(e.g. SSH, xRDP, dotNET Runtime),關於這個部分可以參考之前的文章 CentOS 7 Environment Setup[1] 以及微軟官方文件[2],並依照自己的需求操作。
NginxASP.NET Core 內建 kestrel 伺服器讓我們可以不經修改直接搬到 CentOS 上執行,但輕巧的代價就是功能陽春,因此實務上還是需要 Reverse Proxy 來對外提供服務。目前 Linux 上有兩大 Reverse Proxy Server:
Nginx was written with an explicit goal of outperforming the Apache web server.Out of the box, serving static files, Nginx uses dramatically less memory than Apache, and can handle roughly four times more requests per second.However, this performance boost comes at a cost of decreased flexibility, such as the ability to override systemwide access settings on a per-file basis (Apache accomplishes this with an .htaccess file, while Nginx has no such feature built in).
Wikipedia ── Nginx vs Apache[3]
截至 2018 年 1 月,Ng...