In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to build nacos server in docker. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Docker get nacos image docker pull nacos/nacos-server get the latest version of nacos create mapping directory (ignore) configure maria database write configuration file custom.propertiesserver.contextPath=/nacosserver.servlet.contextPath=/nacosserver.port=8848spring.datasource.platform=mysqldb.num=1db.url.0=jdbc:mysql://xxx.xx.xx.xx:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=truedb.user=rootdb.password=1234nacos.cmdb.dumpTaskInterval=3600nacos.cmdb.eventTaskInterval=10nacos.cmdb.labelTaskInterval=300nacos.cmdb.loadDataAtStart=falsemanagement.metrics.export.elastic.enabled=falsemanagement .metrics.export.export.enabled = falseserver.tomcat.accesslog.enabled=trueserver.tomcat.accesslog.pattern=%h% l% u% t "% r"% s% b% D {User-Agent} inacos.security.ignore.urls=/ / * * / * .css, / * * / * .js, / * * / * .html, / * * / * .map, / * * / * .svg, / * * / * .png, / * * / * .ico, / console-fe/public/**,/v1/auth/login,/v1/console/health/**,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/** / v1/console/server/**nacos.naming.distro.taskDispatchThreadCount=1nacos.naming.distro.taskDispatchPeriod=200nacos.naming.distro.batchSyncKeyCount=1000nacos.naming.distro.initDataRatio=0.9nacos.naming.distro.syncRetryDelay=5000nacos.naming.data.warmup=truenacos.naming.expireInstance=true tried to map conf/appcalition.properties but it didn't work. Start nacosdocker run-- name nacos-d-p 8848-- privileged=true-- restart=always-e JVM_XMS=256m-e JVM_XMX=256m-e MODE=standalone-e PREFER_HOST_MODE=hostname-v D:/nacos/data:/home/ Nacos/data-v D:/nacos/logs:/home/nacos/logs-v D:/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties nacos/nacos-server log because I mapped the log directory locally So you can check the startup log of D:\ nacos\ logs\ start.out after successful startup, you can access the nacos account / password in http://127.0.0.1:8848/nacos/: nacos/nacos is here about how to build nacos server in docker. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.