Fix README layout issues.#274
This commit is contained in:
parent
4f16131a4c
commit
59d04f037b
11
README.md
11
README.md
@ -137,12 +137,21 @@ characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
|
|||||||
| NACOS_AUTH_IDENTITY_VALUE | nacos.core.auth.server.identity.value | default : security |
|
| NACOS_AUTH_IDENTITY_VALUE | nacos.core.auth.server.identity.value | default : security |
|
||||||
| NACOS_SECURITY_IGNORE_URLS | nacos.security.ignore.urls | default : `/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**` |
|
| NACOS_SECURITY_IGNORE_URLS | nacos.security.ignore.urls | default : `/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**` |
|
||||||
|
|
||||||
~~# Advanced configuration~~
|
## Advanced configuration
|
||||||
|
|
||||||
~~If the above property configuration list does not meet your requirements, you can mount the `custom.properties` file
|
~~If the above property configuration list does not meet your requirements, you can mount the `custom.properties` file
|
||||||
into the `/home/nacos/init.d/` directory of the container, where the spring properties can be configured, and the
|
into the `/home/nacos/init.d/` directory of the container, where the spring properties can be configured, and the
|
||||||
priority is higher than `application.properties` file~~
|
priority is higher than `application.properties` file~~
|
||||||
|
|
||||||
|
If you have a lot of custom configuration needs, It is highly recommended to mount `application.properties` in
|
||||||
|
production environment.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```docker
|
||||||
|
docker run --name nacos-standalone -e MODE=standalone -v /path/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:2.1.1
|
||||||
|
```
|
||||||
|
|
||||||
## Nacos + Grafana + Prometheus
|
## Nacos + Grafana + Prometheus
|
||||||
|
|
||||||
Usage reference:[Nacos monitor-guide](https://nacos.io/zh-cn/docs/monitor-guide.html)
|
Usage reference:[Nacos monitor-guide](https://nacos.io/zh-cn/docs/monitor-guide.html)
|
||||||
|
35
README_ZH.md
35
README_ZH.md
@ -19,7 +19,8 @@
|
|||||||
* 从Nacos 1.3.1版本开始,数据库存储已经升级到8.0, 并且它向下兼容
|
* 从Nacos 1.3.1版本开始,数据库存储已经升级到8.0, 并且它向下兼容
|
||||||
* 例子演示中使用的数据库是为了方便定制了官方Mysql镜像, 自动初始化的数据库脚本.
|
* 例子演示中使用的数据库是为了方便定制了官方Mysql镜像, 自动初始化的数据库脚本.
|
||||||
* 如果你使用自定义数据库,
|
* 如果你使用自定义数据库,
|
||||||
第一次启动Nacos前需要手动初始化 [数据库脚本](https://github.com/alibaba/nacos/blob/develop/distribution/conf/nacos-mysql.sql) .
|
第一次启动Nacos前需要手动初始化 [数据库脚本](https://github.com/alibaba/nacos/blob/develop/distribution/conf/nacos-mysql.sql)
|
||||||
|
.
|
||||||
|
|
||||||
## 快速开始
|
## 快速开始
|
||||||
|
|
||||||
@ -127,21 +128,28 @@
|
|||||||
浏览器访问:http://127.0.0.1:8848/nacos/
|
浏览器访问:http://127.0.0.1:8848/nacos/
|
||||||
|
|
||||||
## 属性配置列表
|
## 属性配置列表
|
||||||
|
|
||||||
| 属性名称 | 描述 | 选项 |
|
| 属性名称 | 描述 | 选项 |
|
||||||
| --------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------ |
|
| --------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------ |
|
||||||
| MODE | 系统启动方式: 集群/单机 | cluster/standalone 默认 **cluster** |
|
| MODE | 系统启动方式: 集群/单机 | cluster/standalone 默认 **
|
||||||
|
cluster** |
|
||||||
| NACOS_SERVERS | 集群地址 | p1:port1空格ip2:port2 空格ip3:port3 |
|
| NACOS_SERVERS | 集群地址 | p1:port1空格ip2:port2 空格ip3:port3 |
|
||||||
| PREFER_HOST_MODE | 支持IP还是域名模式 | hostname/ip 默认**IP** |
|
| PREFER_HOST_MODE | 支持IP还是域名模式 | hostname/ip 默认**
|
||||||
| NACOS_SERVER_PORT | Nacos 运行端口 | 默认**8848** |
|
IP** |
|
||||||
|
| NACOS_SERVER_PORT | Nacos 运行端口 | 默认**
|
||||||
|
8848** |
|
||||||
| NACOS_SERVER_IP | 多网卡模式下可以指定IP | |
|
| NACOS_SERVER_IP | 多网卡模式下可以指定IP | |
|
||||||
| SPRING_DATASOURCE_PLATFORM | 单机模式下支持MYSQL数据库 | mysql / 空 默认:空 |
|
| SPRING_DATASOURCE_PLATFORM | 单机模式下支持MYSQL数据库 | mysql / 空 默认:空 |
|
||||||
| MYSQL_SERVICE_HOST | 数据库 连接地址 | |
|
| MYSQL_SERVICE_HOST | 数据库 连接地址 | |
|
||||||
| MYSQL_SERVICE_PORT | 数据库端口 | 默认 : **3306** |
|
| MYSQL_SERVICE_PORT | 数据库端口 | 默认 : **
|
||||||
|
3306** |
|
||||||
| MYSQL_SERVICE_DB_NAME | 数据库库名 | |
|
| MYSQL_SERVICE_DB_NAME | 数据库库名 | |
|
||||||
| MYSQL_SERVICE_USER | 数据库用户名 | |
|
| MYSQL_SERVICE_USER | 数据库用户名 | |
|
||||||
| MYSQL_SERVICE_PASSWORD | 数据库用户密码 | |
|
| MYSQL_SERVICE_PASSWORD | 数据库用户密码 | |
|
||||||
| MYSQL_SERVICE_DB_PARAM | 数据库连接参数 | 默认:**characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false** |
|
| MYSQL_SERVICE_DB_PARAM | 数据库连接参数 | 默认:**
|
||||||
| MYSQL_DATABASE_NUM | 数据库个数 | 默认:**1** |
|
characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false** |
|
||||||
|
| MYSQL_DATABASE_NUM | 数据库个数 | 默认:**
|
||||||
|
1** |
|
||||||
| JVM_XMS | -Xms | 默认 :1g |
|
| JVM_XMS | -Xms | 默认 :1g |
|
||||||
| JVM_XMX | -Xmx | 默认 :1g |
|
| JVM_XMX | -Xmx | 默认 :1g |
|
||||||
| JVM_XMN | -Xmn | 512m |
|
| JVM_XMN | -Xmn | 512m |
|
||||||
@ -162,11 +170,20 @@
|
|||||||
| NACOS_AUTH_IDENTITY_VALUE | nacos.core.auth.server.identity.value | default : security |
|
| NACOS_AUTH_IDENTITY_VALUE | nacos.core.auth.server.identity.value | default : security |
|
||||||
| NACOS_SECURITY_IGNORE_URLS | nacos.security.ignore.urls | default : `/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**` |
|
| NACOS_SECURITY_IGNORE_URLS | nacos.security.ignore.urls | default : `/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**` |
|
||||||
|
|
||||||
~~## 高级配置~~
|
## 高级配置
|
||||||
|
|
||||||
~~如果上面的属性列表无法满足你的需求时,可以挂载`custom.properties`到`/home/nacos/init.d/` 目录,然后在里面像使用Spring Boot的`application.properties`
|
~~如果上面的属性列表无法满足你的需求时,可以挂载`custom.properties`到`/home/nacos/init.d/` 目录,然后在里面像使用Spring
|
||||||
|
Boot的`application.properties`
|
||||||
文件一样配置属性, 并且这个文件配置的属性**优先级高于application.properties**~~
|
文件一样配置属性, 并且这个文件配置的属性**优先级高于application.properties**~~
|
||||||
|
|
||||||
|
如果你有很多自定义配置的需求,强烈建议在生产环境对application.properties文件进行挂卷定义.
|
||||||
|
|
||||||
|
举个例子:
|
||||||
|
|
||||||
|
```docker
|
||||||
|
docker run --name nacos-standalone -e MODE=standalone -v /path/application.properties:/home/nacos/conf/application.properties -p 8848:8848 -d -p 9848:9848 nacos/nacos-server:2.1.1
|
||||||
|
```
|
||||||
|
|
||||||
## Nacos + Grafana + Prometheus
|
## Nacos + Grafana + Prometheus
|
||||||
|
|
||||||
使用参考:[Nacos monitor-guide](https://nacos.io/zh-cn/docs/monitor-guide.html)
|
使用参考:[Nacos monitor-guide](https://nacos.io/zh-cn/docs/monitor-guide.html)
|
||||||
|
Loading…
Reference in New Issue
Block a user