Jump 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.

關閉IPv6

Featured Replies

有些情況下,做論壇只用IPv4,而不用IPv6,所以關閉IPv6,另一方面的原因是沒寫IPv6的防火牆規則

真正關閉IPv6,有可能要寫入到rc.local

確認網路卡名稱

ip link

如果顯示 ens5 或類似的名稱

就將這一行 sysctl -w net.ipv6.conf.ens5.disable_ipv6=1

寫入到 /etc/sysctl.d/99-disable-ipv6.conf

建立一個檔案並修改

vi /etc/sysctl.d/99-disable-ipv6.conf

複製貼上這幾行,視情況將 ens5 修改為你的網路卡名稱

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

sysctl -w net.ipv6.conf.ens5.disable_ipv6=1

ESC儲存並離開

:wq

重開機

reboot

檢查網路卡是否還有 IPv6,不應該看到 inet6

ifconfig -a | grep inet6

如果還能看到 inet6,就將底下這一行,寫入到rc.local

sysctl -w net.ipv6.conf.ens5.disable_ipv6=1

將上面這一行,寫入到rc.local

vi /etc/rc.local

ESC儲存並離開

:wq

重開機

reboot

檢查網路卡是否還有 IPv6,不應該看到 inet6

ifconfig -a | grep inet6

這時應該看不到 inet6

既然要寫入到rc.local,才能關掉IPv6,那麼 99-disable-ipv6.conf 裡面的

這一行 sysctl -w net.ipv6.conf.ens5.disable_ipv6=1 刪除掉

vi /etc/sysctl.d/99-disable-ipv6.conf

ESC儲存並離開

:wq

重開機

reboot

最後確認真的不會看到 inet6,真的關掉IPv6

ifconfig -a | grep inet6

Edited by Jack

Create an account or sign in to comment

Account

Navigation

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.