美文网首页
服务重启

服务重启

作者: xiongraorao | 来源:发表于2019-01-21 16:21 被阅读0次

face-app 服务重启

cd ~/workspace
docker-compose restart face-app

查看抓图进程状态

通过发送post请求,然后查看日志就可以

post request:
url: http://ip:5000/camera/status
type: application/json
data: {"id": 1}

查看日志
tail /data/docker/face-app/camera.log

process_pool: {6: <Process(Process-1, started daemon)>, 7: <Process(Process-2, started daemon)>, 8: <Process(Process-3, started daemon)>}

状态为 started daemon 表示当前摄像头正常运行,stopped daemon 表示摄像头不正常运行

摄像头id 和 process_pool 的 数字对照表:

image.png

查看抓图进程数量

top 命令,查看root 用户 python进程,cpu占用通常100%左右的那些

相关文章

网友评论

      本文标题:服务重启

      本文链接:https://www.haomeiwen.com/subject/dpwcjqtx.html