Vagrant 上装 了一个开发环境 做好配置了为什么 浏览器请求没有反应?
D:\Oracle\server>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'web'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: server_default_1418176788117_2739
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8080 is already in use
on the host machine.
To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:
config.vm.network :forwarded_port, guest: 80, host: 1234
Sometimes, Vagrant will attempt to auto-correct this for you. In this
case, Vagrant was unable to. This is usually because the guest machine
is in a state which doesn't allow modifying port forwarding.
D:\Oracle\server>vagrant reload
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: bridged
==> default: Forwarding ports...
default: 80 => 8080 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => D:/Oracle/server
default: /var/www/html => E:/www
D:\Oracle\server>
用SSH 127.0.0.1 2222 可以进到机器中
不解析PHP文件是为什么!
推荐文章: