跳轉到內容
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 Linux完成後,SSH無法連入,可能網路卡無法配置

精選回覆

發表於

-------------------------------------------------------------
DD Debian 12完成後,SSH無法連入,可能網路卡無法配置?
-------------------------------------------------------------

這需要主機商有提供noVNC,可藉由noVNC並用root帳號登入

 

DD完成後,無法SSH登入,如果是IP設置跑掉的情況,要自己修改靜態IP

如果DD前沒記下,只能Reinstall後,記下自己的VPS IP配置,再DD一次

Debian網路卡配置在 /etc/network/interfaces

 

vi /etc/network/interfaces

這些設置參考用,每一家主機商的配置都不一樣

# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 47.1.1.18
gateway 47.1.1.255
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4

 

ESC儲存並離開
:wq

 

重開機
reboot

 

查看公網IP有無設置上
ip addr
 

 

-----------------
關閉IPv6
-----------------

DD之後,好像IPv6跑出來了,還是關閉IPv6


關閉IPv6,修改
vi /etc/sysctl.conf

 

底下加入
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

 

ESC儲存並離開
:wq

 

重開機
reboot


再次加載/etc/sysctl.conf的設置
sysctl -p
 

本文章最後於,由Jack編輯

建立帳號或登入後發表意見

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.