How to start Nginx after shared folder mounted on VirtualBox

Recently, I set up a new developing environment in a VirtualBox VM. The source code shares between the host and VM by shared folder. It causes a problem that the config file can not be found when Nginx is starting up. I searched on Google and found some related posts. “If Nginx does not start …


国内镜像源不知道是不是都有问题,几天前就提示可以升级,但总也找不到linux-image-2.6.28-14-generic这个的依赖包(404错误)。索性换到了主站上更新。 一切顺利,速度也不差…… 然后麻烦来了,VritualBox3.0.2无法启动。提示: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ 折腾了半天,最后发现解决办法爆简单: sudo apt-get install linux-headers-2.6.28-14-generic 然后 sudo /etc/init.d/vboxdrv setup 就可以了。