Ubuntu服务器断网问题解决
2024-10-19 01:24:28
原因:dns服务器没有了配置信息。
配置dns服务器
ubuntu 的dns服务器信息,放在 /etc/resolv.conf中,
添加dns服务器地址,如192.168.1.1,则在上述文件中加入
nameserver 192.168.1.1
root@hbg:/etc/network# cd ..
root@hbg:/etc# cat resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1 这一行
root@hbg:/etc# cat resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1 这一行
最新文章
- FWaaS 实践: 允许 ssh - 每天5分钟玩转 OpenStack(119)
- nodejs获取当前url和url参数值
- python3读取文件
- latex 三线表
- Delphi反汇编内部字符串处理函数/过程不完全列表
- linux-阿里云ECS部署PPTP(centos)
- (经典)tcp粘包分析
- Painting Storages(ZOJ)
- #include <;sstream>;
- shell 分词
- GitHub中最强大的iOS Notifications和AlertView框架,没有之一!
- JVM学习之-栈
- 其他信息: 未能加载文件或程序集“file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll”或它的某一个依赖
- xdebug配置
- MYSQL之IFNULL
- C# 对密码等数据进行对称性加密解密
- Linux_CentOS-服务器搭建 <;三>; 补充
- Js 字符串的三大操作
- Java学习04 (第一遍)
- (转)Python3异常-AttributeError: module &#39;sys&#39; has no attribute &#39;setdefaultencoding