Skip to content

Commit

Permalink
修正一些描述错误
Browse files Browse the repository at this point in the history
  • Loading branch information
codingmiao committed Nov 8, 2018
1 parent 606df83 commit c944fcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
13 changes: 11 additions & 2 deletions linuxcfg.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# linux下的配置和使用
## 0、配置注册中心
用解压缩工具打开ngineureka.jar\BOOT-INF\classes\application.yml文件,这是一个标注的spring cloud配置
打开application.yml文件,这是一个标准的spring cloud配置

```
eureka:
client:
Expand All @@ -10,10 +11,16 @@ server:
tomcat:
uri-encoding: UTF-8
port: 10001
context-path: /ngineureka
servlet:
context-path: /${spring.application.name}
spring:
application:
name: ngineureka
thymeleaf:
prefix: classpath:/static/
suffix: .html
cache: false #开发时热部署用,正式环境时请去除
```
请将defaultZone改为注册中心地址

Expand Down Expand Up @@ -56,6 +63,8 @@ http {
default_type 'text/html';
charset utf-8;
include apps/ngineureka_location.conf;
#下面可添加其它转发规则
}
}
```
Expand Down
14 changes: 12 additions & 2 deletions wincfg.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# windows下的配置和使用
## 0、配置注册中心
用解压缩工具打开ngineureka.jar\BOOT-INF\classes\application.yml文件,这是一个标注的spring cloud配置
打开application.yml文件,这是一个标准的spring cloud配置

```
eureka:
client:
Expand All @@ -10,10 +11,16 @@ server:
tomcat:
uri-encoding: UTF-8
port: 10001
context-path: /ngineureka
servlet:
context-path: /${spring.application.name}
spring:
application:
name: ngineureka
thymeleaf:
prefix: classpath:/static/
suffix: .html
cache: false #开发时热部署用,正式环境时请去除
```
请将defaultZone改为注册中心地址

Expand All @@ -27,6 +34,7 @@ recordCacheSize是可选的,记录最近操作的次数;
```
confPath=D:/nginx-1.8.1/conf/apps
heartbeatCycle=300
recordCacheSize=10
```

## 2、修改nginx.conf
Expand Down Expand Up @@ -54,6 +62,8 @@ http {
default_type 'text/html';
charset utf-8;
include apps/ngineureka_location.conf;
#下面可添加其它转发规则
}
}
```
Expand Down

0 comments on commit c944fcb

Please sign in to comment.