Skip to content

Commit

Permalink
update articles
Browse files Browse the repository at this point in the history
  • Loading branch information
mobeicanyue committed Mar 8, 2024
1 parent fef7de0 commit 51aa5dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
11 changes: 5 additions & 6 deletions source/_posts/Caddy-installation-and-usage-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ Nginx 是一个被广泛使用的 Web 服务器,但是它的配置相对 Caddy

## 1. 安装 Caddy

先更新系统软件包列表
输入以下命令安装 Caddy
```bash
sudo apt update
```

然后安装 Caddy:
```bash
sudo apt install caddy
```
系统会提示是否安装,`回车` 或输入 `Y` 确认安装。
Expand Down Expand Up @@ -60,7 +56,10 @@ Caddy 有两种配置方式,一种是使用 `Caddyfile`,另一种是使用 J

![Caddyfile vs json](caddyfile-json.webp)

Caddy 不强制要求配置文件放到哪个特定文件夹,默认情况下,在当前配置的目录运行 Caddy 就可以跑起来了
Caddyfile 默认位置是 `/etc/caddy/Caddyfile`。但也可以使用 `-conf` 参数指定配置文件的位置:
```bash
caddy run -conf /path/to/Caddyfile
```


### 3.2 Caddy 常用命令
Expand Down
2 changes: 1 addition & 1 deletion source/_posts/Compress-deploy-code-size.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 压缩部署的代码
title: 压缩前端代码
tags:
- hexo
- 优化
Expand Down
2 changes: 0 additions & 2 deletions source/_posts/Generate-unique-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ npm install hexo-abbrlink --save

```yml
permalink: posts/:abbrlink/
#
permalink: posts/:abbrlink.html
```
然后在这行下面添加:
Expand Down
6 changes: 1 addition & 5 deletions source/_posts/Nginx-installation-and-usage-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ Nginx 是一个高性能的开源 Web 服务器,也可以作为反向代理服

## 1. 安装 Nginx

先更新系统软件包列表
输入以下命令安装 Nginx
```bash
sudo apt update
```

然后安装 Nginx:
```bash
sudo apt install nginx
```
系统会提示是否安装,`回车` 或输入 `Y` 确认安装。
Expand Down

0 comments on commit 51aa5dd

Please sign in to comment.