当前环境
debian
配置固定IP地址
- 打开
interfaces
文件
1 |
vim /etc/network/interfaces |
- 配置固定ipv4(下述示例地址)
1 2 3 4 |
iface ens33 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 |
修改DNS
- 打开
/etc/resolv.conf
文件 - 修改或添加
1 |
nameserver 8.8.8.8 |
关闭休眠
- 查看休眠
1 |
systemctl status sleep.target |
- 设置禁止休眠
1 |
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target |
本文为原创文章,版权归Aet所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ x86_64汇编学习记述一08/06
- ♥ Linux 高性能服务器编程:服务器程序规范12/04
- ♥ Linux目录的作用03/16
- ♥ Linux 线程概述&&创建03/31
- ♥ Linux_ 命令大全 Windows System03/16
- ♥ Linux 高性能服务器编程:定时器12/16