unix – 无法连接到beaglebone.local
当我用以太网电缆将它插入新网络时,我需要知道如何使用SSH连接到beaglebone(或beagleboard):
$ssh root@beaglebone.local 到目前为止,我只能这样访问它,如果我知道IP地址: $ssh root@<ip_address> 但我并不总是知道新网络上的主板IP地址,所以我希望用以下名称来访问它:beaglebone.local. 现在,当我尝试这样做时,我收到此错误: "ssh: Could not resolve hostname beaglebone.local: nodename nor servname provided,or not known" 我检查了主机名和托管文件,并在beaglebone的主机上添加了“127.0.0.1 beaglebone”,但不确定我还能做什么? # cat /etc/hostname beaglebone # cat /etc/hosts 127.0.0.1 localhost.localdomain localhost 127.0.0.1 beaglebone 解决方法
我在Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.04.22.img.xz上运行我的beaglebone时遇到了类似的问题.在此分发中,“beaglebone.local”应在系统引导后出现在网络上.
重启后大约50%的时间,“beaglebone.local”不会出现在网络上(尽管骨骼可以通过IP地址获得).发生这种情况时,“systemctl status avahi-daemon.service”显示avahi-daemon失败并显示“退出代码255”.有趣的是,随后的“systemctl start avaihi-daemon.service”将始终成功,并且“beaglebone.local”将出现在网络上. 此外,“journalctl | grep avahi”返回了一条消息,上面写着“守护进程已经运行PID NNN”. 所以,我通过在/ lib / systemd / system / avahi-daemon的[Service]部分添加“ExecStartPre = / bin / rm -f / var / run / avahi-daemon / pid”这一行来“解决”问题.服务.通过此添加,“beaglebone.local”现在在网络上100%重新启动. 我说“固定”(即在引号中),因为我无法追踪离开流浪的avahi pid文件的根本原因,因此没有真正的修复. – 弗兰克 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |