Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用fabric重新启动tomcat,即使它说tomcat重新启动成功它也没有。因此,根据常见问题解答,我设置 pty=False 并再次尝试。但是,现在,我收到了这个错误:
sudo: /etc/init.d/tomcat restart out: sudo: sorry, you must have a tty to run sudo
关于这个问题的任何想法?
对于阅读本文的任何人,这不是结构的问题,而是设置 sudo 帐户的方式。/etc/sudoers 文件中的这个属性控制这个;
默认要求