linux之ip

终端:terminal

远程连接:

ssh协议:secure  shell

查看系统是否监听于tcp协议的22号端口;

ss  -tnl

查看ip:

ifconfig

或者

ip  addr   list

 

测试网络连同性能:

ping   ip

ctrl  c  终止;或者命令输错了,不需要了,直接ctrl  c

查看防火墙:

iptables   -L  -n

centos7关闭防火墙:

先禁用再停止:

systemctl  disable  firewalld.service

systemctl  stop firewalld.service

centos6关闭防火墙:

service  iptables  stop

chkconfig  iptables   off  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章