質問編集履歴

3

修正

2018/05/21 07:49

投稿

削除済ユーザー
test CHANGED
File without changes
test CHANGED
@@ -58,11 +58,55 @@
58
58
 
59
59
 
60
60
 
61
- $vi Vagrantfile コマンドと打つとこの様に出て来ました。
62
61
 
63
- こちらで合っていますでしょうか?
64
62
 
65
- # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "centos7.1" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, "Vagrantfile" 70L, 3016C
63
+ # -*- mode: ruby -*-
64
+
65
+ # vi: set ft=ruby :
66
+
67
+
68
+
69
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
70
+
71
+ # configures the configuration version (we support older styles for
72
+
73
+ # backwards compatibility). Please don't change it unless you know what
74
+
75
+ # you're doing.
76
+
77
+ Vagrant.configure("2") do |config|
78
+
79
+ # The most common configuration options are documented and commented below.
80
+
81
+ # For a complete reference, please see the online documentation at
82
+
83
+ # https://docs.vagrantup.com.
84
+
85
+
86
+
87
+ # Every Vagrant development environment requires a box. You can search for
88
+
89
+ # boxes at https://vagrantcloud.com/search.
90
+
91
+ config.vm.box = "centos7.1"
92
+
93
+
94
+
95
+ # Disable automatic box update checking. If you disable this, then
96
+
97
+ # boxes will only be checked for updates when the user runs
98
+
99
+ # `vagrant box outdated`. This is not recommended.
100
+
101
+ # config.vm.box_check_update = false
102
+
103
+
104
+
105
+ # Create a forwarded port mapping which allows access to a specific port
106
+
107
+ # within the machine from a port on the host machine. In the example below,
108
+
109
+ "Vagrantfile" 70L, 3016C
66
110
 
67
111
  ```
68
112
 

2

修正

2018/05/21 03:36

投稿

削除済ユーザー
test CHANGED
File without changes
test CHANGED
@@ -54,31 +54,15 @@
54
54
 
55
55
  ```ここに言語名を入力
56
56
 
57
- [vagrant@localhost ~]$ ip a
58
57
 
59
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
60
58
 
61
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
62
59
 
63
- inet 127.0.0.1/8 scope host lo
64
60
 
65
- valid_lft forever preferred_lft forever
61
+ $vi Vagrantfile コマンドと打つとこの様に出て来ました。
66
62
 
67
- inet6 ::1/128 scope host
63
+ こちらで合っていますでしょうか?
68
64
 
69
- valid_lft forever preferred_lft forever
70
-
71
- 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
72
-
73
- link/ether 08:00:27:51:d1:5e brd ff:ff:ff:ff:ff:ff
74
-
75
- inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
76
-
77
- valid_lft 84414sec preferred_lft 84414sec
78
-
79
- inet6 fe80::a00:27ff:fe51:d15e/64 scope link
80
-
81
- valid_lft forever preferred_lft forever
65
+ # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "centos7.1" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, "Vagrantfile" 70L, 3016C
82
66
 
83
67
  ```
84
68
 

1

修正

2018/05/21 03:35

投稿

削除済ユーザー
test CHANGED
File without changes
test CHANGED
@@ -50,155 +50,35 @@
50
50
 
51
51
 
52
52
 
53
- $cat vagrantfile
53
+ $ip aコマンドを打つと以下の情報しか記載されません。
54
54
 
55
55
  ```ここに言語名を入力
56
56
 
57
- # -*- mode: ruby -*-
57
+ [vagrant@localhost ~]$ ip a
58
58
 
59
- # vi: set ft=ruby :
59
+ 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
60
60
 
61
+ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
61
62
 
63
+ inet 127.0.0.1/8 scope host lo
62
64
 
63
- # All Vagrant configuration is done below. The "2" in Vagrant.configure
65
+ valid_lft forever preferred_lft forever
64
66
 
65
- # configures the configuration version (we support older styles for
67
+ inet6 ::1/128 scope host
66
68
 
67
- # backwards compatibility). Please don't change it unless you know what
69
+ valid_lft forever preferred_lft forever
68
70
 
69
- # you're doing.
71
+ 2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
70
72
 
71
- Vagrant.configure("2") do |config|
73
+ link/ether 08:00:27:51:d1:5e brd ff:ff:ff:ff:ff:ff
72
74
 
73
- # The most common configuration options are documented and commented below.
75
+ inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3
74
76
 
75
- # For a complete reference, please see the online documentation at
77
+ valid_lft 84414sec preferred_lft 84414sec
76
78
 
77
- # https://docs.vagrantup.com.
79
+ inet6 fe80::a00:27ff:fe51:d15e/64 scope link
78
80
 
79
-
80
-
81
- # Every Vagrant development environment requires a box. You can search for
82
-
83
- # boxes at https://vagrantcloud.com/search.
84
-
85
- config.vm.box = "centos7.1"
86
-
87
-
88
-
89
- # Disable automatic box update checking. If you disable this, then
90
-
91
- # boxes will only be checked for updates when the user runs
92
-
93
- # `vagrant box outdated`. This is not recommended.
94
-
95
- # config.vm.box_check_update = false
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. In the example below,
102
-
103
- # accessing "localhost:8080" will access port 80 on the guest machine.
104
-
105
- # NOTE: This will enable public access to the opened port
106
-
107
- # config.vm.network "forwarded_port", guest: 80, host: 8080
108
-
109
-
110
-
111
- # Create a forwarded port mapping which allows access to a specific port
112
-
113
- # within the machine from a port on the host machine and only allow access
114
-
115
- # via 127.0.0.1 to disable public access
116
-
117
- # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
118
-
119
-
120
-
121
- # Create a private network, which allows host-only access to the machine
122
-
123
- # using a specific IP.
124
-
125
- # config.vm.network "private_network", ip: "192.168.33.10"
126
-
127
-
128
-
129
- # Create a public network, which generally matched to bridged network.
130
-
131
- # Bridged networks make the machine appear as another physical device on
132
-
133
- # your network.
134
-
135
- # config.vm.network "public_network"
136
-
137
-
138
-
139
- # Share an additional folder to the guest VM. The first argument is
140
-
141
- # the path on the host to the actual folder. The second argument is
142
-
143
- # the path on the guest to mount the folder. And the optional third
144
-
145
- # argument is a set of non-required options.
81
+ valid_lft forever preferred_lft forever
146
-
147
- # config.vm.synced_folder "../data", "/vagrant_data"
148
-
149
-
150
-
151
- # Provider-specific configuration so you can fine-tune various
152
-
153
- # backing providers for Vagrant. These expose provider-specific options.
154
-
155
- # Example for VirtualBox:
156
-
157
- #
158
-
159
- # config.vm.provider "virtualbox" do |vb|
160
-
161
- # # Display the VirtualBox GUI when booting the machine
162
-
163
- # vb.gui = true
164
-
165
- #
166
-
167
- # # Customize the amount of memory on the VM:
168
-
169
- # vb.memory = "1024"
170
-
171
- # end
172
-
173
- #
174
-
175
- # View the documentation for the provider you are using for more
176
-
177
- # information on available options.
178
-
179
-
180
-
181
- # Enable provisioning with a shell script. Additional provisioners such as
182
-
183
- # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
184
-
185
- # documentation for more information about their specific syntax and use.
186
-
187
- # config.vm.provision "shell", inline: <<-SHELL
188
-
189
- # apt-get update
190
-
191
- # apt-get install -y apache2
192
-
193
- # SHELL
194
-
195
- end
196
-
197
-
198
-
199
-
200
-
201
-
202
82
 
203
83
  ```
204
84