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

miniKFのインストール(mac)

Last updated at Posted at 2020-05-23

前提

macOSにminiKFをいれたので、簡単なメモを残します。基本的には公式ドキュメント通り(macOS用)にいきます。

公式ドキュメント

1. VagrantとVirtual Boxのインストール

公式ドキュメント1にあるように、上記2つをインストールする。ダウンロードして、ポチポチ進めていくだけなので詳細は省略。Vagrantが入ったかどうかは以下のコマンドで確認。

terminal}
$ which vagrant
/usr/local/bin/vagrant

2. 適当なディレクトリを作成して、miniKFをインストール

公式ドキュメント2にあるコマンドを順番に実行していく。

terminal}
$ mkdir -p {適当なディレクトリ}
$ cd {適当なディレクトリ}
terminal}
$ vagrant init arrikto/minikf
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.}
terminal}
# 私の環境で30分ぐらいかかりました、
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'arrikto/minikf' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'arrikto/minikf'
    default: URL: https://vagrantcloud.com/arrikto/minikf
==> default: Adding box 'arrikto/minikf' (v20200305.1.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/arrikto/boxes/minikf/versions/20200305.1.0/providers/virtualbox.box
Download redirected to host: storage.googleapis.com
==> default: Successfully added box 'arrikto/minikf' (v20200305.1.0) for 'virtualbox'!
Plugin 'vagrant-persistent-storage' is missing, running `vagrant plugin install vagrant-persistent-storage`...
Installing the 'vagrant-persistent-storage --version '>= 0.0.47'' plugin. This can take a few minutes...
Fetching vagrant-persistent-storage-0.0.48.gem
Installed the plugin 'vagrant-persistent-storage (0.0.48)'!
Plugin installed successfully, please re-run `vagrant up`.

please re-run vagrant upと表示されているので、再度実行。

terminal}
# 5分程度かかりました
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...

...(長いので、途中を省略します)...

==> default: Machine 'default' has a post `vagrant up` message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default:     Welcome to MiniKF!
==> default:     Visit http://10.10.10.10/ to get started.
==> default:

3. 起動確認

以下のコマンドで作成した適当なディレクトリ名が表示されているかで、起動確認をとることができる。

terminal}
$ vagrant global-status
id       name    provider   state   directory
------------------------------------------------------------------------
5a28c3e  default virtualbox running {作成した適当なディレクトリ名}

また、10.10.10.10にアクセスして確認することも可能。私の環境では、以下のページが表示された。

sample.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?