赞
踩
1.项目地址
https://gitee.com/pan648540858/wvp-GB28181-pro
2.安装部署
安装必备软件
sudo apt install openjdk-8-jdk maven
下载源码
git clone https://gitee.com/pan648540858/wvp-GB28181-pro.git
编译静态页面
cd /var/www/html/wvp-GB28181-pro/web_src/
npm --registry=https://registry.npm.taobao.org install
npm run build
编译如果报错, 一般都是网络问题, 导致的依赖包下载失败
编译完成后在src/main/resources下出现static目录
打包项目, 生成可执行jar
cd /var/www/html/wvp-GB28181-pro
mvn package
配置
创建数据库
wvp
导入表
/var/www/html/wvp-GB28181-pro/sql/mysql.sql
赋权限
mysql
use mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;
sudo service mysql restart
改配置
vim /var/www/html/wvp-GB28181-pro/src/main/resources/all-application.yml
运行WVP
mv /var/www/html/wvp-GB28181-pro/src/main/resources/all-application.yml /var/www/html/wvp-GB28181-pro/target/application.yml
cd /var/www/html/wvp-GB28181-pro/target
java -jar wvp-pro-*.jar
访问管理页面
http://你的ip:18080
默认用户名:admin, 密码:admin
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。