質問編集履歴

6

内容の変更

2021/11/11 07:36

投稿

2232
2232

スコア298

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  ```
12
12
 
13
- Last login: Thu Nov 11 14:14:41 on ttys000
13
+ Last login: Thu Nov 11 14:34:52 on ttys000
14
14
 
15
15
 
16
16
 
@@ -20,13 +20,13 @@
20
20
 
21
21
  For more details, please visit https://support.apple.com/kb/HT208050.
22
22
 
23
- kei-no-MacBook-Air:~ kei$ cd /Users/kei/Desktop/
23
+ kei-no-MacBook-Air:~ kei$ cd /Users/kei/Desktop/
24
24
 
25
25
  kei-no-MacBook-Air:Desktop kei$ mkdir pacificmall
26
26
 
27
- kei-no-MacBook-Air:Desktop kei$ cd pacificmall
27
+ kei-no-MacBook-Air:Desktop kei$ cd pacificmall
28
28
 
29
- kei-no-MacBook-Air:pacificmall kei$ vagrant init prime-strategy/kusanagi-wp5 --box-version 1.0
29
+ kei-no-MacBook-Air:pacificmall kei$ vagrant init prime-strategy/kusanagi-wp5 --box-version 1.0
30
30
 
31
31
  A `Vagrantfile` has been placed in this directory. You are now
32
32
 
@@ -44,57 +44,31 @@
44
44
 
45
45
  Bringing machine 'default' up with 'virtualbox' provider...
46
46
 
47
- ==> default: Box 'prime-strategy/kusanagi-wp5' could not be found. Attempting to find and install...
48
-
49
- default: Box Provider: virtualbox
50
-
51
- default: Box Version: 1.0
52
-
53
- ==> default: Loading metadata for box 'prime-strategy/kusanagi-wp5'
54
-
55
- default: URL: https://vagrantcloud.com/prime-strategy/kusanagi-wp5
56
-
57
- ==> default: Adding box 'prime-strategy/kusanagi-wp5' (v1.0) for provider: virtualbox
58
-
59
- default: Downloading: https://vagrantcloud.com/prime-strategy/boxes/kusanagi-wp5/versions/1.0/providers/virtualbox.box
60
-
61
- ==> default: Successfully added box 'prime-strategy/kusanagi-wp5' (v1.0) for 'virtualbox'!
62
-
63
47
  ==> default: Importing base box 'prime-strategy/kusanagi-wp5'...
64
48
 
65
49
  ==> default: Matching MAC address for NAT networking...
66
50
 
67
51
  ==> default: Checking if box 'prime-strategy/kusanagi-wp5' version '1.0' is up to date...
68
52
 
69
- ==> default: Setting the name of the VM: pacificmall_default_1636609482109_71739
53
+ ==> default: There was a problem while downloading the metadata for your box
70
54
 
71
- Vagrant is currently configured to create VirtualBox synced folders with
55
+ ==> default: to check for updates. This is not an error, since it is usually due
72
56
 
73
- the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
57
+ ==> default: to temporary network problems. This is just a warning. The problem
74
58
 
75
- guest is not trusted, you may want to disable this option. For more
59
+ ==> default: encountered was:
76
60
 
77
- information on this option, please refer to the VirtualBox manual:
61
+ ==> default:
78
62
 
63
+ ==> default: SSL certificate problem: self signed certificate in certificate chain
79
64
 
65
+ ==> default:
80
66
 
81
- https://www.virtualbox.org/manual/ch04.html#sharedfolders
67
+ ==> default: If you want to check for box updates, verify your network connection
82
68
 
69
+ ==> default: is valid and try again.
83
70
 
84
-
85
- This option can be disabled globally with an environment variable:
71
+ ==> default: Setting the name of the VM: pacificmall_default_1636615684491_31898
86
-
87
-
88
-
89
- VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
90
-
91
-
92
-
93
- or on a per folder basis within the Vagrantfile:
94
-
95
-
96
-
97
- config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
98
72
 
99
73
  ==> default: Clearing any previously set network interfaces...
100
74
 

5

内容の変更

2021/11/11 07:36

投稿

2232
2232

スコア298

test CHANGED
@@ -1 +1 @@
1
- Vagrantで仮想マシンの作成方法わかりません。本 {ビジネスサイトを作って学ぶWordPressの教科書}
1
+ Vagrantで仮想マシンの作成ができません。本 {ビジネスサイトを作って学ぶWordPressの教科書}
test CHANGED
@@ -1,4 +1,4 @@
1
- Vagrantを使用して、仮想マシンを作成しようとしていますが、エラーが出てしまい先勧めません
1
+ Vagrantを使用して、仮想マシンを作成しようとしていますが、本のよう、running(virtualbox)と表示されません
2
2
 
3
3
  ビジネスサイトを作って学ぶWordPressの教科書19ページ
4
4
 
@@ -6,23 +6,23 @@
6
6
 
7
7
 
8
8
 
9
- 下記のコードに、
9
+ コードの表示(ブロック)
10
10
 
11
- Error: SSL certificate problem: self signed certificate in certificate chain
11
+ ```
12
12
 
13
- というエラーが出てしまいます。
13
+ Last login: Thu Nov 11 14:14:41 on ttys000
14
14
 
15
15
 
16
16
 
17
+ The default interactive shell is now zsh.
17
18
 
19
+ To update your account to use zsh, please run `chsh -s /bin/zsh`.
18
20
 
21
+ For more details, please visit https://support.apple.com/kb/HT208050.
19
22
 
23
+ kei-no-MacBook-Air:~ kei$ cd /Users/kei/Desktop/
20
24
 
21
-
22
-
23
- コードの表示(ブロック)
25
+ kei-no-MacBook-Air:Desktop kei$ mkdir pacificmall
24
-
25
- ```
26
26
 
27
27
  kei-no-MacBook-Air:Desktop kei$ cd pacificmall
28
28
 
@@ -50,21 +50,75 @@
50
50
 
51
51
  default: Box Version: 1.0
52
52
 
53
- The box 'prime-strategy/kusanagi-wp5' could not be found or
53
+ ==> default: Loading metadata for box 'prime-strategy/kusanagi-wp5'
54
54
 
55
- could not be accessed in the remote catalog. If this is a private
55
+ default: URL: https://vagrantcloud.com/prime-strategy/kusanagi-wp5
56
56
 
57
- box on HashiCorp's Vagrant Cloud, please verify you're logged in via
57
+ ==> default: Adding box 'prime-strategy/kusanagi-wp5' (v1.0) for provider: virtualbox
58
58
 
59
- `vagrant login`. Also, please double-check the name. The expanded
59
+ default: Downloading: https://vagrantcloud.com/prime-strategy/boxes/kusanagi-wp5/versions/1.0/providers/virtualbox.box
60
60
 
61
+ ==> default: Successfully added box 'prime-strategy/kusanagi-wp5' (v1.0) for 'virtualbox'!
62
+
63
+ ==> default: Importing base box 'prime-strategy/kusanagi-wp5'...
64
+
65
+ ==> default: Matching MAC address for NAT networking...
66
+
67
+ ==> default: Checking if box 'prime-strategy/kusanagi-wp5' version '1.0' is up to date...
68
+
69
+ ==> default: Setting the name of the VM: pacificmall_default_1636609482109_71739
70
+
71
+ Vagrant is currently configured to create VirtualBox synced folders with
72
+
73
+ the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
74
+
61
- URL and error message are shown below:
75
+ guest is not trusted, you may want to disable this option. For more
76
+
77
+ information on this option, please refer to the VirtualBox manual:
62
78
 
63
79
 
64
80
 
65
- URL: ["https://vagrantcloud.com/prime-strategy/kusanagi-wp5"]
81
+ https://www.virtualbox.org/manual/ch04.html#sharedfolders
66
82
 
83
+
84
+
85
+ This option can be disabled globally with an environment variable:
86
+
87
+
88
+
89
+ VAGRANT_DISABLE_VBOXSYMLINKCREATE=1
90
+
91
+
92
+
93
+ or on a per folder basis within the Vagrantfile:
94
+
95
+
96
+
97
+ config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
98
+
67
- Error: SSL certificate problem: self signed certificate in certificate chain
99
+ ==> default: Clearing any previously set network interfaces...
100
+
101
+ The IP address configured for the host-only network is not within the
102
+
103
+ allowed ranges. Please update the address used to be within the allowed
104
+
105
+ ranges and run the command again.
106
+
107
+
108
+
109
+ Address: 192.168.33.10
110
+
111
+ Ranges: 192.168.56.0/21
112
+
113
+
114
+
115
+ Valid ranges can be modified in the /etc/vbox/networks.conf file. For
116
+
117
+ more information including valid format see:
118
+
119
+
120
+
121
+ https://www.virtualbox.org/manual/ch06.html#network_hostonly
68
122
 
69
123
  kei-no-MacBook-Air:pacificmall kei$ vagrant status
70
124
 
@@ -72,17 +126,11 @@
72
126
 
73
127
 
74
128
 
75
- default not created (virtualbox)
129
+ default poweroff (virtualbox)
76
130
 
77
131
 
78
132
 
79
- The environment has not yet been created. Run `vagrant up` to
133
+ The VM is powered off. To restart the VM, simply run `vagrant up`
80
-
81
- create the environment. If a machine is not created, only the
82
-
83
- default provider will be shown. So if a provider is not listed,
84
-
85
- then the machine is not created for that environment.
86
134
 
87
135
  kei-no-MacBook-Air:pacificmall kei$
88
136
 

4

内容を減らした。

2021/11/11 06:05

投稿

2232
2232

スコア298

test CHANGED
File without changes
test CHANGED
@@ -91,161 +91,3 @@
91
91
  コードの表示(ブロック)
92
92
 
93
93
  ```
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- Vagrantfile(テキストエディット)
102
-
103
- ```
104
-
105
- コードの表示(ブロック)
106
-
107
- # -*- mode: ruby -*-
108
-
109
- # vi: set ft=ruby :
110
-
111
-
112
-
113
- # All Vagrant configuration is done below. The "2" in Vagrant.configure
114
-
115
- # configures the configuration version (we support older styles for
116
-
117
- # backwards compatibility). Please don't change it unless you know what
118
-
119
- # you're doing.
120
-
121
- Vagrant.configure("2") do |config|
122
-
123
- # The most common configuration options are documented and commented below.
124
-
125
- # For a complete reference, please see the online documentation at
126
-
127
- # https://docs.vagrantup.com.
128
-
129
-
130
-
131
- # Every Vagrant development environment requires a box. You can search for
132
-
133
- # boxes at https://vagrantcloud.com/search.
134
-
135
- config.vm.box = "prime-strategy/kusanagi-wp5"
136
-
137
- config.vm.box_version = "1.0"
138
-
139
-
140
-
141
- # Disable automatic box update checking. If you disable this, then
142
-
143
- # boxes will only be checked for updates when the user runs
144
-
145
- # `vagrant box outdated`. This is not recommended.
146
-
147
- # config.vm.box_check_update = false
148
-
149
-
150
-
151
- # Create a forwarded port mapping which allows access to a specific port
152
-
153
- # within the machine from a port on the host machine. In the example below,
154
-
155
- # accessing "localhost:8080" will access port 80 on the guest machine.
156
-
157
- # NOTE: This will enable public access to the opened port
158
-
159
- # config.vm.network "forwarded_port", guest: 80, host: 8080
160
-
161
-
162
-
163
- # Create a forwarded port mapping which allows access to a specific port
164
-
165
- # within the machine from a port on the host machine and only allow access
166
-
167
- # via 127.0.0.1 to disable public access
168
-
169
- # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
170
-
171
-
172
-
173
- # Create a private network, which allows host-only access to the machine
174
-
175
- # using a specific IP.
176
-
177
- config.vm.network "private_network", ip: "192.168.33.10"
178
-
179
-
180
-
181
- # Create a public network, which generally matched to bridged network.
182
-
183
- # Bridged networks make the machine appear as another physical device on
184
-
185
- # your network.
186
-
187
- # config.vm.network "public_network"
188
-
189
-
190
-
191
- # Share an additional folder to the guest VM. The first argument is
192
-
193
- # the path on the host to the actual folder. The second argument is
194
-
195
- # the path on the guest to mount the folder. And the optional third
196
-
197
- # argument is a set of non-required options.
198
-
199
- # config.vm.synced_folder "../data", "/vagrant_data"
200
-
201
-
202
-
203
- # Provider-specific configuration so you can fine-tune various
204
-
205
- # backing providers for Vagrant. These expose provider-specific options.
206
-
207
- # Example for VirtualBox:
208
-
209
- #
210
-
211
- # config.vm.provider "virtualbox" do |vb|
212
-
213
- # # Display the VirtualBox GUI when booting the machine
214
-
215
- # vb.gui = true
216
-
217
- #
218
-
219
- # # Customize the amount of memory on the VM:
220
-
221
- # vb.memory = "1024"
222
-
223
- # end
224
-
225
- #
226
-
227
- # View the documentation for the provider you are using for more
228
-
229
- # information on available options.
230
-
231
-
232
-
233
- # Enable provisioning with a shell script. Additional provisioners such as
234
-
235
- # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
236
-
237
- # documentation for more information about their specific syntax and use.
238
-
239
- # config.vm.provision "shell", inline: <<-SHELL
240
-
241
- # apt-get update
242
-
243
- # apt-get install -y apache2
244
-
245
- # SHELL
246
-
247
- end
248
-
249
-
250
-
251
- ```

3

内容の追加

2021/11/11 02:49

投稿

2232
2232

スコア298

test CHANGED
File without changes
test CHANGED
@@ -66,8 +66,28 @@
66
66
 
67
67
  Error: SSL certificate problem: self signed certificate in certificate chain
68
68
 
69
+ kei-no-MacBook-Air:pacificmall kei$ vagrant status
70
+
71
+ Current machine states:
72
+
73
+
74
+
75
+ default not created (virtualbox)
76
+
77
+
78
+
79
+ The environment has not yet been created. Run `vagrant up` to
80
+
81
+ create the environment. If a machine is not created, only the
82
+
83
+ default provider will be shown. So if a provider is not listed,
84
+
85
+ then the machine is not created for that environment.
86
+
69
87
  kei-no-MacBook-Air:pacificmall kei$
70
88
 
89
+
90
+
71
91
  コードの表示(ブロック)
72
92
 
73
93
  ```

2

内容の追加

2021/11/11 02:43

投稿

2232
2232

スコア298

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,14 @@
6
6
 
7
7
 
8
8
 
9
+ 下記のコードに、
10
+
11
+ Error: SSL certificate problem: self signed certificate in certificate chain
12
+
13
+ というエラーが出てしまいます。
14
+
15
+
16
+
9
17
 
10
18
 
11
19
 

1

内容の追加

2021/11/11 02:41

投稿

2232
2232

スコア298

test CHANGED
File without changes
test CHANGED
@@ -14,23 +14,9 @@
14
14
 
15
15
  コードの表示(ブロック)
16
16
 
17
- ```Last login: Wed Nov 10 22:34:41 on ttys000
17
+ ```
18
-
19
-
20
-
21
- The default interactive shell is now zsh.
18
+
22
-
23
- To update your account to use zsh, please run `chsh -s /bin/zsh`.
24
-
25
- For more details, please visit https://support.apple.com/kb/HT208050.
26
-
27
- kei-no-MacBook-Air:~ kei$ cd /Users/username/Desktop/
28
-
29
- -bash: cd: /Users/username/Desktop/: No such file or directory
30
-
31
- kei-no-MacBook-Air:~ kei$ mkdir pacificmall
32
-
33
- kei-no-MacBook-Air:~ kei$ cd pacificmall
19
+ kei-no-MacBook-Air:Desktop kei$ cd pacificmall
34
20
 
35
21
  kei-no-MacBook-Air:pacificmall kei$ vagrant init prime-strategy/kusanagi-wp5 --box-version 1.0
36
22
 
@@ -77,3 +63,161 @@
77
63
  コードの表示(ブロック)
78
64
 
79
65
  ```
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+ Vagrantfile(テキストエディット)
74
+
75
+ ```
76
+
77
+ コードの表示(ブロック)
78
+
79
+ # -*- mode: ruby -*-
80
+
81
+ # vi: set ft=ruby :
82
+
83
+
84
+
85
+ # All Vagrant configuration is done below. The "2" in Vagrant.configure
86
+
87
+ # configures the configuration version (we support older styles for
88
+
89
+ # backwards compatibility). Please don't change it unless you know what
90
+
91
+ # you're doing.
92
+
93
+ Vagrant.configure("2") do |config|
94
+
95
+ # The most common configuration options are documented and commented below.
96
+
97
+ # For a complete reference, please see the online documentation at
98
+
99
+ # https://docs.vagrantup.com.
100
+
101
+
102
+
103
+ # Every Vagrant development environment requires a box. You can search for
104
+
105
+ # boxes at https://vagrantcloud.com/search.
106
+
107
+ config.vm.box = "prime-strategy/kusanagi-wp5"
108
+
109
+ config.vm.box_version = "1.0"
110
+
111
+
112
+
113
+ # Disable automatic box update checking. If you disable this, then
114
+
115
+ # boxes will only be checked for updates when the user runs
116
+
117
+ # `vagrant box outdated`. This is not recommended.
118
+
119
+ # config.vm.box_check_update = false
120
+
121
+
122
+
123
+ # Create a forwarded port mapping which allows access to a specific port
124
+
125
+ # within the machine from a port on the host machine. In the example below,
126
+
127
+ # accessing "localhost:8080" will access port 80 on the guest machine.
128
+
129
+ # NOTE: This will enable public access to the opened port
130
+
131
+ # config.vm.network "forwarded_port", guest: 80, host: 8080
132
+
133
+
134
+
135
+ # Create a forwarded port mapping which allows access to a specific port
136
+
137
+ # within the machine from a port on the host machine and only allow access
138
+
139
+ # via 127.0.0.1 to disable public access
140
+
141
+ # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
142
+
143
+
144
+
145
+ # Create a private network, which allows host-only access to the machine
146
+
147
+ # using a specific IP.
148
+
149
+ config.vm.network "private_network", ip: "192.168.33.10"
150
+
151
+
152
+
153
+ # Create a public network, which generally matched to bridged network.
154
+
155
+ # Bridged networks make the machine appear as another physical device on
156
+
157
+ # your network.
158
+
159
+ # config.vm.network "public_network"
160
+
161
+
162
+
163
+ # Share an additional folder to the guest VM. The first argument is
164
+
165
+ # the path on the host to the actual folder. The second argument is
166
+
167
+ # the path on the guest to mount the folder. And the optional third
168
+
169
+ # argument is a set of non-required options.
170
+
171
+ # config.vm.synced_folder "../data", "/vagrant_data"
172
+
173
+
174
+
175
+ # Provider-specific configuration so you can fine-tune various
176
+
177
+ # backing providers for Vagrant. These expose provider-specific options.
178
+
179
+ # Example for VirtualBox:
180
+
181
+ #
182
+
183
+ # config.vm.provider "virtualbox" do |vb|
184
+
185
+ # # Display the VirtualBox GUI when booting the machine
186
+
187
+ # vb.gui = true
188
+
189
+ #
190
+
191
+ # # Customize the amount of memory on the VM:
192
+
193
+ # vb.memory = "1024"
194
+
195
+ # end
196
+
197
+ #
198
+
199
+ # View the documentation for the provider you are using for more
200
+
201
+ # information on available options.
202
+
203
+
204
+
205
+ # Enable provisioning with a shell script. Additional provisioners such as
206
+
207
+ # Ansible, Chef, Docker, Puppet and Salt are also available. Please see the
208
+
209
+ # documentation for more information about their specific syntax and use.
210
+
211
+ # config.vm.provision "shell", inline: <<-SHELL
212
+
213
+ # apt-get update
214
+
215
+ # apt-get install -y apache2
216
+
217
+ # SHELL
218
+
219
+ end
220
+
221
+
222
+
223
+ ```