質問編集履歴
1
該当のソースコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,9 +26,145 @@
|
|
26
26
|
|
27
27
|
```ここに言語を入力
|
28
28
|
|
29
|
-
$ v
|
29
|
+
mac1-no-iMac:~ mac$ vagrant global-status
|
30
30
|
|
31
|
+
|
32
|
+
|
33
|
+
id name provider state directory
|
34
|
+
|
35
|
+
------------------------------------------------------------------------
|
36
|
+
|
37
|
+
e52e08d default virtualbox running /Users/mac/Desktop/centOS70_64
|
38
|
+
|
39
|
+
f47e1c0 default virtualbox running /Users/mac
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
The above shows information about all known Vagrant environments
|
44
|
+
|
45
|
+
on this machine. This data is cached and may not be completely
|
46
|
+
|
47
|
+
up-to-date. To interact with any of the machines, you can go to
|
48
|
+
|
49
|
+
that directory and run Vagrant, or you can use the ID directly
|
50
|
+
|
51
|
+
with Vagrant commands from any directory. For example:
|
52
|
+
|
53
|
+
"vagrant destroy 1a2b3c4d"
|
54
|
+
|
55
|
+
mac1-no-iMac:~ mac$
|
56
|
+
|
57
|
+
mac1-no-iMac:~ mac$ vi vagrantfile
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
# The most common configuration options are documented and commented below.
|
62
|
+
|
63
|
+
# For a complete reference, please see the online documentation at
|
64
|
+
|
65
|
+
# https://docs.vagrantup.com.
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# Every Vagrant development environment requires a box. You can search for
|
70
|
+
|
71
|
+
# boxes at https://atlas.hashicorp.com/search.
|
72
|
+
|
73
|
+
config.vm.box = "CentOS7_box"
|
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
|
+
# config.vm.network "forwarded_port", guest: 80, host: 8080
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
# Create a private network, which allows host-only access
|
98
|
+
|
99
|
+
# config.vm.synced_folder "../data", "/vagrant_data"
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
# Provider-specific configuration so you can fine-tune various
|
104
|
+
|
105
|
+
# backing providers for Vagrant. These expose provider-specific options.
|
106
|
+
|
107
|
+
# Example for VirtualBox:
|
108
|
+
|
109
|
+
#
|
110
|
+
|
111
|
+
# config.vm.provider "virtualbox" do |vb|
|
112
|
+
|
113
|
+
# # Display the VirtualBox GUI when booting the machine
|
114
|
+
|
115
|
+
# vb.gui = true
|
116
|
+
|
117
|
+
#
|
118
|
+
|
119
|
+
# # Customize the amount of memory on the VM:
|
120
|
+
|
121
|
+
# vb.memory = "1024"
|
122
|
+
|
123
|
+
# end
|
124
|
+
|
125
|
+
#
|
126
|
+
|
127
|
+
# View the documentation for the provider you are using for more
|
128
|
+
|
129
|
+
# information on available options.
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
134
|
+
|
135
|
+
# such as FTP and Heroku are also available. See the documentation at
|
136
|
+
|
137
|
+
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
138
|
+
|
139
|
+
# config.push.define "atlas" do |push|
|
140
|
+
|
141
|
+
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
142
|
+
|
143
|
+
# end
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
# Enable provisioning with a shell script. Additional provisioners such as
|
148
|
+
|
149
|
+
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
150
|
+
|
151
|
+
# documentation for more information about their specific syntax and use.
|
152
|
+
|
153
|
+
# config.vm.provision "shell", inline: <<-SHELL
|
154
|
+
|
155
|
+
# sudo apt-get update
|
156
|
+
|
157
|
+
# sudo apt-get install -y apache2
|
158
|
+
|
159
|
+
# SHELL
|
160
|
+
|
31
|
-
|
161
|
+
end
|
162
|
+
|
163
|
+
$ vagrant halt
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
-- INSERT --```
|
32
168
|
|
33
169
|
|
34
170
|
|