相关疑难解决方法(0)

/etc/hosts 中是否包含域名?

我正在设置 CentOS 节点的 VMWare 集群。在机器后包含域名是最佳做法吗?将其排除在外有哪些潜在问题?域是使配置复杂化还是简化了配置?

例如,如果我的节点在192.168.1.93,我应该/etc/hosts

127.0.0.1 localhost.localdomain localhost
Run Code Online (Sandbox Code Playgroud)

127.0.0.1 localhost.cluster localhost
192.168.1.93 computernode1.cluster computenode1
Run Code Online (Sandbox Code Playgroud)

或者

127.0.0.1 localhost
192.168.1.93 computenode1
Run Code Online (Sandbox Code Playgroud)

或者

#127.0.0.1 localhost
192.168.1.93 computenode1
Run Code Online (Sandbox Code Playgroud)

或者

192.168.1.93 localhost
192.168.1.93 computenode1
Run Code Online (Sandbox Code Playgroud)

networking

20
推荐指数
1
解决办法
4万
查看次数

标签 统计

networking ×1