linux-tutorial/codes/deploy/tool/nginx/README.md

21 lines
419 B
Markdown
Raw Normal View History

2018-02-24 10:18:36 +08:00
# 安装 Nginx
## linux 安装 nginx 通用脚本
使用方法:
```sh
2019-01-23 17:32:23 +08:00
curl -o- https://raw.githubusercontent.com/dunwu/OS/master/codes/deploy/tool/nginx/install-nginx.sh | bash
2018-02-24 10:18:36 +08:00
```
2018-09-29 10:16:24 +08:00
脚本会下载解压 nginx 到 `/opt/nginx` 路径下。
2018-02-24 10:18:36 +08:00
## Centos 安装 nginx 脚本
使用方法:
```sh
2019-01-23 17:32:23 +08:00
curl -o- https://raw.githubusercontent.com/dunwu/OS/master/codes/deploy/tool/nginx/install-nginx-by-yum.sh | bash
2018-02-24 10:18:36 +08:00
```