在Linode上建立/遷移網站參考步驟 借由AI的幫忙,相關的指令均可由AI幫忙產生,故我主要記錄需要完成的任務及目標。 安裝作業系統及簡易資安管控 1.安裝作業系統/選擇作業系統映像檔 2.調整SWAP大小為記憶體2倍(預設只有507900k,將其調整為2048M) 3.設定時區為系統管理者所在時區(Asia/Taipei) 4.安裝防火牆ufw,設定開機自動啟動,允入ssh、http、https,並記錄連線log 5.安裝fail2ban防止ssh暴力密碼破解攻擊 6.設定連線時間30分鐘逾時自動斷線 7.設定指令別名(alias) 8.安裝sudo 9.新增一個管理者帳號,並設定這個管理者帳號可以執行sudo 10.設定只有這個管理者帳號可以ssh遠端登入,並拒絕root帳號可以ssh登入 11.設定主機名稱 12.調整kernel參數(net.core.rmem_max、net.core.wmem_max、net.
Ghost安裝 在Linode上安裝Self-hosted Ghost,作業系統是Debian 13 更新系統 sudo apt update sudo apt upgrade -y 安裝 nginx sudo apt install nginx -y 防火牆 sudo ufw allow 'Nginx Full' sudo ufw reload 安裝 Node.js 22 sudo apt install -y ca-certificates curl gnupg sudo mkdir -p /etc/apt/keyrings curl
News Coming soon This is 安道生隨手記, a brand new site by Andowson Chang that's just getting started. Things will be up and running here shortly, but you can subscribe in the meantime if you'd like to stay up to date and receive emails when new content is published!