Initial commit

This commit is contained in:
谢洪龙
2017-08-23 14:09:21 +08:00
commit 2627e2f5c4
231 changed files with 16861 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
if [ "$1" = "quartzPro5" ]; then
echo "stop quartzPro5......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/shutdown.sh
elif [ "$1" = "ifish6" ]; then
echo "stop ifish6......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/shutdown.sh
elif [ "$1" = "ifish7" ]; then
echo "stop ifish7......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/shutdown.sh
elif [ "$1" = "ifishSystem8" ]; then
echo "stop ifishSystem8......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/shutdown.sh
elif [ "$1" = "ifishSocket9" ]; then
echo "stop ifishSocket9......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/shutdown.sh
else
echo "parameter error"
fi
+28
View File
@@ -0,0 +1,28 @@
if [ "$1" = "quartzPro5" ]; then
echo "rmove quartzPro5 war package......"
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/webapps/quartzPro.war
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/app/*
cp ../package/quartzPro.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/webapps/
elif [ "$1" = "ifish6" ]; then
echo "rmove ifish6 war package......"
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/webapps/ifish.war
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/app/*
cp ../package/ifish.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/webapps/
elif [ "$1" = "ifish7" ]; then
echo "rmove ifish7 war package......"
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/webapps/ifish.war
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/app/*
cp ../package/ifish.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/webapps/
elif [ "$1" = "ifishSystem8" ]; then
echo "rmove ifishSystem8 war package......"
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/webapps/ifishSystem.war
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/app/*
cp ../package/ifishSystem.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/webapps/
elif [ "$1" = "ifishSocket9" ]; then
echo "rmove ifishSocket9 war package......"
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/webapps/ifishSocket.war
rm -rf /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/app/*
cp ../package/ifishSocket.war /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/webapps/
else
echo "parameter error"
fi
+18
View File
@@ -0,0 +1,18 @@
if [ "$1" = "quartzPro5" ]; then
echo "quartzPro5 publish......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/quartzPro5/startup.sh
elif [ "$1" = "ifish6" ]; then
echo "ifish6 publish......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish6/startup.sh
elif [ "$1" = "ifish7" ]; then
echo "ifish7 publish......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifish7/startup.sh
elif [ "$1" = "ifishSystem8" ]; then
echo "ifishSystem8 publish......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSystem8/startup.sh
elif [ "$1" = "ifishSocket9" ]; then
echo "ifishSocket9 publish......"
sh /usr/local/apache-tomcat-7.0.64/tomcat-instance/ifishSocket9/startup.sh
else
echo "parameter error"
fi
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,19 @@
下面为工具项目
1.在本地后台 设备管理—设备类型 中添加设备类型
2.在本地后台 厂家管理—电子厂信息—修改对应厂家的硬件类型,勾上刚才添加的设备类型
3.测试工具的 socket.js,搜索getFactoryInfo方法,并修改url为本地后台
4.添加字节数对象
5.在编码解码处将发送信息实例化为字节(为了避免错误,查看84字节睿芯独立,这个地方注释比较全,而且正确)
6.someServer处添加新设备的信息
7.如果有新的功能代码,在orderModel里进行添加,并在someServer的sendModel里进行添加方法
下面为Socket服务器项目
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.