選擇主流云服務(wù)商(如騰訊云、阿里云)注冊并購買云服務(wù)器實例。推薦配置:1核CPU/2GB內(nèi)存/50GB存儲,系統(tǒng)建議選擇Ubuntu 22.04 LTS或CentOS 8。創(chuàng)建實例時需開放HTTP(80)和HTTPS(443)端口。
使用SSH客戶端連接服務(wù)器:
ssh root@服務(wù)器公網(wǎng)IP
安裝Web服務(wù)器(二選一):
sudo apt install apache2
sudo apt install nginx
網(wǎng)站文件默認(rèn)存放路徑為/var/www/html
。
推薦三種傳輸方式:
scp -r 本地目錄 root@IP:/目標(biāo)路徑
在云服務(wù)商控制臺完成域名解析后,通過Let’s Encrypt申請免費SSL證書:
參數(shù) | 值 |
---|---|
證書類型 | DV SSL |
驗證方式 | DNS驗證 |
有效期 | 90天 |
配置完成后需重啟Web服務(wù)。
通過瀏覽器訪問公網(wǎng)IP或域名驗證部署結(jié)果。建議配置:
2025-03-12
廣州蘇營貿(mào)易有限公司專注海外推廣十年,是谷歌推廣.Facebook廣告核心全球合作伙伴,我們精英化的技術(shù)團(tuán)隊為企業(yè)提供谷歌海外推廣+外貿(mào)網(wǎng)站建設(shè)+網(wǎng)站維護(hù)運營+Google SEO優(yōu)化+社交營銷為您提供一站式海外營銷服務(wù)。
We and selected third parties use cookies or similar technologies for technical purposes and, with your consent, for other purposes as specified in the cookie policy.
You can consent to the use of such technologies by closing this notice, by interacting with any link or button outside of this notice or by continuing to browse otherwise.