LoginSignup
1
0

More than 3 years have passed since last update.

EC2 Host IPが解決できないエラー解消方法

Last updated at Posted at 2019-08-05

ubuntu sudo: unable to resolve host ip-x-x-x-xエラー

エラー内容

$ sudo service apache2 graceful
sudo: unable to resolve host HOSTNAME
:
: [ok]

apache再起動しているのに何か気になるメッセージ
sudo: unable to resolve host HOSTNAMEが表示される。

解消方法

$ sudo vim /etc/hosts
...
...
127.0.1.0 localhost
127.0.1.1 HOSTNAME # ここに追加 HOSTNAMEはエラーで出ているhost名を入れる

メモ

 Ubuntuで sudo: unable to resolve host ip-x-x-x-x が出たら
まさにこの記事でした。

1
0
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
0