||
Linux中安装MPI后,运行lamboot,出现如下情形,该如何处理?
Could not resolve the hostname "localhost" that was in the host file.
Things to check:
- is "localhost" in /etc/hosts? try "grep localhost /etc/hosts"
- is "localhost" resolvable by DNS (or some other naming service)? try "ping localhost" or "dig localhost" or "nslookup localhost"
以root用户打开文件/etc/hosts,在其中添加如下一句:
127.0.0.1 localhost.localdomain localhost
退出root用户,以普通用户登陆,输入命令:ping localhost
如果出现如下结果,则表明问题已解决。
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64 time=0.031 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.033 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.034 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=4 ttl=64 time=0.039 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=5 ttl=64 time=0.033 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=6 ttl=64 time=0.038 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=7 ttl=64 time=0.054 ms
……
再运行lamboot命令,则可实现并行计算命令。
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-21 20:31
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社