質問編集履歴
1
内容の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,4 +9,85 @@
|
|
9
9
|
```
|
10
10
|
### 試したこと
|
11
11
|
|
12
|
-
ubuntuのファイアウォール設定でポート22以外にも80等を開放したり、sshdを再起動したりしたうえで接続を試みましたが、いずれも上記のエラーメッセージが表示されました
|
12
|
+
ubuntuのファイアウォール設定でポート22以外にも80等を開放したり、sshdを再起動したりしたうえで接続を試みましたが、いずれも上記のエラーメッセージが表示されました
|
13
|
+
|
14
|
+
###補足
|
15
|
+
Vagrantfileは以下の通りです
|
16
|
+
```
|
17
|
+
# -*- mode: ruby -*-
|
18
|
+
# vi: set ft=ruby :
|
19
|
+
|
20
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
21
|
+
# configures the configuration version (we support older styles for
|
22
|
+
# backwards compatibility). Please don't change it unless you know what
|
23
|
+
# you're doing.
|
24
|
+
Vagrant.configure("2") do |config|
|
25
|
+
# The most common configuration options are documented and commented below.
|
26
|
+
# For a complete reference, please see the online documentation at
|
27
|
+
# https://docs.vagrantup.com.
|
28
|
+
|
29
|
+
# Every Vagrant development environment requires a box. You can search for
|
30
|
+
# boxes at https://vagrantcloud.com/search.
|
31
|
+
config.vm.box = "ubuntu/trusty64"
|
32
|
+
|
33
|
+
config.vm.network "forwarded_port", guest:8000, host:8000
|
34
|
+
|
35
|
+
config.vm.provider :virtualbox do |vb|
|
36
|
+
vb.memory = 1024
|
37
|
+
end
|
38
|
+
|
39
|
+
# Disable automatic box update checking. If you disable this, then
|
40
|
+
# boxes will only be checked for updates when the user runs
|
41
|
+
# `vagrant box outdated`. This is not recommended.
|
42
|
+
# config.vm.box_check_update = false
|
43
|
+
|
44
|
+
# Create a forwarded port mapping which allows access to a specific port
|
45
|
+
# within the machine from a port on the host machine. In the example below,
|
46
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
47
|
+
# NOTE: This will enable public access to the opened port
|
48
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
49
|
+
|
50
|
+
# Create a forwarded port mapping which allows access to a specific port
|
51
|
+
# within the machine from a port on the host machine and only allow access
|
52
|
+
# via 127.0.0.1 to disable public access
|
53
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
54
|
+
|
55
|
+
# Create a private network, which allows host-only access to the machine
|
56
|
+
# using a specific IP.
|
57
|
+
# config.vm.network "private_network", ip: "192.168.33.10"
|
58
|
+
|
59
|
+
# Create a public network, which generally matched to bridged network.
|
60
|
+
# Bridged networks make the machine appear as another physical device on
|
61
|
+
# your network.
|
62
|
+
# config.vm.network "public_network"
|
63
|
+
|
64
|
+
# Share an additional folder to the guest VM. The first argument is
|
65
|
+
# the path on the host to the actual folder. The second argument is
|
66
|
+
# the path on the guest to mount the folder. And the optional third
|
67
|
+
# argument is a set of non-required options.
|
68
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
69
|
+
|
70
|
+
# Provider-specific configuration so you can fine-tune various
|
71
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
72
|
+
# Example for VirtualBox:
|
73
|
+
#
|
74
|
+
# config.vm.provider "virtualbox" do |vb|
|
75
|
+
# # Display the VirtualBox GUI when booting the machine
|
76
|
+
# vb.gui = true
|
77
|
+
#
|
78
|
+
# # Customize the amount of memory on the VM:
|
79
|
+
# vb.memory = "1024"
|
80
|
+
# end
|
81
|
+
#
|
82
|
+
# View the documentation for the provider you are using for more
|
83
|
+
# information on available options.
|
84
|
+
|
85
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
86
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
87
|
+
# documentation for more information about their specific syntax and use.
|
88
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
89
|
+
# apt-get update
|
90
|
+
# apt-get install -y apache2
|
91
|
+
# SHELL
|
92
|
+
end
|
93
|
+
```
|