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.

Fedora CoreOSのホスト名変更

Last updated at Posted at 2020-03-31

AWS EC2
Fedora CoreOS stable 31.20200310.3.0

ホスト名変更して、再起動やEC2のインスタンス立ち上げ直しで変更した設定のままであることまで確認

hostname

# コマンド実行結果
ip-172-31-24-40

# ホスト名変更
sudo hostnamectl set-hostname test-server

hostname

# コマンド実行結果
test-server

# sudo systemctl reboot後
hostname

# コマンド実行結果
test-server

# EC2のインスタンス停止→起動後
hostname

# コマンド実行結果
test-server
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?