質問編集履歴

1

追記

2019/09/27 08:11

投稿

TAIniko
TAIniko

スコア32

test CHANGED
File without changes
test CHANGED
@@ -185,3 +185,159 @@
185
185
  vagrant 2.2.5
186
186
 
187
187
  よろしくお願いします。
188
+
189
+
190
+
191
+ ###追記
192
+
193
+ ```vagrantfile
194
+
195
+ # -*- mode: ruby -*-
196
+
197
+ # vi: set ft=ruby :
198
+
199
+
200
+
201
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
202
+
203
+ # configures the configuration version (we support older styles for
204
+
205
+ # backwards compatibility). Please don't change it unless you know what
206
+
207
+ # you're doing.
208
+
209
+ Vagrant.configure("2") do |config|
210
+
211
+ # The most common configuration options are documented and commented below.
212
+
213
+ # For a complete reference, please see the online documentation at
214
+
215
+ # https://docs.vagrantup.com.
216
+
217
+
218
+
219
+ # Every Vagrant development environment requires a box. You can search for
220
+
221
+ # boxes at https://vagrantcloud.com/search.
222
+
223
+ config.vm.box = "bento\centos-6.8"
224
+
225
+
226
+
227
+ # Disable automatic box update checking. If you disable this, then
228
+
229
+ # boxes will only be checked for updates when the user runs
230
+
231
+ # `vagrant box outdated`. This is not recommended.
232
+
233
+ # config.vm.box_check_update = false
234
+
235
+
236
+
237
+ # Create a forwarded port mapping which allows access to a specific port
238
+
239
+ # within the machine from a port on the host machine. In the example below,
240
+
241
+ # accessing "localhost:8080" will access port 80 on the guest machine.
242
+
243
+ # NOTE: This will enable public access to the opened port
244
+
245
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
246
+
247
+
248
+
249
+ # Create a forwarded port mapping which allows access to a specific port
250
+
251
+ # within the machine from a port on the host machine and only allow access
252
+
253
+ # via 127.0.0.1 to disable public access
254
+
255
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
256
+
257
+
258
+
259
+ # Create a private network, which allows host-only access to the machine
260
+
261
+ # using a specific IP.
262
+
263
+ config.vm.network "private_network", ip: "192.168.33.10"
264
+
265
+
266
+
267
+ # Create a public network, which generally matched to bridged network.
268
+
269
+ # Bridged networks make the machine appear as another physical device on
270
+
271
+ # your network.
272
+
273
+ # config.vm.network "public_network"
274
+
275
+
276
+
277
+ # Share an additional folder to the guest VM. The first argument is
278
+
279
+ # the path on the host to the actual folder. The second argument is
280
+
281
+ # the path on the guest to mount the folder. And the optional third
282
+
283
+ # argument is a set of non-required options.
284
+
285
+ # config.vm.synced_folder "../data", "/vagrant_data"
286
+
287
+
288
+
289
+ # Provider-specific configuration so you can fine-tune various
290
+
291
+ # backing providers for Vagrant. These expose provider-specific options.
292
+
293
+ # Example for VirtualBox:
294
+
295
+ #
296
+
297
+ # config.vm.provider "virtualbox" do |vb|
298
+
299
+ # # Display the VirtualBox GUI when booting the machine
300
+
301
+ # vb.gui = true
302
+
303
+ #
304
+
305
+ # # Customize the amount of memory on the VM:
306
+
307
+ # vb.memory = "1024"
308
+
309
+ # end
310
+
311
+ #
312
+
313
+ # View the documentation for the provider you are using for more
314
+
315
+ # information on available options.
316
+
317
+
318
+
319
+ # Enable provisioning with a shell script. Additional provisioners such as
320
+
321
+ # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
322
+
323
+ # documentation for more information about their specific syntax and use.
324
+
325
+ # config.vm.provision "shell", inline: <<-SHELL
326
+
327
+ # apt-get update
328
+
329
+ # apt-get install -y apache2
330
+
331
+ # SHELL
332
+
333
+ end
334
+
335
+ ```
336
+
337
+
338
+
339
+ config.vm.network "private_network", ip: "192.168.33.10"
340
+
341
+ この部分を#を消してコメントではなくした以外いじってません。
342
+
343
+ よろしくお願いします。