hadoop七:防火墙、网卡的起停、sudoers配置

cd ~ :切换到家目录

cd - :回退到上次目录

 

1.防火墙的起停:

centos 6:

临时启停:service iptables status/start/stop/restart

查看防火墙,是否随系统启动:chkconfig iptables --list

永久关闭防火墙随系统启动:chkconfig iptables off

永久开启防火墙随系统启动:chkconfig iptables on

 

 

2.网卡的起停

临时起停:service network status/start/stop/restart

 

3.sudoer配置:

普通用户想使用root权限:visudo -f /etc/sudoers

# Allow root to run any commands anywhere

在此行下添加:  要添加的用户名   ALL=(ALL)   ALL

然后才有sudo权限。

posted on 2018-09-02 15:24  myworldworld  阅读(121)  评论(0)    收藏  举报

导航