备忘录 计算机基础操作 2024-04-29 139字 计算机基础操作 Linux 网络相关 修改网络为静态IP/DHCP。 修改/etc/network/interfaces文件。 静态IP: iface <interface_name> inet static address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.1 DHCP: iface <interface_name> inet dhcp 修改后重启接口:systemctl restart networking.service或/etc/init.d/networking restart。 开发环境配置VSCode