centos安装dubbo-admin

1、下载dubbo-admin

https://github.com/apache/dubbo-ops

2、运行后台SpringBoot项目

2.0、修改dubbo-admin-server下的application.properties

修改192.168.0.1为服务器地址
admin.registry.address=zookeeper://192.168.0.1:2181
admin.config-center=zookeeper://192.168.0.1:2181
admin.metadata-report.address=zookeeper://192.168.0.1:2181
#设置启动端口、我设置的是9000
server.port=9000

2.1、maven打包jar

先clean在package

centos安装dubbo-admin_第1张图片

2.1.1打包失败试试在pom文件添加
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <skipTests>true</skipTests>
    </configuration>
</plugin>

2.2、把jar包上传到服务器后运行

nohup java -jar dubbo-admin-server-0.1.jar &

2.3修改nginx配置、转发到9000端口

vi /usr/local/nginx/conf/nginx.conf
location /api/dev/ {
		proxy_pass http://127.0.0.1:9000;
	}	

3、打包前端项目

npm run build
3.1打包后上传dubbo-admin-ui\target\dist下的文件到nginx html目录下部署、访问80端口就可以了、后台默认账户密码为root/root

你可能感兴趣的:(dubbo,spring,boot,vue.js)