這是本文件的舊版!
Debian 10 相關設定整理
網路 IP 設定
- 參考
- Exp. 更改 IP 設定為 10.20.0.34
sudo vi /etc/network/interfaces
: allow-hotplug ens18 iface ens18 inet static addresses 10.20.0.34/24 gateway 10.20.0.254 dns-nameserver 8.8.8.8
修改之後 reboot 重新開機才會正常生效, 之前的
/etc/init.d/networking restart
執行後 ens18 的 IP 設定會消失
更改 hostname
- 執行 hostnamectl 設定 hostname Exp. 更改為 pve-devops1
hostnamectl set-hostname pve-devops1
建立使用者命令
- Exp. 建立 localadmin
useradd -s /bin/bash -d /home/localadmin/ -m -G sudo localadmin passwd localadmin