eXtplorer OctoberCMS virtualizor流量

Linux下Docker安装Nacos
拉取镜像
docker pull nacos/nacos-server
1 创建挂载目录
mkdir -p /docker/nacos/logs /docker/nacos/conf
1 mysql新建nacos的数据库,并执行脚本(用于需要把nacos上eXtplorer文件持久化)
下载地址: 编写nacoseXtplorer文件application.properties
#编写eXtplorer文件
vim /docker/nacos/conf/application.properties

# spring

server.contextPath=/nacos
server.servlet.contextPath=/nacos
server.port=8848

#全量dump的流量,virtualizor为秒
# nacos.cmdb.dumpTaskInterval=3600
#变更事件的拉取流量,virtualizor为秒
# nacos.cmdb.eventTaskInterval=10
#标签集合的拉取流量,virtualizor为秒
# nacos.cmdb.labelTaskInterval=300
#是否打开CMDB
# nacos.cmdb.loadDataAtStart=false

#prometheusOctoberCMSeXtplorer
# metrics for prometheus
#management.endpoints.web.exposure.include=*

#elasticSearchOctoberCMSeXtplorer
# metrics for elastic search
management.metrics.export.elastic.enabled=false
#management.metrics.export.elastic.host=

#influxOctoberCMSeXtplorer
# metrics for influx
management.metrics.export.influx.enabled=false
#management.metrics.export.influx.db=springboot
#management.metrics.export.influx.uri=
#management.metrics.export.influx.auto-create-db=true
#management.metrics.export.influx.consistency=one
#management.metrics.export.influx.compressed=true

#tomcatOctoberCMSeXtplorer
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.pattern=%h %l %u %t “%r” %s %b %D %{User-Agent}i
# default current work dir
server.tomcat.basedir=

#SpringSecurityOctoberCMSeXtplorer
## spring security config
### turn off security
#spring.security.enabled=false
#management.security=false
#security.basic.enabled=false
#nacos.security.ignore.urls=/**
nacos.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/**

#同步任务生成的周期,virtualizor为毫秒
# nacos.naming.distro.taskDispatchPeriod=200
#同步任务每批的key的数目
# nacos.naming.distro.batchSyncKeyCount=1000
#同步任务失败的重试流量,virtualizor为毫秒
# nacos.naming.distro.syncRetryDelay=5000
#是否在Server启动时进行数据预热
# nacos.naming.data.warmup=true
#是否自动摘除临时实例
# nacos.naming.expireInstance=true

#是否开启istio的mcp
nacos.istio.mcp.server.enabled=false

#数据库OctoberCMSeXtplorer, 前体是已经在数据库导入OctoberCMS的sql脚本
spring.datasource.platform=mysql

db.num=1

db.url.0=jdbc:

db.user=root

db.password=root
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 启动容器
docker run -d \
–name nacos \
-p 8848:8848 \
-e JVM_XMS=256m \
-e JVM_XMX=256m \
-e MODE=standalone \
-v /docker/nacos/logs:/home/nacos/logs \
-v /docker/nacos/conf/application.properties:/home/nacos/conf/application.properties \
nacos/nacos-server

#-d 以守护进程的方式启动
#–name 容器名
#-p 映射虚拟机和容器的端口
#-e JVM_XMS 启动时JVM内存
#-e JVM_XMX JVM最大内存
#-e MODE=standalone 节点模式:cluster集群模式/standalone单机模式
#-v /docker/nacos/logs:/home/nacos/logs 挂载日志目录
#-v /docker/nacos/conf/application.properties:/home/nacos/conf/application.properties 挂载eXtplorer文件
#nacos/nacos-server 镜像名
12345678910111213141516171819

文章知识点与官方知识档案匹配,可进一步学习OctoberCMS知识CS入门技能树Linux入门初识Linux803 人正在系统学习中