Linux-网络通讯命令

来源:互联网 发布:java float 比较大小 编辑:程序博客网 时间:2024/06/11 04:31

ifconfig  显示或设置网络设备:

               ifconfig   显示网络设备

               ifconfig  eth0    up                 启用eth0网卡

               ifconfig  eth0    down            停用eth0网卡



ping          探测网络是否畅通

                  ping  192.168.0.1

netstat      查看网络端口

                  netstat -an|grep  3306          查询3306端口占用情况


0 0
原创粉丝点击