From a4aa6cb8e330c5a867691a05f9c432b687c8c02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=9F=E8=BE=89?= <11764051+strange-nianqian@user.noreply.gitee.com> Date: Wed, 15 May 2024 11:55:25 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 02/.keep diff --git a/02/.keep b/02/.keep new file mode 100644 index 0000000..e69de29 -- Gitee From 88b4d317caaea96d8fbaf010ef93821303c6f895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=9F=E8=BE=89?= <11764051+strange-nianqian@user.noreply.gitee.com> Date: Wed, 15 May 2024 11:55:49 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=2002=20?= =?UTF-8?q?=E4=B8=BA=2002=E6=9E=97=E6=99=9F=E8=BE=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02/.keep => "02\346\236\227\346\231\237\350\276\211/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename 02/.keep => "02\346\236\227\346\231\237\350\276\211/.keep" (100%) diff --git a/02/.keep "b/02\346\236\227\346\231\237\350\276\211/.keep" similarity index 100% rename from 02/.keep rename to "02\346\236\227\346\231\237\350\276\211/.keep" -- Gitee From ec982c407a762c08a73bf45af56872e16691877a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=9F=E8=BE=89?= <11764051+strange-nianqian@user.noreply.gitee.com> Date: Wed, 15 May 2024 12:05:09 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=2002=E6=9E=97?= =?UTF-8?q?=E6=99=9F=E8=BE=89=20=E4=B8=BA=2002=20=E6=9E=97=E6=99=9F?= =?UTF-8?q?=E8=BE=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" => "02 \346\236\227\346\231\237\350\276\211/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "02\346\236\227\346\231\237\350\276\211/.keep" => "02 \346\236\227\346\231\237\350\276\211/.keep" (100%) diff --git "a/02\346\236\227\346\231\237\350\276\211/.keep" "b/02 \346\236\227\346\231\237\350\276\211/.keep" similarity index 100% rename from "02\346\236\227\346\231\237\350\276\211/.keep" rename to "02 \346\236\227\346\231\237\350\276\211/.keep" -- Gitee From f362539d1b4fa65ee9d5fc61707e7d3fda5f5032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E6=99=9F=E8=BE=89?= <11764051+strange-nianqian@user.noreply.gitee.com> Date: Wed, 15 May 2024 12:05:46 +0000 Subject: [PATCH 4/4] =?UTF-8?q?02=20=E6=9E=97=E6=99=9F=E8=BE=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林晟辉 <11764051+strange-nianqian@user.noreply.gitee.com> --- ...20240515 \345\210\235\350\257\206Liunx.md" | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 "02 \346\236\227\346\231\237\350\276\211/20240515 \345\210\235\350\257\206Liunx.md" diff --git "a/02 \346\236\227\346\231\237\350\276\211/20240515 \345\210\235\350\257\206Liunx.md" "b/02 \346\236\227\346\231\237\350\276\211/20240515 \345\210\235\350\257\206Liunx.md" new file mode 100644 index 0000000..4ae51f9 --- /dev/null +++ "b/02 \346\236\227\346\231\237\350\276\211/20240515 \345\210\235\350\257\206Liunx.md" @@ -0,0 +1,48 @@ +## Liunx + +``` +一种操作系统内核,有centos,debian,redhat等。 +``` + +## 命令 + +### 查看ip地址 + +```js +ip addr show +``` + +### ssh + +```js +apt-get install ssh + +apt-get install vim + +vim /etc/ssh/sshd_config + +port 21 打开端口 + +permitrootlogin yes 启用root登录 + +passwordauthentication yes 验证密码 + +permitemptypasswords no 禁止使用空密码登录 + +/etc/init.d/ssh restart +``` + +### sudo + +``` +su root 更换给root模式 + +apt-get install sudo + +sudo vim /etc/sudoers + +root all=(all:all) all + +用户名 all=(all:all) all 添加用户名 +``` + -- Gitee