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  

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