# tail -f /var/log/zabbix/zabbix_agentd.log sudo: sorry, you must have a tty to run sudo

Posted 运维工匠实战(如果发现有错误请大家把正确的方法发送给我,方便

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了# tail -f /var/log/zabbix/zabbix_agentd.log sudo: sorry, you must have a tty to run sudo相关的知识,希望对你有一定的参考价值。

 

/etc/sudoers


  1)Defaults    requiretty,修改为 #Defaults    requiretty,表示不需要控制终端。

 2)Defaults    requiretty,修改为 Defaults:nobody !requiretty,表示仅 nobody 用户不需要控制终端。
 
       如果修改为 Defaults:%nobody !requiretty,表示仅 nobody 组不需要控制终端。
方法来源:http://www.2cto.com/os/201306/216238.html

 

以上是关于# tail -f /var/log/zabbix/zabbix_agentd.log sudo: sorry, you must have a tty to run sudo的主要内容,如果未能解决你的问题,请参考以下文章

一次线上zabbix server 挂掉的思考

zabbix server is not running:the information

no active checks on server [172.30.131.9:10051]

zabbix客户端错误:no active checks on server [192.168.1.107:10051]: host [ ] not found

# zabbix自动注册

zabbix之yum安装