【玩轉 WordPress】— 史上最快速搭建 WordPress 教程

以下內容來自「玩轉騰訊雲」用戶原創文章,已獲得授權。

01. 什麼是 Serverless?

在《Serverless Architectures》中對 Serverless 是這樣子定義的:

Serverless was first used to describe applications that significantly or fully incorporate third-party, cloud-hosted applications and services, to manage server-side logic and state. These are typically “rich client” applications—think single-page web apps, or mobile apps—that use the vast ecosystem of cloud-accessible databases (e.g., Parse, Firebase), authentication services(e.g., Auth0, AWS Cognito), and so on. These types of services have been previously described as “(Mobile) Backend as a service", and I use “BaaS” as shorthand in the rest of this article. Serverless can also mean applications where server-side logic is still written by the application developer, but, unlike traditional architectures, it’s run in stateless compute containers that are event-triggered, ephemeral (may only last for one invocation), and fully managed by a third party. One way to think of this is “Functions as a Service” or “FaaS”.(Note: The original source for this name—a tweet by @marak—isno longer publicly available.) AWS Lambda is one of the most popular implementations of a Functions-as-a-Service platform at present, but there are many others, too.

這樣的描述我相信有很多小夥伴不明白,我們可以這樣子來理解 Serverless:

它的中文直譯就是「無服務器」,目前對於 Serverless 有幾種解讀方法:

  • 在某些場景可以解讀爲一種軟件系統架構方法,通常稱爲 Serverless 架構
  • 而在另一些情況下,又可以代表一種產品形態,稱爲 Serverless 產品

可以理解爲 Severless = FaaS + BaaS 即函數即服務 (Function as a Service) + 後端即服務 (Backend as a Service)。

02. 快速搭建 WordPress

第一步:進入 Severless 控制檯並完成授權,點擊新建應用,選擇應用模板 — 快速部署一個 Wordpress 框架

第二步:填寫應用名,選擇環境和地域;

  • 應用名稱:最短 2 個字符,最長 63 個字符,只能包含小寫字母、數字及分隔符 “-”、且必須以小寫字母開頭,數字或小寫字母結尾。應用名稱創建後無法修改。

  • 環境分爲:部署環境,實現開發、測試和生產環境

  • 目前支持廣州,上海,北京三個地域

選擇完成後點擊完成

第三步:等待部署完成。

  • 部署時可以查看部署日誌,部署通常需要 90 秒。

第四步:配置 WordPress

  • 點擊右上角的「訪問應用」,會打開一個系統自動分配的域名,在此頁面完成 WordPress 的基本配置。

第五步:綁定自定義域名

在資源列表選項卡中找到基礎信息欄

輸入自己的域名(因爲部署在國內,需要使用已備案的域名)

<img src="https://main.qcloudimg.com/raw/0076bbbccac477fd3130509776c93f5d.png" width="700"/>

完成後點擊保存即可。


Serverless 建站驚喜福利大派送!

建站計算資源雲函數 SCF、文件存儲 CFS、雲原生數據庫 TDSQL-C、內容分發 CDN、API 網關資源月月送。

點擊這裏,查看領取驚喜福利!

One More Thing

立即體驗騰訊雲 Serverless Demo,領取 Serverless 新用戶禮包 👉 騰訊雲 Serverless 新手體驗

歡迎訪問:Serverless 中文網

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章