- 新增 nginx.conf 和 default/nginx.conf 文件,提供基本的 Nginx 配置 - 添加 README.md 文件,说明如何下载、启用和测试 Nginx 配置 - 创建 default 目录,用于存放默认配置文件
27 lines
359 B
Markdown
27 lines
359 B
Markdown
# Git 仓库
|
|
|
|
## Nginx 配置
|
|
|
|
下载配置
|
|
|
|
```bash
|
|
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/www/default/nginx.conf > /etc/nginx/sites-available/default
|
|
```
|
|
|
|
启用配置
|
|
|
|
```bash
|
|
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
|
```
|
|
|
|
测试配置
|
|
|
|
```bash
|
|
nginx -t
|
|
```
|
|
|
|
重启 nginx
|
|
|
|
```bash
|
|
systemctl restart nginx
|
|
``` |