当前环境
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所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ cef:任务、IPC、网络相关04/30
- ♥ Linux 高性能服务器编程:网络基础编程二11/28
- ♥ gcc/g++编译器03/21
- ♥ Linux 内核空间&&用户空间03/30
- ♥ Linux 高性能服务器编程:Libevent12/19
- ♥ 51CTO:Linux C++网络编程一08/13