我的主机名是localhost
,通过hostname
命令报告,并在终端提示下root@localhost:~#
。
如何将其更改为mismis.com
带有mismis
别名?以及什么是正确的配置。
在阅读了一些网上文章后,我感到困惑。
我的/ etc / hosts:
127.0.0.1 localhost
127.0.1.1 srv345.myweb.com srv345
178.162.231.61 janstone.mismis.com janstone
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
尝试在终端中运行以下命令。
sudo sysctl kernel.hostname=mismis.com
/ etc / hosts:
127.0.0.1 localhost
127.0.1.1 mismis.com mismis srv345.myweb.com srv345
178.162.231.61 janstone.mismis.com janstone
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句