5 Star 0 Fork 0

苏庆圳/网关

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
QT6180 提交于 2024-04-09 11:51 . 1111111
#!/bin/sh
#
# Start the service....
#
#设置参数
# modbus_ip=192.168.50.6
video_ip=192.168.50.122
web_ip=192.168.50.122
web_port=8887
# if [ $# -ne 4 ]
# then
# echo "Usage: $0 <modbus ip> <video ip> <webserver ip> <webserver port>"
# else
# echo "参数个数为4"
# fi
gatway=./Int_Ind/main
tcp=./Serch/tcp
udp=./Serch/udp
stm32=./STM32/test
modbus=./modbus/modbus
aliyun=./LinkSDK/output/data-model-basic-demo
video=./mjpg-streamer/start.sh
web=./webweb/thttpd-master/thttpd.out
echo Hello $(whoami)! Welcome to use system!
echo 创建ipc通信所需要的路径
mkdir /tmp/ipc/shmem -p
mkdir /tmp/ipc/msgqueue/peer -p
echo 修改权限
chmod 777 /tmp/ipc/shmem
chmod 777 /tmp/ipc/msgqueue/peer
echo 正在启动程序...
#运行mqtt
mosquitto &
sleep 0.3
#运行网关
$gatway &
sleep 0.2
#运行tcp和udp
$tcp &
sleep 0.1
$udp &
sleep 0.1
#运行stm32采集
$stm32 &
sleep 1
#运行modbus采集
$modbus $1 &
sleep 1
#运行阿里云上报
$aliyun &
usleep 500
#运行视频流
$video $2 &
sleep 1
#运行浏览器服务器
$web $3 $4 &
sleep 1
exit 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/su-qingzhen/gateway.git
[email protected]:su-qingzhen/gateway.git
su-qingzhen
gateway
网关
master

搜索帮助