LoginSignup
0
0

More than 3 years have passed since last update.

[初心者]Vagrantで構築した仮想環境にログインする手順

Posted at

1、ターミナルを起動

まずは下記のように出てくる

ユーザー名$ 

  
 

2、現在のディレクトリから移動する
  今回はhome/MyVagrant/MyCentOS 内に"Vagrantfile"があるのでそこまで移動する。

~$ cd      //ホームディレクトリに戻る(場所の確認)
~$ cd MyVagrant
~$ cd MyCentOS   //MyCentOSまで移動

pc名:MyCentOS ユーザー名$  //←と出てくればOK

  
  
3、仮想環境を起動、ログインする

~$ vagrant up
~$ vagrant ssh

この2つを実行後下記のように表示されていればログイン完了!

[vagrant@localhost ~]$
0
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
0
0