CentOS 把用户添加到sudoer

CentOS 把用户添加到sudoer

$ su -
# chmod u+w /etc/sudoers
# vim /etc/sudoers

仿照这一行
root ALL=(ALL) ALL
在这一行后面添加
我的用户名    ALL=(ALL) ALL

# chmod u+w /etc/sudoers
# logout
$ sudo yum install emacs

nginx 安装

http://www.runoob.com/linux/nginx-install-setup.html

https://blog.csdn.net/weixin_41167954/article/details/80361249

https://blog.csdn.net/ghostyusheng/article/details/81357638

猜你喜欢

转载自blog.csdn.net/fareast_mzh/article/details/81908198