90 lines
3.0 KiB
Plaintext
90 lines
3.0 KiB
Plaintext
|
安装jdk:
|
|||
|
参考教程:https://blog.csdn.net/weixin_43419816/article/details/127511503
|
|||
|
官网下载jdk1.8压缩包:https://www.oracle.com/java/technologies/downloads/
|
|||
|
|
|||
|
安装redis:
|
|||
|
参考教程:https://blog.csdn.net/weixin_51906670/article/details/124997212
|
|||
|
redis端口改成6380 ,密码改成:Hd0jd1lz3x
|
|||
|
|
|||
|
安装mysql:
|
|||
|
参考教程:https://blog.csdn.net/u013733643/article/details/128970496
|
|||
|
mysql端口改成:33306 ,密码改成:L2ysc1s1kr
|
|||
|
使用"数据库sql->mysql录入文件"中的sql文件生成数据库
|
|||
|
|
|||
|
安装mongodb:
|
|||
|
参考教程:https://blog.csdn.net/mouday/article/details/90670432
|
|||
|
mongodb端口改成:37027
|
|||
|
添加数据库cabinet_device
|
|||
|
使用命令 db.createUser( {user: "cabinet",pwd: "cabinet5747",roles: [ { role: "readWrite", db: "cabinet_device" } ]}) 添加用户和密码
|
|||
|
使用"数据库sql->MongoDB录入文件"中的sql和js文件生成数据库
|
|||
|
|
|||
|
安装influxdb:
|
|||
|
参考教程:https://docs.influxdata.com/influxdb/v2/install/?t=Linux#install-influxdb-as-a-service-with-systemd
|
|||
|
在http://localhost:8086 界面中点击“GET STARTED”注册用户,填写Username、Password、Confirm Password、Organization、Bucket信息,
|
|||
|
然后点击“CONTINUE”,记录API TOKEN,然后点击QUICK START进入管理页面
|
|||
|
|
|||
|
安装nginx:
|
|||
|
参考教程:https://blog.csdn.net/adaizzz/article/details/126669430
|
|||
|
修改nginx.conf文件,添加server对象:
|
|||
|
server {
|
|||
|
listen 8790;
|
|||
|
server_name localhost;
|
|||
|
|
|||
|
location / {
|
|||
|
root html;
|
|||
|
index index.html index.htm;
|
|||
|
}
|
|||
|
|
|||
|
#项目前端路径
|
|||
|
location /IEMS {
|
|||
|
alias html/IEMS;
|
|||
|
index index.html index.htm;
|
|||
|
}
|
|||
|
|
|||
|
location /api/ {
|
|||
|
proxy_pass http://localhost:8701/;
|
|||
|
|
|||
|
proxy_http_version 1.1;
|
|||
|
proxy_set_header Upgrade $http_upgrade;
|
|||
|
proxy_set_header Connection "upgrade";
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
location /webscoket/ {
|
|||
|
proxy_pass http://localhost:8704/;
|
|||
|
proxy_set_header Host $host:$server_port;
|
|||
|
proxy_http_version 1.1;
|
|||
|
proxy_set_header Upgrade $http_upgrade;
|
|||
|
proxy_set_header Connection "upgrade";
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
添加平台的前端文件:
|
|||
|
将“项目前端文件”里的“IEMS”文件夹上传到nginx的html文件目录下
|
|||
|
|
|||
|
添加APP的apk文件:
|
|||
|
将“项目前端文件”里的“HJ-IEMS.apk”文件上传到/local/IEMS-2v/upload文件目录下
|
|||
|
|
|||
|
添加项目的后端服务文件:
|
|||
|
将“jar”文件夹中的文件上传到/local/IEMS-2v路径下
|
|||
|
|
|||
|
启动服务命令:
|
|||
|
cd /local/IEMS-2v
|
|||
|
启动:sh jar.sh start
|
|||
|
重启:sh jar.sh restart
|
|||
|
停止:sh jar.sh stop
|
|||
|
查看:sh jar.sh status
|
|||
|
|
|||
|
|
|||
|
#单个微服务重启
|
|||
|
sh auto.sh device restart
|
|||
|
sh auto.sh snmp restart
|
|||
|
sh auto.sh gateway restart
|
|||
|
sh auto.sh alarm restart
|
|||
|
sh auto.sh trajectory restart
|
|||
|
sh auto.sh eureka restart
|
|||
|
sh auto.sh user restart
|
|||
|
sh auto.sh camera restart
|
|||
|
sh auto.sh influxdb restart
|
|||
|
sh auto.sh mosquitto restart
|
|||
|
sh auto.sh process restart
|