linux常用命令收集

ssh安装:yum install openssh-server
netstat安装:  yum install net-tools

开机启动设置
ssh chkconfig  sshd on
centos7 systemctl enable sshd

用户获取sudo权限
a)usermod -a -G wheel 用户名
b)vi /etc/sudoers

## Same thing without a password
%wheel  ALL=(ALL)       NOPASSWD: ALL
cos4    ALL=(ALL)       NOPASSWD: ALL

猜你喜欢

转载自theseus.iteye.com/blog/2308758