Closed. This question is off-topic. It is not currently accepting answers. Learn more
想改进这个问题吗?Update the question所以堆栈溢出的值小于aa>。
四年前关闭。
如何使用新主机名设置新的本地主机?
[main@evghost ~]$ host evghost
Host evghost not found: 3(NXDOMAIN)

[main@evghost ~]$ host localhost
localhost has address 127.0.0.1

[main@evghost ~]$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost
::1             localhost.localdomain   localhost

# End of file

我只想有一个名为evghost的新本地主机

最佳答案

也许 吧:

127.0.0.1 evghost evghost

你应该把你的问题说得更确切一点。
那你就试试
localhost evghost evghost //
localhost evghost.localdomain evghost //
localhost evghost //
127.0.0.1 evghost

关于linux - 如何添加新的本地主机? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33283487/

10-13 09:46