78 lines
2.7 KiB
Plaintext
78 lines
2.7 KiB
Plaintext
|
安装jdk:
|
|||
|
参考教程:https://blog.csdn.net/qq_42257666/article/details/128188008
|
|||
|
安装包是“软件安装包”中的“jdk-8u291-windows-x64.exe”
|
|||
|
|
|||
|
安装redis:
|
|||
|
参考教程:http://www.taodudu.cc/news/show-2198041.html?action=onClick
|
|||
|
redis端口改成6380 ,密码设置成:Hd0jd1lz3x
|
|||
|
|
|||
|
安装mysql:
|
|||
|
参考教程:http://c.biancheng.net/view/7135.html
|
|||
|
mysql端口设置成:33306 ,密码设置成:L2ysc1s1kr
|
|||
|
使用"数据库sql->mysql录入文件"中的sql文件生成数据库
|
|||
|
|
|||
|
安装mongodb:
|
|||
|
参考教程:https://blog.51cto.com/YangPC/6193718
|
|||
|
在“C:\Program Files\MongoDB”下的bin文件下的mongod.cfg文件中将mongodb端口改成:37027
|
|||
|
添加数据库cabinet_device
|
|||
|
使用命令 db.createUser( {user: "cabinet",pwd: "cabinet5747",roles: [ { role: "readWrite", db: "cabinet_device" } ]}) 添加用户和密码
|
|||
|
使用"数据库sql->MongoDB录入文件"中的sql和js文件生成数据库
|
|||
|
|
|||
|
安装influxdb:
|
|||
|
参考教程:https://blog.csdn.net/qq_28836661/article/details/132605181
|
|||
|
在http://localhost:8086 界面中点击“GET STARTED”注册用户,填写Username、Password、Confirm Password、Organization、Bucket信息,
|
|||
|
然后点击“CONTINUE”,记录API TOKEN,然后点击QUICK START进入管理页面
|
|||
|
|
|||
|
安装nginx:
|
|||
|
将"软件安装包"中的“nginx-1.18.0.rar”解压到D:/project路径下
|
|||
|
修改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文件夹上传到D:/project/nginx-1.18.0/html路径下
|
|||
|
|
|||
|
添加APP的apk文件:
|
|||
|
将“项目前端文件”里的“HJ-IEMS.apk”文件上传到D:/project/upload文件目录下
|
|||
|
|
|||
|
点击D:/project/nginx-1.18.0下的“nginx.exe”启动nginx服务
|
|||
|
|
|||
|
|
|||
|
将“jar”文件夹上传到D:/project路径下
|
|||
|
启动服务命令:
|
|||
|
启动:双击“jar”文件夹中的all-start.bat文件
|
|||
|
停止:双击“jar”文件夹中的all-stop.bat文件
|
|||
|
|
|||
|
|