前端開(kāi)發(fā)通過(guò)阿里云快速建站
時(shí)間:2023-07-10 04:18:02 | 來(lái)源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-07-10 04:18:02 來(lái)源:網(wǎng)站運(yùn)營(yíng)
前端開(kāi)發(fā)通過(guò)阿里云快速建站:選服務(wù)器的操作系統(tǒng)是centOS,安裝很方便,直接yum xxx
先安裝基礎(chǔ)包:nginx、git。
path通過(guò)nginx配置,可以一服務(wù)器多站點(diǎn)。
git用來(lái)下載代碼到服務(wù)器,遠(yuǎn)程傳文件太麻煩,還是git方便。
參考一下官方文檔。
nginx 鏡像
<
https://help.aliyun.com/document_detail/97251.htm?spm=a2c4g.11186623.0.0.394867eeowMlZ6#concept-fnh-v3x-5fb>
自助建站
<
https://help.aliyun.com/document_detail/57160.html>
nginx 一服務(wù)器多站點(diǎn)
<
https://help.aliyun.com/document_detail/171730.html>
域名解析到ip
<
https://help.aliyun.com/document_detail/39793.html?spm=5176.22414175.sslink.1.2b8843ebqhka5o>
阿里云安裝git
<
https://help.aliyun.com/document_detail/153800.html?spm=5176.22414175.sslink.1.d8c9a9a5RrUCjk>
配置key,方便ssh訪問(wèn)git
<
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent>
<
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account>
我是靜態(tài)站點(diǎn),如果需要node,
部署node環(huán)境:
<
https://help.aliyun.com/document_detail/50775.html?spm=a2c4g.11186623.6.1130.73c94960HtQUPB>
登錄服務(wù)器:
<
https://help.aliyun.com/document_detail/51798.html?spm=a2c4g.11186623.2.12.18ee388dYefklc#concept-ucj-wrx-wdb>
## 域名解析設(shè)置犯了個(gè)錯(cuò)誤,*.
http://domain.com不包括
http://domain.com,所以
http://domain.com來(lái)訪問(wèn)是行不通的。
http://domain.com 的配置是@.domain.com;
走新手引導(dǎo)就好了。
——2022-04-03