1.登录root权限账号,编辑/etc/sudoers文件
2.找到"root ALL=(ALL) ALL",并在下面添加普通用户
格式:username ALL=(ALL) ALL
vim /etc/sudoers
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
deployer ALL=(ALL) ALL