LoginSignup
1
1

More than 5 years have passed since last update.

[超初心者]サーバのHost名変更について

Last updated at Posted at 2015-05-16

小生、まだまだ新米エンジニアで、毎回、Host名の変更を忘れるので備忘録として残します。

hogeというHost名に変更する場合

一時的にホスト名を変更する場合

hostname hoge

しかし、再起動するとこの変更は無効になる。
再起動しても、Host名が変更されないように

vi /etc/sysconfig/network
HOSTNAME=hoge

変更が終わった後は、ネットワークの再起動を行います。

/etc/rc.d/init.d/network restart
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1