質問編集履歴
1
内容の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,3 +21,165 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
ubuntuのファイアウォール設定でポート22以外にも80等を開放したり、sshdを再起動したりしたうえで接続を試みましたが、いずれも上記のエラーメッセージが表示されました
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
###補足
|
28
|
+
|
29
|
+
Vagrantfileは以下の通りです
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
# -*- mode: ruby -*-
|
34
|
+
|
35
|
+
# vi: set ft=ruby :
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
40
|
+
|
41
|
+
# configures the configuration version (we support older styles for
|
42
|
+
|
43
|
+
# backwards compatibility). Please don't change it unless you know what
|
44
|
+
|
45
|
+
# you're doing.
|
46
|
+
|
47
|
+
Vagrant.configure("2") do |config|
|
48
|
+
|
49
|
+
# The most common configuration options are documented and commented below.
|
50
|
+
|
51
|
+
# For a complete reference, please see the online documentation at
|
52
|
+
|
53
|
+
# https://docs.vagrantup.com.
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
# Every Vagrant development environment requires a box. You can search for
|
58
|
+
|
59
|
+
# boxes at https://vagrantcloud.com/search.
|
60
|
+
|
61
|
+
config.vm.box = "ubuntu/trusty64"
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
config.vm.network "forwarded_port", guest:8000, host:8000
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
config.vm.provider :virtualbox do |vb|
|
70
|
+
|
71
|
+
vb.memory = 1024
|
72
|
+
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# Disable automatic box update checking. If you disable this, then
|
78
|
+
|
79
|
+
# boxes will only be checked for updates when the user runs
|
80
|
+
|
81
|
+
# `vagrant box outdated`. This is not recommended.
|
82
|
+
|
83
|
+
# config.vm.box_check_update = false
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
# Create a forwarded port mapping which allows access to a specific port
|
88
|
+
|
89
|
+
# within the machine from a port on the host machine. In the example below,
|
90
|
+
|
91
|
+
# accessing "localhost:8080" will access port 80 on the guest machine.
|
92
|
+
|
93
|
+
# NOTE: This will enable public access to the opened port
|
94
|
+
|
95
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
# Create a forwarded port mapping which allows access to a specific port
|
100
|
+
|
101
|
+
# within the machine from a port on the host machine and only allow access
|
102
|
+
|
103
|
+
# via 127.0.0.1 to disable public access
|
104
|
+
|
105
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
# Create a private network, which allows host-only access to the machine
|
110
|
+
|
111
|
+
# using a specific IP.
|
112
|
+
|
113
|
+
# config.vm.network "private_network", ip: "192.168.33.10"
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# Create a public network, which generally matched to bridged network.
|
118
|
+
|
119
|
+
# Bridged networks make the machine appear as another physical device on
|
120
|
+
|
121
|
+
# your network.
|
122
|
+
|
123
|
+
# config.vm.network "public_network"
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# Share an additional folder to the guest VM. The first argument is
|
128
|
+
|
129
|
+
# the path on the host to the actual folder. The second argument is
|
130
|
+
|
131
|
+
# the path on the guest to mount the folder. And the optional third
|
132
|
+
|
133
|
+
# argument is a set of non-required options.
|
134
|
+
|
135
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
# Provider-specific configuration so you can fine-tune various
|
140
|
+
|
141
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
142
|
+
|
143
|
+
# Example for VirtualBox:
|
144
|
+
|
145
|
+
#
|
146
|
+
|
147
|
+
# config.vm.provider "virtualbox" do |vb|
|
148
|
+
|
149
|
+
# # Display the VirtualBox GUI when booting the machine
|
150
|
+
|
151
|
+
# vb.gui = true
|
152
|
+
|
153
|
+
#
|
154
|
+
|
155
|
+
# # Customize the amount of memory on the VM:
|
156
|
+
|
157
|
+
# vb.memory = "1024"
|
158
|
+
|
159
|
+
# end
|
160
|
+
|
161
|
+
#
|
162
|
+
|
163
|
+
# View the documentation for the provider you are using for more
|
164
|
+
|
165
|
+
# information on available options.
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
170
|
+
|
171
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
172
|
+
|
173
|
+
# documentation for more information about their specific syntax and use.
|
174
|
+
|
175
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
176
|
+
|
177
|
+
# apt-get update
|
178
|
+
|
179
|
+
# apt-get install -y apache2
|
180
|
+
|
181
|
+
# SHELL
|
182
|
+
|
183
|
+
end
|
184
|
+
|
185
|
+
```
|