2016-10-15 【Linux】 ホスト名を指定/変更するには... Linux 手順概要 [1] /etc/hosts を編集する [2] ネットワークをリスタート 例:127.0.0.1にホスト名「samplehost」を適用する [1] /etc/hosts を編集する sudo vi /etc/hosts ~~~~ 127.0.0.1 localhost ・・・略・・・samplehost ~~~~ [2] ネットワークをリスタート /etc/rc.d/init.d/network restart 参考文献 http://pentan.info/server/linux/hostname.html https://yamazon.wordpress.com/2009/12/05/etchosts-%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E5%A4%89%E6%9B%B4%E3%82%92%E5%8F%8D%E6%98%A0%E3%81%95%E3%81%9B%E3%82%8B/