From 2700f11d806cd786e68d4277f4eebd1f433d9a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E7=A5=9E=E5=A5=87?= <11824665+king-anne-1@user.noreply.gitee.com> Date: Sat, 18 May 2024 06:02:48 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2013=E9=9F=A9=E7=94=B3?= =?UTF-8?q?=E7=90=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "13\351\237\251\347\224\263\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "13\351\237\251\347\224\263\347\220\246/.keep" diff --git "a/13\351\237\251\347\224\263\347\220\246/.keep" "b/13\351\237\251\347\224\263\347\220\246/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 203ee1c5dbf1e281d45d2bf5ff04121527c42683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E7=A5=9E=E5=A5=87?= <11824665+king-anne-1@user.noreply.gitee.com> Date: Sat, 18 May 2024 07:41:06 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2013?= =?UTF-8?q?=E9=9F=A9=E7=94=B3=E7=90=A6/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "13\351\237\251\347\224\263\347\220\246/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "13\351\237\251\347\224\263\347\220\246/.keep" diff --git "a/13\351\237\251\347\224\263\347\220\246/.keep" "b/13\351\237\251\347\224\263\347\220\246/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee From 2ea3f6655b921e157a8c8500c2493124514f25b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E7=A5=9E=E5=A5=87?= <11824665+king-anne-1@user.noreply.gitee.com> Date: Sat, 18 May 2024 07:42:33 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=202024?= =?UTF-8?q?0514.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 20240514.md | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 20240514.md diff --git a/20240514.md b/20240514.md deleted file mode 100644 index 288f918..0000000 --- a/20240514.md +++ /dev/null @@ -1,33 +0,0 @@ -1.创建一个新文件夹,用vs code打开 - -2.在VS Code查看 打开终端 - -3.npm add -D vitepress // 利用node来安装vitepress - -4.npx vitepress init // 启用vitepress的设置向导 - ◇ Where should VitePress initialize the config? - │ ./docs - -在./后面写入docs,其余全部回车 - -5.npm run docs:dev // 本地预览生成的效果 -点入生成效果的网站并进行编辑 - -6.利用cmd的tree /F 命令得到所有笔记的文件名,再将 - - - items: [ - { text: 'Markdown Examples', link: '/markdown-examples' }, - { text: 'Runtime API Examples', link: '/api-examples' } - ] - 这种要配置的格式扔给AI,让它整合文件名到这种格式 - -7.如果你要将笔记放在一个统一的子目录中访问,用在配置文件config中加入一行 - - 'base':'/books/', - -8.npm run docs:build // 将md文件生成html到\docs\.vitepress\dist 目录,想本地预览就执行npm run docs:preview - -9.登录自己的服务器,使用SSH工具,将dist上传到自己网站的目录 - -10.mv dist books // 将dist改名为books \ No newline at end of file -- Gitee From 321cedfbab7d756c8bcc20fe5aec90fbcbd333d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E7=A5=9E=E5=A5=87?= <11824665+king-anne-1@user.noreply.gitee.com> Date: Sat, 18 May 2024 07:42:47 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=202024?= =?UTF-8?q?0515.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 20240515.md | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 20240515.md diff --git a/20240515.md b/20240515.md deleted file mode 100644 index ebf42f0..0000000 --- a/20240515.md +++ /dev/null @@ -1,38 +0,0 @@ -准备好 虚拟机VM 17版本+Debian 12.5 64位的ISO文件 - -先安装VM,再创建一个新虚拟机 - -3.如何下载一个Debian的安装镜像 https://www.debian.org/ - -默认Debian没有安装SSH服务端,自己安装一个 - -apt-get install ssh -y // 需要root权限,安装SSH服务端 -ip addr show // 查看IP地址 -ifconfig // 需要root权限,可以借权sudo -// 以上两步,就可以让我们用普通用户远程登录了,但是默认下root是不可以直接登录的。需对ssh做配置 - -// 为了方便我们编辑文件。安装一个vim编辑器,默认是vi -5.修改ssh的服务端配置文件/etc/ssh/sshd_config文件 - -vim /etc/ssh/sshd_config -Port 22// 开启端口22 -PermitRootLogin yes // 允许root登录 -PasswordAuthentication yes // 采用密码验证模式 -PermitEmptyPasswords no // 禁用空密码 - - -// 重启ssh,让修改后的配置生效 - systemctl restart ssh -// /etc/init.d/ssh restart 同上的效果 -6.如何借用root权限 - -1. 安装sudo -apt-get install sudo -y -2. 将普通用户名加入 -vim /etc/sudoers -## -## Allow root to run any commands anywhere -root ALL=(ALL) ALL -用户名 ALL=(ALL) ALL - -3.重新登录普通用户,就可以使用sudo功能 \ No newline at end of file -- Gitee From 94e98bfd2bd2fc73270bb1b0ce648ac99d11aa69 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 May 2024 15:46:04 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240514.md" | 33 ++++++++++++++++ .../20240515.md" | 38 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 "13\351\237\251\347\224\263\347\220\246/20240514.md" create mode 100644 "13\351\237\251\347\224\263\347\220\246/20240515.md" diff --git "a/13\351\237\251\347\224\263\347\220\246/20240514.md" "b/13\351\237\251\347\224\263\347\220\246/20240514.md" new file mode 100644 index 0000000..288f918 --- /dev/null +++ "b/13\351\237\251\347\224\263\347\220\246/20240514.md" @@ -0,0 +1,33 @@ +1.创建一个新文件夹,用vs code打开 + +2.在VS Code查看 打开终端 + +3.npm add -D vitepress // 利用node来安装vitepress + +4.npx vitepress init // 启用vitepress的设置向导 + ◇ Where should VitePress initialize the config? + │ ./docs + +在./后面写入docs,其余全部回车 + +5.npm run docs:dev // 本地预览生成的效果 +点入生成效果的网站并进行编辑 + +6.利用cmd的tree /F 命令得到所有笔记的文件名,再将 + + + items: [ + { text: 'Markdown Examples', link: '/markdown-examples' }, + { text: 'Runtime API Examples', link: '/api-examples' } + ] + 这种要配置的格式扔给AI,让它整合文件名到这种格式 + +7.如果你要将笔记放在一个统一的子目录中访问,用在配置文件config中加入一行 + + 'base':'/books/', + +8.npm run docs:build // 将md文件生成html到\docs\.vitepress\dist 目录,想本地预览就执行npm run docs:preview + +9.登录自己的服务器,使用SSH工具,将dist上传到自己网站的目录 + +10.mv dist books // 将dist改名为books \ No newline at end of file diff --git "a/13\351\237\251\347\224\263\347\220\246/20240515.md" "b/13\351\237\251\347\224\263\347\220\246/20240515.md" new file mode 100644 index 0000000..ebf42f0 --- /dev/null +++ "b/13\351\237\251\347\224\263\347\220\246/20240515.md" @@ -0,0 +1,38 @@ +准备好 虚拟机VM 17版本+Debian 12.5 64位的ISO文件 + +先安装VM,再创建一个新虚拟机 + +3.如何下载一个Debian的安装镜像 https://www.debian.org/ + +默认Debian没有安装SSH服务端,自己安装一个 + +apt-get install ssh -y // 需要root权限,安装SSH服务端 +ip addr show // 查看IP地址 +ifconfig // 需要root权限,可以借权sudo +// 以上两步,就可以让我们用普通用户远程登录了,但是默认下root是不可以直接登录的。需对ssh做配置 + +// 为了方便我们编辑文件。安装一个vim编辑器,默认是vi +5.修改ssh的服务端配置文件/etc/ssh/sshd_config文件 + +vim /etc/ssh/sshd_config +Port 22// 开启端口22 +PermitRootLogin yes // 允许root登录 +PasswordAuthentication yes // 采用密码验证模式 +PermitEmptyPasswords no // 禁用空密码 + + +// 重启ssh,让修改后的配置生效 + systemctl restart ssh +// /etc/init.d/ssh restart 同上的效果 +6.如何借用root权限 + +1. 安装sudo +apt-get install sudo -y +2. 将普通用户名加入 +vim /etc/sudoers +## +## Allow root to run any commands anywhere +root ALL=(ALL) ALL +用户名 ALL=(ALL) ALL + +3.重新登录普通用户,就可以使用sudo功能 \ No newline at end of file -- Gitee