wget -qO- onekey.sh/bench | bash
wget http:#cachefly.cachefly.net/100mb.test
dd if=/dev/zero of=test bs=64k count=16k oflag=dsync
cat /proc/cpuinfo ; lscpu grep "model name" /proc/cpuinfo | cut -f2 -d:
free -m grep MemTotal /proc/meminfo
echo $HOSTTYPE
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
cat /proc/cpuinfo| grep "cpu cores"| uniq
cat /proc/cpuinfo| grep "processor"| wc -l
yum install net-tools netstat -ntlp
netstat -na | grep ESTAB | grep 80 | wc -l
scp -P 22 [email protected]:/usr/local/tomcat/webapps/ROOT.war /usr/local/tomcat/webapps/
scp -P 22 -r [email protected]:/usr/local/tomcat/webapps/ /usr/local/tomcat/webapps/
df -h #查看实时流量 yum install -y iptraf #第一款实时查看流量 iptraf-ng #执行图形化选择第一和第二个都能看 yum -y install nethogs #第二款实时查看流量 nethogs -d 1 #查看,按 m 可以切换单位
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
vim /etc/sysconfig/network
vim /etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysctl.conf
sysctl -p
service network restart