查看进程占用情况:
sudo lsof -i :9801
终止进程:
sudo kill -9 1234
查看日志并且搜索字符:
grep "ERROR" /path/to/log/file
查看日志并且搜索字符(不区分大小写):
grep -i "error" /path/to/log/file
查看日志并且搜索字符(-e指定多个):
grep -i -e "error" -e "warning" /path/to/log/file
查看文件第160行
sed -n '160p' /data/sites/new_twoline_crm/storage/framework/views/file
实时显示日志最后部分的内容,结合grep可过滤
tail -n 100 -f xiaoeTech.log | grep -e "PullXiaoeTechLiveCustomerStudyDataTask" -e "SupervisorInteractionService"
控制台请求接口
curl -X POST -H "Content-Type: application/json" -d '{"start_time": 1706776159, "end_time": 1706948959}' https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_moment_list?access_token=