http://www.apelearn.com/study_v2/
查看端口占用
netstat -apn
netstat -apn | grep 9000
大文件查找 追加,修改删除等级 指定字符串
sed -n '/TRIGGER/p' stock.sql
nl default.pass | sed -n '/root/p'
统计关键字行数
grep -o 'php' /var/log/nginx/access.log | sort | uniq -c
grep -o 'php' /var/log/nginx/access.log | sort | uniq -c
ngrok 访问不了
610 2017-01-03 16:34:22 root top
611 2017-01-03 16:34:32 root ps -ef | grep ngrok
612 2017-01-03 16:34:46 root pkill -9 -f ngrok
613 2017-01-03 16:34:48 root ps -ef | grep ngrok
614 2017-01-03 16:34:58 root cd ngrok/
615 2017-01-03 16:35:31 root setsid ./ngrok -config=./ngrok.cfg -subdomain test.ttys 80
616 2017-01-03 16:35:47 root setsid ./ngrok -config=./ngrok.cfg -subdomain test.ttys.supplier 80
617 2017-01-03 16:35:57 root setsid ./ngrok -config=./ngrok.cfg -subdomain test.ttys.m 80
618 2017-01-03 16:36:07 root setsid ./ngrok -config=./ngrok.cfg -subdomain test.ttys.admin 80
619 2017-01-03 16:36:20 root setsid ./ngrok -config=./ngrok.cfg -subdomain test.ttys.pay 80
620 2017-01-03 16:36:32 root ps -ef | grep ngrok