Sedebian是基于Debian的发行版,其配置方法与Debian高度一致,以下是关键配置步骤:
静态IP配置
编辑 /etc/network/interfaces
文件,添加如下内容(以eth0为例):
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
保存后重启网络:sudo systemctl restart networking
。
动态IP(DHCP)配置
编辑 /etc/network/interfaces
,添加:
auto eth0
iface eth0 inet dhcp
重启网络生效。
无线网络配置
安装 wpasupplicant
:sudo apt install wpasupplicant
,编辑 /etc/network/interfaces
:
auto wlan0
iface wlan0 inet static
address 192.168.1.120
netmask 255.255.255.0
gateway 192.168.1.1
wpa-ssid "your_SSID"
wpa-psk "your_password"
同时创建 /etc/wpa_supplicant/wpa_supplicant.conf
文件配置SSID和密码。
sudo apt update
。sudo apt install package_name
(如 sudo apt install nginx
)。sudo apt install -f
。sudo apt install nano vim git curl wget net-tools htop
```。
systemctl
管理服务(如启动/停止服务):sudo systemctl start nginx
sudo systemctl enable nginx
```。
ip addr
确认网卡名称。以上配置基于Debian标准流程,适用于Sedebian系统。