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

お名前.comのvpsの初期設定でリポジトリにつながらない。

Last updated at Posted at 2016-04-04

初期費用が無料だったりして安かったのでお名前.comのvpsを借りてみた。

osはcentos7.1を選択
サーバー会社の管理画面でcentos7.1を選んだあとosの再インストール。

インストールは無事に終わったのでコンソールからログイン

とりあえず

yum -y update

と、したところリポジトリを読み込めないとエラーが出た。
ググってみたところリポジトリのミラーを近い地域の物にすると直ることがあるとのことなので、理研のものにして試してみたがダメ。

そもそもネットワークがつながっていないのではと思い

ip addres

確認したところnicのipアドレスが表示されず

nmcli connection

nicの確認をしてみるとdeviceの欄がバッチリ動いてない

nmcli connection up eth1

でnicをアクティブにした後にネットワークの接続を確認

nmcli connection

今度はokなので

再度

yum -y update

無事アップデートされた。

あとがき

今回設定の仕方をサラッと読んだだけでvpsを試してみたらいきなりつまづいてしまいました。
pcのセットアップでネットワークインタフェースを自分でオンにした経験がなかったので気がつかなかった...。
もしかしたら標準osはもう少し初心者向けに設定されていたりするんだろうか。

参照

【yum】yumが動かないときの簡易対処方法集(IOError、Trying other mirror、Determining fastest mirrors、フリーズ等)
http://www.unix-power.net/centos7/network.html

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