我正在设置 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 ×1