AD:
VagrantでShare FolderをNFSを設定しようとしていたのですが、下記のようなエラーがでました。
1 2 |
It appears your machine doesn't support NFS, or there is not anadapter to enable NFS on this machine for Vagrant. Please verify that `nfsd` is installed on your machine, and try again. If you'reon Windows, NFS isn't supported. If the problem persists, pleasecontact Vagrant support. |
Vagrantfileの設定
1 2 3 |
Vagrant.configure("2") do |config| config.vm.synced_folder ".", "/var/www/html", :nfs => true end |
Macでnfsは有効になっているのは確認できたのですが、どうしてnfsがサポートしていないのとでるのか、地味に悩みました。
1 2 |
$ /sbin/nfsd status nfsd service is enabled |
問題がzshのpathでした。
1 2 3 |
nfsd is running (pid 217, 8 threads) $ sudo nfsd status sudo: nfsd: command not found |
開発方法
zshに/sbin/のpathを追加
前
1 2 |
$ echo $PATH /usr/local/heroku/bin:/Users/ayumi/.rbenv/shims:/bin:/usr/local/bin:/usr/bin |
/sbin/を追加
1 2 3 |
$ vi .zshrc export PATH="/usr/local/heroku/bin:/Users/ayumi/.rbenv/shims:/bin:/usr/local/bin:/usr/bin:/sbin/" $ source ~/.zshrc |
後
1 2 |
$ echo $PATH /usr/local/heroku/bin:/Users/ayumi/.rbenv/shims:/bin:/usr/local/bin:/usr/bin:/sbin/ |
AD:
No Comments, Comment or Ping
Reply to “Vagrant NFS with zshで”It appears your machine doesn’t support NFS””
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.