質問編集履歴
1
コードの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,57 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
どの部分が問題なのでしょうか?
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
```vagrantfile
|
32
|
+
|
33
|
+
config.vm.box = "bento/centos-6.7"
|
34
|
+
|
35
|
+
config.vm.network :public_network, :auto_config => false
|
36
|
+
|
37
|
+
config.vm.synced_folder "./app/", "/vagrant"
|
38
|
+
|
39
|
+
config.vm.provision :shell, :path => "bootstrap.sh"
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```bootstrap.sh
|
46
|
+
|
47
|
+
#/bin/sh
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
sudo ifconfig eth1 192.168.1.160 netmask 255.255.255.0 up
|
52
|
+
|
53
|
+
sudo route del default gw 10.0.2.2 eth0
|
54
|
+
|
55
|
+
sudo route add default gw 192.168.1.1 eth1
|
56
|
+
|
57
|
+
sudo yum install perl -y
|
58
|
+
|
59
|
+
curl -L git.io/nodebrew | perl - setup
|
60
|
+
|
61
|
+
echo "export PATH=$HOME/.nodebrew/current/bin:$PATH" >> $HOME/.bash_profile
|
62
|
+
|
63
|
+
source $HOME/.bash_profile
|
64
|
+
|
65
|
+
nodebrew install-binary stable
|
66
|
+
|
67
|
+
nodebrew use stable
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
ip rの結果
|
74
|
+
|
75
|
+
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.160
|
76
|
+
|
77
|
+
10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15
|
78
|
+
|
79
|
+
169.254.0.0/16 dev eth0 scope link metric 1002
|
80
|
+
|
81
|
+
default via 192.168.1.1 dev eth1
|