0
0

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.

[VirtualBox]vagrantでローカル開発環境を構築する

0
Last updated at Posted at 2020-07-11

概要

VirtualBox & Vagrantでローカル開発環境を立ち上げる。

環境

macOS Mojave 10.14.6
Vagrant 2.2.6
VirtualBox 6.0.14

※Windowsでもほぼ同じだがSSH接続はコマンドプロンプトからではなく、ターミナルソフトを使うべし

手順

以下からvagrantfileを探す。
https://app.vagrantup.com/boxes/search
※どれがいいかわからなければとりあえずBentoから任意のOSを選べばよい(と思っている)

使うvagrantfileが決まったら「New」と書かれたタブの下の「vagrant init〜」の行を
仮想環境を構築するディレクトリにコピペする。

・仮想マシンの立ち上げ(&起動)
<dir>$ vagrant up

・仮想マシンにssh接続
<dir>$ vagrant ssh

・sshから抜ける
ctrl + D

・仮想マシンをシャットダウン
<dir>$ vagrant halt

以上。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?