下载dubbo-admin源码 https://github.com/apache/dubbo-admin
如果是zip,直接解压,实在不行用eclipse或者idea从git上下载,然后直接打包,我用的是命令行。
因为需要打包所以需要安装maven (注意去环境变量那里配置path,下载那个名字里有bin的那个),安装nodejs(这是因为安装的时候需要用到npm)
然后在目录下也就是下图中打开cmd(当然我用的时git的bash界面)
然后根据百度出来的东西执行指令mvn package -Dmaven.test.skip=true
之前由于没有安装nodejs,所以卡在一半如下图,无法执行npm,也退不出来(所以安装一下nodejs 一路next就可以)
然后报了一堆的warning(这个得装东西)
npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated.
也就是说用npm把这个装一下,npm install --save-dev extract-text-webpack-plugin@next 报了错
npm WARN extract-text-webpack-plugin@4.0.0-beta.0 requires a peer of
webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer
dependencies yourself. npm WARN ajv-keywords@3.4.1 requires a peer of
ajv@^6.9.1 but none is installed. You must install peer dependencies
yourself.npm ERR! code EPERM npm ERR! syscall unlink npm ERR! path
E:\project\dubbo-admin-develop\dubbo-admin-ui\node_modules.staging\echarts-7430f3a4\map\json\china-cities.json
npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted,
unlink
‘E:\project\dubbo-admin-develop\dubbo-admin-ui\node_modules.staging\echarts-7430f3a4\map\json\china-cities.json’ npm ERR! [Error: EPERM: operation not permitted, unlink
‘E:\project\dubbo-admin-develop\dubbo-admin-ui\node_modules.staging\echarts-7430f3a4\map\json\china-cities.json’]
{ npm ERR! stack: “Error: EPERM: operation not permitted, unlink
‘E:\project\dubbo-admin-develop\dubbo-admin-ui\node_modules\.staging\echarts-7430f3a4\map\json\china-cities.json’”,
npm ERR! errno: -4048, npm ERR! code: ‘EPERM’, npm ERR! syscall:
‘unlink’, npm ERR! path:
‘E:\project\dubbo-admin-develop\dubbo-admin-ui\node_modules\.staging\echarts-7430f3a4\map\json\china-cities.json’
npm ERR! } npm ERR! npm ERR! The operation was rejected by your
operating system. npm ERR! It’s possible that the file was already in
use (by a text editor or antivirus), npm ERR! or that you lack
permissions to access it. npm ERR! npm ERR! If you believe this might
be a permissions issue, please double-check the npm ERR! permissions
of the file and its containing directories, or try running npm ERR!
the command again as root/Administrator.
然后开始安装
然后再次执行 npm install extract-text-webpack-plugin@3.0.2 -g 继续开始向前出发运行,如下图
悲催的事情是卡在了截图的这里,应该是在下载东西,过了一会弄成功了。如下图:
然后去dubbo-admin-develop\dubbo-admin-distribution\target 下面找到dubbo-admin-0.1.jar
运行java -jar dubbo-admin-0.1.jar 就可以了。
完成后界面如下图:如果要登陆的话默认用户密码是root root
不过据说还要执行mvn clean 清理下东西 (手动狗头)