Files
AILab/sentinel/部署命令.txt
T
2026-04-02 09:24:45 +08:00

53 lines
1.2 KiB
Plaintext

# 打包
tar czvf sentinel.tar.gz --exclude='*.onnx' dist/
# 编译,在build下:
cmake ..
make
cmake --install . --prefix ../dist
# docker构建
sudo docker build \
-t ai.ronsunny.cn:13011/bbit_iot/ce_sentinel:1.1.2 \
-t ai.ronsunny.cn:13011/bbit_iot/ce_sentinel:latest \
.
# docker推送
sudo docker push ai.ronsunny.cn:13011/bbit_iot/ce_sentinel:1.1.2
sudo docker push ai.ronsunny.cn:13011/bbit_iot/ce_sentinel:latest
# docker试运行
docker compose up
# RTSP VLC 查看效果
rtsp://10.0.4.117:8554/ds-test
# 新机器需要运行
sudo apt-get install -y libgstrtspserver-1.0-0
sudo apt-get install language-pack-zh-hans
docker login ai.ronsunny.cn:13011
账号:iot_device
密码:Bbit000000
sudo systemctl daemon-reload
sudo systemctl enable edge_agent.service
sudo systemctl restart edge_agent.service
sudo systemctl stop edge_agent.service
sudo systemctl status edge_agent.service
# 查看日志
journalctl -u edge_agent.service -f
# ssh隧道
ssh -N -L 8080:192.168.1.3:80 bbit@10.1.5.103
# debug 日志级别
export GST_DEBUG=
级别 含义
0 NONE(最少日志)
1 ERROR
2 WARNING
3 INFO
4 DEBUG
5 LOG(最详细,包括每个 pad/element 处理信息)