当前环境
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所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ Linux_ 命令大全 文档编辑03/16
- ♥ Linux 高性能服务器编程:高性能服务器架构一12/05
- ♥ Linux_ 命令大全 文件管理03/16
- ♥ Linux 进程间的通信方式和原理03/30
- ♥ Linux 信号处理二03/27
- ♥ Linux 高性能服务器编程:IP协议09/04