1.Linux修改静态IP地址
#vi /etc/sysconfig/network-script/ifconfig-ethx
DEVICE =ethx
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.100
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
2.添加默认路由
# route add default gw 192.168.0.1
3.扫描网段
#nmap -sp 192.168.0.0/24
扫描单台主机
#nmap -ST 192.168.0.200
4.启用虚拟ip
#ifconfig eth0:0 192.168.0.101 netmask 255.255.255.0 up
5.tar命令
#tar -zcvf ./goods-of-china.com.tar.gz --exclude-from=/bin/whole51/other/list/text ./goods-of-china.com/
6.调整linux系统最大连接数
#vim /etc/security/limits.conf
添加
* soft nofile 65535
* hard nofile 70000
本文转自hb_fukua 51CTO博客,原文链接:http://blog.51cto.com/2804976/538066,如需转载请自行联系原作者