[root@CentOS etc]# vi sudoers
修改 /etc/sudoers 文件,找到下面一行,在root下面添加一行,以下所示: ## Allow root to run any commands anywhere root ALL=(ALL) ALL WQ ALL=(ALL) ALLjava