telnet报错:Name or service not known
时间: 2023-10-21 07:54:31 浏览: 574
telnet报错"Name or service not known"是由于/etc/sysconfig/network和/etc/hosts文件中的主机名不对应所造成的。为了解决这个问题,你需要打开/etc/hosts文件并将其中的IP地址主机名与/etc/sysconfig/network文件中的主机名相对应。具体做法是在/etc/hosts文件中将"127.0.0.1"后面的"localhost.localdomain localhost"改成与/etc/sysconfig/network中一样的主机名。你可以使用vi编辑器打开/etc/hosts文件,找到相应行进行修改。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [telnet localhost name or service not know 问题解决](https://blog.csdn.net/SahenZhang/article/details/8181685)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [telnet报错:Name or service not known: Illegal seek](https://blog.csdn.net/herobox/article/details/7420095)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文