Skip to content

Commit

Permalink
Merge pull request #12 from greatjiang/feature/note
Browse files Browse the repository at this point in the history
更新known_hosts解释
  • Loading branch information
greatjiang authored Jun 12, 2024
2 parents 7685e42 + e9d24e4 commit da3d3d0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
26 changes: 13 additions & 13 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ export default defineConfig({
items: [
{ text: '全栈日记', link: '/projects/full-stack-journal' },
{ text: 'Vue3组件库', link: '/projects/vue3-components' },
{
text: '完整的企业级项目架构教程',
collapsed: true,
link: '/projects/architect/overview.md',
items: [
// { text: '项目概述', link: '/projects/architect/overview.md' },
{ text: 'gitlab搭建', link: '/projects/architect/gitlab.md' },
{ text: 'h5项目脚手架', link: '/projects/architect/h5.md' },
{ text: '后端接口API', link: '/projects/architect/api.md' },
{ text: '后台管理系统', link: '/projects/architect/admin.md' },
{ text: '服务器部署', link: '/projects/architect/server.md' }
]
},
// {
// text: '完整的企业级项目架构教程',
// collapsed: true,
// link: '/projects/architect/overview.md',
// items: [
// // { text: '项目概述', link: '/projects/architect/overview.md' },
// { text: 'gitlab搭建', link: '/projects/architect/gitlab.md' },
// { text: 'h5项目脚手架', link: '/projects/architect/h5.md' },
// { text: '后端接口API', link: '/projects/architect/api.md' },
// { text: '后台管理系统', link: '/projects/architect/admin.md' },
// { text: '服务器部署', link: '/projects/architect/server.md' }
// ]
// },
]
},
],
Expand Down
5 changes: 0 additions & 5 deletions docs/course/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ This page will automatically reload every 5 seconds.
用户:root
初始密码在gitlab的initial_root_password文件中
sudo cat /etc/gitlab/initial_root_password

## 设置中文版

## 创建项目
其它操作跟github一样
3 changes: 1 addition & 2 deletions docs/course/ssh-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ config
ssh用户配置文件默认在.ssh/config这个路径, 使用config文件之后, 无需再去记机器ip,密码,各种ssh参数,也不用再每次都敲各种参数或配置

known_hosts
known_hosts 文件存储用户访问的主机的公钥
当你通过SSH连接到一个新的远程服务器时,系统会提示你是否要将远程主机添加到 known_hosts 文件
A通过ssh首次连接到B,B会将公钥1(host key)传递给A,A将公钥1存入known_hosts文件中,以后A再连接B时,B依然会传递给A一个公钥2,OpenSSH会核对公钥,通过对比公钥1与公钥2 是否相同来进行简单的验证。

## 创建公钥私钥
如果 ~/.ssh目录下没有,则需要自己手动创建
Expand Down
3 changes: 1 addition & 2 deletions docs/projects/architect/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
5. 设置CI/CD 【重点】
6. ip改成域名
7. 设置内外网项目访问
8. 修改语言
用户设置/偏好设置/本地化




Expand Down
3 changes: 2 additions & 1 deletion docs/projects/architect/server.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
5.服务器部署
nginx
nginx
配置gitlab项目路径

0 comments on commit da3d3d0

Please sign in to comment.