質問編集履歴
1
該当のソースコードを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,9 +12,77 @@
|
|
12
12
|
|
13
13
|
###該当のソースコード
|
14
14
|
```ここに言語を入力
|
15
|
-
$
|
15
|
+
mac1-no-iMac:~ mac$ vagrant global-status
|
16
|
-
```
|
17
16
|
|
17
|
+
id name provider state directory
|
18
|
+
------------------------------------------------------------------------
|
19
|
+
e52e08d default virtualbox running /Users/mac/Desktop/centOS70_64
|
20
|
+
f47e1c0 default virtualbox running /Users/mac
|
21
|
+
|
22
|
+
The above shows information about all known Vagrant environments
|
23
|
+
on this machine. This data is cached and may not be completely
|
24
|
+
up-to-date. To interact with any of the machines, you can go to
|
25
|
+
that directory and run Vagrant, or you can use the ID directly
|
26
|
+
with Vagrant commands from any directory. For example:
|
27
|
+
"vagrant destroy 1a2b3c4d"
|
28
|
+
mac1-no-iMac:~ mac$
|
29
|
+
mac1-no-iMac:~ mac$ vi vagrantfile
|
30
|
+
|
31
|
+
# The most common configuration options are documented and commented below.
|
32
|
+
# For a complete reference, please see the online documentation at
|
33
|
+
# https://docs.vagrantup.com.
|
34
|
+
|
35
|
+
# Every Vagrant development environment requires a box. You can search for
|
36
|
+
# boxes at https://atlas.hashicorp.com/search.
|
37
|
+
config.vm.box = "CentOS7_box"
|
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
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
48
|
+
|
49
|
+
# Create a private network, which allows host-only access
|
50
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
51
|
+
|
52
|
+
# Provider-specific configuration so you can fine-tune various
|
53
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
54
|
+
# Example for VirtualBox:
|
55
|
+
#
|
56
|
+
# config.vm.provider "virtualbox" do |vb|
|
57
|
+
# # Display the VirtualBox GUI when booting the machine
|
58
|
+
# vb.gui = true
|
59
|
+
#
|
60
|
+
# # Customize the amount of memory on the VM:
|
61
|
+
# vb.memory = "1024"
|
62
|
+
# end
|
63
|
+
#
|
64
|
+
# View the documentation for the provider you are using for more
|
65
|
+
# information on available options.
|
66
|
+
|
67
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
68
|
+
# such as FTP and Heroku are also available. See the documentation at
|
69
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
70
|
+
# config.push.define "atlas" do |push|
|
71
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
72
|
+
# end
|
73
|
+
|
74
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
75
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
76
|
+
# documentation for more information about their specific syntax and use.
|
77
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
78
|
+
# sudo apt-get update
|
79
|
+
# sudo apt-get install -y apache2
|
80
|
+
# SHELL
|
81
|
+
end
|
82
|
+
$ vagrant halt
|
83
|
+
|
84
|
+
-- INSERT --```
|
85
|
+
|
18
86
|
###試したこと
|
19
87
|
・$ vi vagrantfileを開いた状態でダブルクリックやドラッグしてみたらたまに文字が入力できたり削除できたりしたがなぜそうなったか不明
|
20
88
|
|