-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf441d3
commit 9940348
Showing
4 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ tags: | |
- 服务器 | ||
- 部署 | ||
- Fail2ban | ||
- 安全 | ||
--- | ||
|
||
![Fail2ban](fail2ban.webp) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,14 @@ date: 2023-12-26 23:18:38 | |
|
||
如果你是 Linux / Mac 用户,那么通过发行版的 **包管理器** 即可安装。 | ||
|
||
如果你是 Windows 用户,那么可以通过 [Nodejs 官网](https://nodejs.org/en/download) 下载安装 Nodejs,Git 可以通过 [Git 官网](https://git-scm.com/downloads) 下载安装。 | ||
如果你是 Windows 用户,那么可以通过 [Nodejs 官网](https://nodejs.org/en/download) 下载安装 Nodejs,Git 可以通过 [Git 官网](https://git-scm.com/downloads) 下载安装,并配置好对应的 Nodejs 环境变量。 | ||
|
||
|
||
安装完毕后,输入以下命令检验是否安装成功: | ||
```bash | ||
node -v | ||
npm -v | ||
git -v | ||
git --version | ||
``` | ||
|
||
### 0.2 配置 Git | ||
|
@@ -45,6 +45,7 @@ git -v | |
```bash | ||
git config --global user.name "用户名" | ||
git config --global user.email 邮箱 | ||
git config --global init.defaultBranch main | ||
``` | ||
|
||
执行以下命令检验是否配置成功: | ||
|
@@ -79,7 +80,7 @@ ssh-keygen -t ed25519 -C "[email protected]" | |
```bash | ||
npm install hexo-cli -g | ||
``` | ||
Linux 可能需要 sudo 权限来执行上述命令。 | ||
Linux 可能需要 sudo 权限来执行上述命令,Windows 可能需要管理员权限来执行上述命令。 | ||
|
||
安装完毕后,输入以下命令检验是否安装成功: | ||
```bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ tags: | |
- SSH | ||
- ufw | ||
- Fail2ban | ||
- 安全 | ||
abbrlink: 4cde56ee | ||
date: 2024-03-01 22:25:20 | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters