1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ホスト名書き換え:AmazonLinux

Posted at

#ホスト名変更

ホスト名の変更メモ

##手順
###network

vim /etc/sysconfig/network
=====
HOSTNAME=hogehoge.internal
=====

###hosts

vim /etc/hosts
=====
HOSTNAME=hogehoge.internal
=====

###Reboot

=====
reboot
=====

##再起動しても変更しない場合

###find

find /etc/ -type f -exec grep -H hogehost {} \;

検索してホストが記載されいるファイルを見つける

###sysctl

sysctl内に記載されていた

vim /etc/sysctl.conf
======
kernel.hostname=hogehoge
======

###その他

/etc/rc.d内のスクリプトなどにも書いてあることも

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?