Skip to content
View in the app

A better way to browse. Learn more.

PHP论坛人

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DD完成後,利用noVNC登入並重新配置網路卡

Featured Replies

DD完成後,不管SSH能否直接連線,一律建議重新配置網路卡

請透過noVNC遠端控制台登入

帳號為 root,密碼為 DD時你的自訂密碼

進行以下設定

----------------------------------------------

重新配置VPS的網路卡名稱與IP

----------------------------------------------

在上一個步驟中

已提前記下 網路卡名稱 與 IP,例如:

網路卡名稱:eth0

IP位址 與 子網路遮罩:172.17.0.163/18

Gateway (閘道):172.17.63.253

DNS:100.100.2.136

DNS:100.100.2.138

---------------------------------

確認新系統的網路卡名稱

---------------------------------

ip link show

networkctl list

說明:新系統的網路卡名稱可能與DD前不同,例如從 eth0 變成 ens3,請以實際輸出為準

-------------------------

確認目前網路狀態

-------------------------

ip addr

ip route

networkctl list

ip addr show eth0

ip route show

---------------------------------------------

使用 systemd-networkd 配置 靜態IP

---------------------------------------------

建立

vi /etc/systemd/network/10-eth.network

貼上內容 (請根據你之前記下的實際資訊)

若主機商同時提供 私有IP/公網IP,優先設定私有IP

注意:Address= IP 後面必須包含子網路遮罩(如 /18、/24),不可省略

[Match]

Name=eth0

[Network]

Address=172.17.0.173/18

Gateway=172.17.63.253

DNS=100.100.2.136

DNS=100.100.2.138

儲存檔案並離開vi編輯器

按 Esc,輸入 :wq,按 Enter

-----------------------

啟用並重啟

-----------------------

啟用並重啟

systemctl enable systemd-networkd

systemctl restart systemd-networkd

確認網路狀態

networkctl status

ip addr show eth0

重開機

reboot

----------------------------------------

SSH連線正常後,使用SSH繼續操作

----------------------------------------

到此,應可SSH連線並登入

-----------------------

重開機後,再測試

-----------------------

確認為 routable 狀態

networkctl list

如果 networkctl list 沒有顯示 routable,後續服務容易出現奇怪問題,請先排查網路再繼續

測試外網連線

ping -c 4 8.8.8.8

確認 出口IP 為 公網IP

curl -4 ifconfig.me

---------------------

驗證系統版本

---------------------

驗證系統版本,確認為 Debian 13 (trixie)

cat /etc/os-release

-----------------------

立即修改 root 密碼

-----------------------

立即修改root密碼

passwd

---------------

更新系統

---------------

apt update && apt upgrade -y

apt autoremove -y && apt autoclean

--------------------------------------

設定防火牆,僅開放必要Port

--------------------------------------

若日後更換IP導致被防火牆鎖住,可透過noVNC遠端控制台修改防火牆規則

Edited by Jack

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.