NanoBioMembrane分享 http://blog.sciencenet.cn/u/linxubo Enjoy Science, Enjoy Life!

博文

Linux之lamboot

已有 5845 次阅读 2010-4-19 19:08 |个人分类:共享|系统分类:科研笔记

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命令,则可实现并行计算命令。



https://blog.sciencenet.cn/blog-44565-313798.html

上一篇:安装xmgrace
下一篇:第一作者讲坛……nice
收藏 IP: .*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-10-4 11:34

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部