关于在 Ubuntu Server 上设置 hostname,下面两种做法,你会用哪种呢?原因是?
1. 在 /etc/hostname 中放 FQDN,比如 www.v2ex.com
2. 在 /etc/hostname 中只放 hostname,比如 www,然后在 /etc/resolvconf/resolv.conf.d/head 中加入 search v2ex.com
1. 在 /etc/hostname 中放 FQDN,比如 www.v2ex.com
2. 在 /etc/hostname 中只放 hostname,比如 www,然后在 /etc/resolvconf/resolv.conf.d/head 中加入 search v2ex.com