Nacos docker单机模式部署实现过程详解
作者:薛定谔的猫! 时间:2021-05-27 01:07:28
Nacos 的部署,我使用的时docker 部署(单机模式 Mysql),官网文档:https://nacos.io/zh-cn/docs/quick-start-docker.html
拉取代码:
git clone https://github.com/nacos-group/nacos-docker.git
进去目录
cd nacos-docker
启动镜像, docker-compnse 安装可以参考: https://www.jb51.net/article/196840.htm
docker-compose -f example/standalone-mysql-8.yaml up
部分启动日志
nacos-standalone-mysql | + echo 'nacos is starting,you can check the /home/nacos/logs/start.out'
nacos-standalone-mysql | nacos is starting,you can check the /home/nacos/logs/start.out
nacos-standalone-mysql | + nohup /usr/lib/jvm/java-1.8.0-openjdk/bin/java -Xms2g -Xmx2g -Xmn1g -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/home/nacos/conf/,/home/nacos/init.d/ --spring.config.name=application,custom --logging.config=/home/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos-standalone-mysql | + echo '/usr/lib/jvm/java-1.8.0-openjdk/bin/java -Xms2g -Xmx2g -Xmn1g -Dnacos.standalone=true -Dnacos.preferHostnameOverIp=true -Dnacos.member.list= -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk/lib/ext:/home/nacos/plugins/health:/home/nacos/plugins/cmdb:/home/nacos/plugins/mysql -Xloggc:/home/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dnacos.home=/home/nacos -jar /home/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/home/nacos/conf/,/home/nacos/init.d/ --spring.config.name=application,custom --logging.config=/home/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288'
mysql | 2020-09-16T03:24:54.950074Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
mysql | 2020-09-16T03:24:54.950101Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
mysql | 2020-09-16T03:24:54.950165Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.16) starting as process 1
mysql | 2020-09-16T03:24:54.951742Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
mysql | 2020-09-16T03:24:55.501620Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
mysql | 2020-09-16T03:24:55.505399Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
mysql | 2020-09-16T03:24:55.542657Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.16' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
mysql | 2020-09-16T03:24:55.711073Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060
mysql | mbind: Operation not permitted
访问 控制台地址: http://localhost:8848/nacos
来源:https://www.cnblogs.com/zhangXingSheng/p/13678173.html
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
使用Springboot 打jar包实现分离依赖lib和配置
![](https://img.aspxhome.com/file/2023/7/76537_0s.png)
面试初级Java开发问到Arrays
Jar包冲突问题原理及解决方案
![](https://img.aspxhome.com/file/2023/2/64112_0s.png)
Java Calendar类使用案例详解
java获取ip地址示例
c#中WinForm用OpencvSharp实现ROI区域提取的示例
![](https://img.aspxhome.com/file/2023/1/68071_0s.jpg)
C#图像处理之图像均值方差计算的方法
SpringMVC结构简介及常用注解汇总
JAVA实现扫描线算法(超详细)
![](https://img.aspxhome.com/file/2023/3/78333_0s.jpg)
Java异常 Factory method'sqlSessionFactory'rew exception;ested exception is java.lang.NoSuchMethodError:
![](https://img.aspxhome.com/file/2023/8/86818_0s.jpg)
详解直接插入排序算法与相关的Java版代码实现
![](https://img.aspxhome.com/file/2023/5/72635_0s.png)
SpringBoot2.0集成WebSocket实现后台向前端推送信息
![](https://img.aspxhome.com/file/2023/8/58308_0s.png)
Java 8 中的 10 个特性总结及详解
![](https://img.aspxhome.com/file/2023/0/65200_0s.png)
归并排序的原理及java代码实现
![](https://img.aspxhome.com/file/2023/4/75484_0s.gif)
执行java请求时导致在脚本执行结束时JVM无法退出
Struts2+uploadify多文件上传实例
![](https://img.aspxhome.com/file/2023/0/88740_0s.jpg)
Java设计模式之状态模式
![](https://img.aspxhome.com/file/2023/3/64003_0s.png)