Rails Vagrant (CentOS7.1) 里,Nginx+Passenger 跑 Rails 很慢很慢,求解

kee · 2015年08月06日 · 最后由 kee 回复于 2015年08月06日 · 2045 次阅读

宿主机 macbook pro 831 vagrant(2G 内存 CentOS7.1)

跑 rails4.2,开发环境,css/js 请求为什么如此慢?NFS 影响大吗?

NFS 影响大吗?

哈哈用 vagrant 之后还 NFS 慢是肯定的啊

@rei 用 NFS 会快吗?

@rei 还有什么其他建议可已提速的?

@rei @kewin @zgm

config.vm.network :private_network, ip: "192.168.11.189"
config.vm.synced_folder "~/", "/home/vagrant/Repo" , :nfs => true

$vagrant reload

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

/etc/init.d/rpcbind restart; /etc/init.d/nfs restart

Stdout from the command:

Stderr from the command:

bash: Zeile 2: /etc/init.d/rpcbind: Datei oder Verzeichnis nicht gefunden bash: Zeile 2: /etc/init.d/nfs: Datei oder Verzeichnis nicht gefunden


** CentOS7.1,/etc/init.d/下是没有 nfs 跟 rpcbind,执行 service nfs/rpcbind restart 是有效的 ** ** 这里怎么制作 init.d 启动项,或怎么修改 vagrant 为 service * restart **

需要 登录 后方可回复, 如果你还没有账号请 注册新账号