iptables 命令不能用bash: iptables: command not found解决办法

iptables 命令不能用bash: iptables: command not found
我用rpm   -q   iptables的时候:
iptables-1.2.11-3.1.RHEL4
在/sbin中还有iptables命令   都安装好了爱   则么就不能用这个命令呢?


root用户的PATH里才会有/sbin,/usr/sbin
你要用的话
如果环境是bash: vi ~/.bash_profile 添加 export PATH=$PATH:/sbin
如果环境是csh:vi ~/.tcshrc 如果没有 ~/.cshrc 添加 setenv PATH $PATH:/sbin
如果环境是sh:vi ~/.profile 添加 export PATH=$PATH:/sbin

iptables 命令不能用bash: iptables: command not found解决办法

相关文章:

你感兴趣的文章:

标签云: