Skip to content

Commit 655e8bd

Browse files
committed
update docs
1 parent 2bffbaa commit 655e8bd

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ nginx.exe -c conf/nginx.conf
8282

8383
`nginx.conf` 配置文件如下:
8484

85-
> **_`conf/nginx.conf` 是 nginx 的默认配置文件。你也可以使用 nginx -c 指定你的配置文件_**
85+
> ***`conf/nginx.conf` 是 nginx 的默认配置文件。你也可以使用 nginx -c 指定你的配置文件***
8686
8787
```nginx
8888
#运行用户
@@ -253,7 +253,7 @@ http {
253253

254254
nginx 也可以实现简单的负载均衡功能。
255255

256-
![](http://dunwu.test.upcdn.net/cs/web/nginx/nginx-load-balance.png!zp)
256+
![img](http://dunwu.test.upcdn.net/cs/web/nginx/nginx-load-balance.png!zp)
257257

258258
假设这样一个应用场景:将应用部署在 192.168.1.11:80、192.168.1.12:80、192.168.1.13:80 三台 linux 环境的服务器上。网站域名叫 www.helloworld.com,公网 IP 为 192.168.1.11。在公网 IP 所在的服务器上部署 nginx,对所有请求做负载均衡处理(下面例子中使用的是加权轮询策略)。
259259

File renamed without changes.

docs/nginx-introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Nginx 的高并发,官方测试支持 5 万并发连接。实际生产环境
3333

3434
### 主从模式
3535

36-
![](https://raw.githubusercontent.com/dunwu/images/master/snap/20200125161055.png)
36+
![img](https://raw.githubusercontent.com/dunwu/images/master/snap/20200125161055.png)
3737

3838
**Nginx 采用一主多从的主从架构**
3939

@@ -121,4 +121,4 @@ LVS 作为入口负载均衡,将请求转发到二级 Ngnix 服务器,Ngnix
121121

122122
Ngnix 高可用,至少包含两个 Ngnix 服务器,一台主服务器,一台备服务器,之间使用 Keepalived 做健康监控和故障检测。开放 VIP 端口,通过防火墙进行外部映射。
123123

124-
DNS 解析公网的 IP 实际为 VIP。
124+
DNS 解析公网的 IP 实际为 VIP。

docs/nginx-ops.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ tar zxvf nginx-1.12.2.tar.gz
129129
```bash
130130
cd /opt/nginx/nginx-1.12.2
131131
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/pcre/pcre-8.35
132+
make && make install
132133
```
133134

134135
(3)关闭防火墙
@@ -175,7 +176,7 @@ $ systemctl enable nginx.service
175176
- 停止服务:`docker exec -it my-nginx nginx -s stop` 或者:`docker stop my-nginx`
176177
- 重新启动服务:`docker restart my-nginx`
177178

178-
## 脚本
179+
## 三、脚本
179180

180181
> CentOS7 环境安装脚本:[软件运维配置脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
181182
@@ -189,7 +190,7 @@ $ systemctl enable nginx.service
189190

190191
- 默认安装 - 执行以下任意命令即可:
191192

192-
```sh
193+
```shell
193194
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
194195
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
195196
```

docs/nginx-quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ nginx.exe -c conf/nginx.conf
8282

8383
`nginx.conf` 配置文件如下:
8484

85-
> **_`conf/nginx.conf` 是 nginx 的默认配置文件。你也可以使用 nginx -c 指定你的配置文件_**
85+
> ***`conf/nginx.conf` 是 nginx 的默认配置文件。你也可以使用 nginx -c 指定你的配置文件***
8686
8787
```nginx
8888
#运行用户
@@ -253,7 +253,7 @@ http {
253253

254254
nginx 也可以实现简单的负载均衡功能。
255255

256-
![](http://dunwu.test.upcdn.net/cs/web/nginx/nginx-load-balance.png!zp)
256+
![img](http://dunwu.test.upcdn.net/cs/web/nginx/nginx-load-balance.png!zp)
257257

258258
假设这样一个应用场景:将应用部署在 192.168.1.11:80、192.168.1.12:80、192.168.1.13:80 三台 linux 环境的服务器上。网站域名叫 www.helloworld.com,公网 IP 为 192.168.1.11。在公网 IP 所在的服务器上部署 nginx,对所有请求做负载均衡处理(下面例子中使用的是加权轮询策略)。
259259

0 commit comments

Comments
 (0)