docs(www): 添加 Nginx 配置文件和使用说明
- 新增 nginx.conf 和 default/nginx.conf 文件,提供基本的 Nginx 配置 - 添加 README.md 文件,说明如何下载、启用和测试 Nginx 配置 - 创建 default 目录,用于存放默认配置文件
This commit is contained in:
27
www/default/README.md
Normal file
27
www/default/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user