-
Notifications
You must be signed in to change notification settings - Fork 1
项目部署
kevin edited this page Dec 7, 2018
·
6 revisions
8761 ~ 8769
[huangkai@localhost springcloud]$ pwd
/data/docker/springcloud
[huangkai@localhost springcloud]$ mkdir eureka-server
[huangkai@localhost springcloud]$ cd eureka-server
上传jar 包到此目录
[huangkai@localhost eureka-server]$ ll
total 52272
-rw-r--r-- 1 huangkai huangkai 53524946 Dec 6 09:22 hk-discover-eureka-2.1.0.RELEASE.jar
[huangkai@localhost eureka-server]$ cd ..
[huangkai@localhost springcloud]$ ll
total 24
drwxrwxr-x 2 huangkai huangkai 4096 Dec 6 11:52 config-server
-rw-rw-r-- 1 huangkai huangkai 1709 Dec 6 10:49 docker-compose.yml
-rw-r--r-- 1 huangkai huangkai 188 Nov 27 13:43 Dockerfile
drwxr-xr-x 2 huangkai huangkai 4096 Dec 6 09:22 eureka-server
drwxrwxr-x 2 huangkai huangkai 4096 Dec 6 10:24 oauth2-server
drwxrwxr-x 2 huangkai huangkai 4096 Dec 6 10:19 sprintboot-admin
如上,docker-compose.yml 文件内容 请 点击这里 查看, Dockerfile 文件内容请点击这里 查看
在此目录下执行如下命令启动 eureka:
[huangkai@localhost springcloud]$ docker up -d eureka-server
8780 ~ 8789
与eureka 类似
8770 ~ 8779
与eureka 类似
7100 ~ 7109
与eureka 类似