`
qiujiayu
  • 浏览: 170525 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

sudo: sorry, you must have a tty to run sudo

    博客分类:
  • PHP
阅读更多

当报sudo: sorry, you must have a tty to run sudo错误时,我们只要按以下操作就可以解决了:

 

1、 sudoedit 编辑文件 /etc/sudoers  即: sudoedit /etc/sudoers

2、在/etc/sudoers中添加如下内容:

Defaults:apache   !requiretty

 

3、重启httpd服务:service httpd restart

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics