例如查看 reids安装目录
如果命令 which 和whereis 都找不到安装目录,可使用以下办法
ps -ef|grep redis
得到了进程号 xxxx
然后 ls -l /proc/xxxx/cwd
redis连接
redis-cli -a 密码
日志查看
cat /data/miniApp-support/conf/log/info/info.log |grep "revive:errorData"|wc -l
cat revive.log |grep ^2001 | awk -F| '$3=="otV3x5KoRT_FqG5gUwY5nHNls2Qg" {print $1,$3}'
cat /data/miniApp-support*/conf/log/report/logReport.log* | grep otV3 | awk -F| '{if($3!="undefined") arr[$3]=1} END{for(k in arr){print k}}' > /tmp/opid.dat
cat /var/log/nginx/wechat.access.log | awk -F '{print $10}' | sort | uniq -c | sort -nr | ad_awk;
12点以后的
cat /data/miniApp-support*/conf/log/request/revive.log | awk -F | '{if($2 > 1527739200000) print $0}'|wc -l
cat /data/miniApp-support*/conf/log/request/revive.log |grep ^2004 | head -1