1. The system has created the wheel group by default
cat /etc/group |grep wheel
2. Ensure that the line "%wheel ALL=(ALL) ALL" in the etc/sudoers file is not commented
3. Change the subsidiary group of ordinary users to wheel, so that ordinary users have sudo authority
[root@node5 ~]# id nginx
uid=8000(nginx) gid=8000(nginx) groups=8000(nginx)
4. Change the subgroup of the nginx user to wheel
[root@node5 ~]# usermod -aG wheel nginx
[root@node5 ~]# id nginx
uid=8000(nginx) gid=8000(nginx) groups=8000(nginx),10(wheel)
[root@node5 ~]# grep wheel /etc/group
wheel:x:10:nginx