Java微服务框架复盘

编程

依赖关系.

本次微服务选用的组件如下:

  1. redis
  2. RabbitMQ
  3. MySQL
  4. Nacos
  5. SpringCloud (github.com/zhoutaoo/SpringCloud)

辅助组件有

docker-1.13.0

/opt/bin/docker-1.13.0/docker-compose version

docker-compose version 1.21.0, build 5920eb0

docker-py version: 3.2.1

CPython version: 3.6.5

OpenSSL version: OpenSSL 1.0.1t 3 May 2016

Nacos 的启动方式:

bash startup.sh  -m standalone

/opt/java/jdk1.8.0_111//bin/java -Xms512m -Xmx512m -Xmn256m -Dnacos.standalone=true -Djava.ext.dirs=/opt/java/jdk1.8.0_111//jre/lib/ext:/opt/java/jdk1.8.0_111//lib/ext:/dev/shm/nacos/plugins/cmdb:/dev/shm/nacos/plugins/mysql -Xloggc:/dev/shm/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/dev/shm/nacos -Dloader.path=/dev/shm/nacos/plugins/health -jar /dev/shm/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/dev/shm/nacos/conf/ --logging.config=/dev/shm/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288

nacos is starting with standalone

nacos is starting,you can check the /dev/shm/nacos/logs/start.out

之后 在 http://127.0.0.1:8848/nacos/index.html 登录, 初始用户名/密码,都是 nacos/nacos

以上是 Java微服务框架复盘 的全部内容, 来源链接: utcz.com/z/510599.html

回到顶部