1
初始化UNIXServer它看起來像一些權限問題:無法與流浪漢
$ irb
require 'socket'; UNIXServer.new('/vagrant/tmp/sock')
=> Errno::EPERM: Operation not permitted - "/vagrant/tmp/sock"
但用戶vagrant
有權在/vagrant/tmp
$ whoami
vagrant
$ ls -la /vagrant/tmp
total 0
drwxr-xr-x 1 vagrant vagrant 68 Feb 22 23:18 .
寫因此,這不是對我來說很明顯什麼錯。我用最新的Ruby
$ ruby -v
ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-linux]
和Ubuntu 14.04:
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 3000, host: 3000
end
是否也能勾勒出你的答案在這裏解決嗎?網站有消失的習慣。 – 2017-06-29 00:19:56