linux: 未知的名称或服务
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
查资料后发现是hostname与/etc/hosts中的不对应。
解决方法:
先执行hostname命令看一下主机名,然后进/etc/hosts中修改任一行中的localhost为hostname显示的主机名。例如:
我执行hostname显示Slave1,进/etc/hosts,显示
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
修改为:
127.0.0.1 localhost localhost.localdomain Slave1 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6




A beautiful web dashboard for Linux
最近提交(Master分支:19 天前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)