Liunx常用命令行(Ubuntu)

 

关闭防火墙的命令行:

1. 永久性生效

开启:chkconfig iptables on

关闭:chkconfig iptables off

2. 即时生效,重启后失效

开启:service iptables start

关闭:service iptables stop

3.查看防火墙状态:

chkconfig --list  | grep iptables

 

1.下载net-tools(ubunte 一开始安装是没有ifconfig命令的需要安装)

sudo apt-get install net-tools

2.终端输入命令

ifconfig

相关文章:

  • 2021-07-23
  • 2022-01-21
  • 2021-10-18
  • 2021-06-03
  • 2021-12-27
  • 2021-10-28
猜你喜欢
  • 2021-08-21
  • 2021-06-14
  • 2021-08-15
  • 2021-09-17
相关资源
相似解决方案