1)检测网站是否运行正常
curl -o /dev/null -s -w "%{http_code}" www.baidu.com
2)产生随机字符串
cat /dev/urandom |sed 's/[^a-zA-Z0-9]//g'|strings -n 6|head -n 1