编辑sudoer文件,多个指令可以用','隔开
# cat /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
test ALL=(ALL) NOPASSWD: /usr/local/nginx/sbin/nginx
编辑sudoer文件,多个指令可以用','隔开
# cat /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
test ALL=(ALL) NOPASSWD: /usr/local/nginx/sbin/nginx