capistrano 部属一项目,当执行到”sudo xx/xx/xx/nginx -s reload“ 时出现”sorry, you must have a tty to run sudo“这个问题说明什么呢?
ps:
操作系统是centos 5 我也在网上找到一些方法,例如:
http://blog.csdn.net/chinalinuxzend/a...
http://www-01.ibm.com/support/docview...
也照做了。但是没有起作用,反而在部属的时候要我输入:Password: 。有类似的情况吗?
某草草2017-04-24 16:00:58
vim /etc/sudoers
또한 Capistrano에도 배포 비밀번호가 필요한 것으로 기억됩니다.
set :password, "user1" #Password 배포 머신에 로그인하려면 배포가 없는 경우 비밀번호를 입력해야 합니다