我在安装rbenv时尝试以下操作时收到了权限被拒绝错误。我正在尝试设置我的VPS环境来部署我的rails应用程序。
deployer@max:~$ curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
bash: /usr/bin/curl: permission denied
已经安装了curl。我该如何解决这个问题?
答案 0 :(得分:0)
要解决此问题,我必须
1)使用
返回rootsu root
cd
2)重新安装卷曲
sudo apt-get purge curl libcurl3
sudo apt-get install curl
3)回到部署者
su deployer
cd
4)安装rbenv
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash