欢迎光临
我们一直在努力

Linux系统基本操作命令大全

服务器性能测试命令:wget -qO- bench.sh | bash


带宽监控安装命令:yuminstalliftop
启动带宽监控命令:iftop-ieth0-P


查看服务器TCP链接数:netstat -an


美国高防vps

挂载网卡命令
ifconfig eth0:1 10.3.0.5 up
ifconfig eth0:2 10.3.0.6 up
ifconfig eth0:3 10.3.0.7 up
ifconfig eth0:4 10.3.0.8 up
ifconfig eth0:5 10.3.0.9 up
ifconfig eth0:6 10.3.0.10 up
ifconfig eth0:7 10.3.0.11 up
ifconfig eth0:8 10.3.0.12 up
ifconfig eth0:9 10.3.0.13 up
ifconfig eth0:10 10.3.0.14 up
ifconfig eth0:11 10.3.0.15 up
ifconfig eth0:12 10.3.0.16 up
ifconfig eth0:13 10.3.0.17 up


Iptables命令大全:

  • 禁用IP:iptables-IINPUT-s127.0.0.1-jDROP
  • 解封IP:iptables-DINPUT-s127.0.0.1 -jDROP
  • 禁用端口:iptables -I INPUT -p tcp –dport 80 -j DROP
  • 增加IP白名单:iptables -I INPUT -p tcp -s 127.0.0.1 -j ACCEPT
  • 指定端口白名单:iptables -I INPUT -p tcp –dport 88 -s 127.0.0.1 -j ACCEPT
  • 删除添加的规则:iptables -D INPUT -p tcp -s 127.0.0.1 -j ACCEPT
  • 查看某个IP的规则:history|grep127.0.0.1
  • 清空所有iptables规则:iptables -F
  • 查看现有iptables规则:iptables -L -n

服务器如何查看外网IP

查看外网IP命令:curl myip.ipip.net

本文来源:blog.rxinyun.com/4439.html,若侵权,请联系删除。

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。