码迷,mamicode.com
首页 > 其他好文 > 详细

网络命令跟测试压力命令

时间:2017-11-06 17:13:54      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:网络   dig   gre   网卡   trace   用户数   stat   host   rac   

host   域名                     正向解析

nslookup  ip                  反向解析

nslookup  域名              正向解析

dig  域名                         正向解析

traceroute   www.baidu.com   查看路由跳数   (路由最大15跳,16跳为不可达 )

[root@sw-data-100 ~]#arp -d     lvs出现迁移数据ARP的问题 ,清除arp缓存

[root@sw-data-100 ~]#arp -a    查看arp表

[root@sw-data-100 ~]#ifconfig | head -2

[root@sw-data-100 ~]#ip ad li      查看ip 

[root@sw-data-100 ~]#ifconfig 网卡名 192.168.1.1/24

[root@sw-data-100 ~]# ifconfig eth0 192.168.5.2/24   添加临时网卡

[root@sw-data-100 ~]#netstat -antpul 查看端口  pid

[root@sw-data-100 ~]#netstat -antpul | grep :端口

[root@sw-data-100 ~]#lsof -i  ;端口

[root@sw-data-100 ~]#route -n 

[root@sw-data-100 ~]#netstat  -rn

[root@sw-data-100 ~]#ab -c100 -n 100 http://localhost/index.html

-n1000 表示总请求数位1000
-c 表示并发用户数为10

网络命令跟测试压力命令

标签:网络   dig   gre   网卡   trace   用户数   stat   host   rac   

原文地址:http://www.cnblogs.com/fyy-hhzzj/p/7794033.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!