diff --git "a/\345\210\230\345\277\203\346\200\241/20241119Linnux\345\222\214MVC\347\273\203\344\271\240.md" "b/\345\210\230\345\277\203\346\200\241/20241119Linux\345\222\214MVC\347\273\203\344\271\240.md" similarity index 38% rename from "\345\210\230\345\277\203\346\200\241/20241119Linnux\345\222\214MVC\347\273\203\344\271\240.md" rename to "\345\210\230\345\277\203\346\200\241/20241119Linux\345\222\214MVC\347\273\203\344\271\240.md" index 7444ed4668c98c3c9c880e030a1e5660a1549ee6..9d51c94c22d2aaabd46de8c7eab5ad29962e8316 100644 --- "a/\345\210\230\345\277\203\346\200\241/20241119Linnux\345\222\214MVC\347\273\203\344\271\240.md" +++ "b/\345\210\230\345\277\203\346\200\241/20241119Linux\345\222\214MVC\347\273\203\344\271\240.md" @@ -1,5 +1,102 @@ ## Linux练习 -效果图:![20241124165032](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124165032.png) +任务:尝试使用以下几种方式分别登录服务器,说明它们分别的注意事项,并说明它们之间的区别 +### ssh客户端 +![20241124190027](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124190027.png) +### tabby应用 +注意事项:Tabby是一个开源的终端平台,需要在本地安装,并且配置正确的服务器信息。 +区别:Tabby提供了一个用户友好的界面,支持多标签和颜色主题,使得远程连接和管理服务器更加便捷。 +### xShell +注意事项:xShell是一个Windows平台的终端仿真软件,需要在Windows系统上安装并配置。 +区别:xShell提供了多标签界面,支持SSH1和SSH2协议,适合在Windows环境下使用。 +### putty +注意事项:PuTTY是一个流行的SSH和telnet客户端,仅支持Windows平台。 +区别:PuTTY界面简洁,易于使用,但不支持多标签,每次只能连接一个服务器。 +### 任务:更新软件源,命令:apt update,并了解这一步的实际用处和意义 +![20241124191503](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124191503.png) +### 任务:更新软件和补丁,命令:apt upgrade -y,并了解这一步的实际用处意义 +![20241124191557](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124191557.png) +### 任务:熟悉并完成以下练习 + + 1.查看当前目录下的文件和文件夹 + 命令:ls + ![20241124190641](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124190641.png) + 2.查看当前路径 + 命令:pwd + ![20241124214621](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214621.png) + 3.创建一个新的文件夹 + 命令:mkdir [文件夹名] + ![20241124214125](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214125.png) + 4.删除一个文件夹 + 命令:rmdir [文件夹名](注意:只能删除空文件夹) + ![20241124214602](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214602.png) + 5.移动或重命名文件/文件夹 + 命令:mv [原路径] [新路径] + ![20241124214524](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214524.png) + 6.复制文件 + 命令:cp [源文件] [目标路径] + ![20241124214208](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214208.png) + 7.删除文件 + 命令:rm [文件名] + `rm Hi` + 8.查看文件内容 + 命令:cat [文件名] + ![20241124214447](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214447.png) + 9.分页查看文件内容 + 命令:less [文件名] + `less Hi` + 10.查找文件 + 命令:find / -name [文件名] + ![20241124214411](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214411.png) + 11.查看文件权限 + 命令:ls -l [文件或目录名] + `ls -l file.txt` + 12.改变文件权限 + 命令:chmod [权限] [文件或目录名] + `chmod 755 file.txt` + 13.改变文件所有者 + 命令:chown [新所有者] [文件或目录名] + ![20241124214335](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214335.png) + 14.查看当前登录用户 + 命令:whoami + ![20241124213235](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213235.png) + 15.查看系统运行时间和平均负载 + 命令:uptime + ![20241124213314](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213314.png) + 16.查看磁盘使用情况 + 命令:df -h + ![20241124213341](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213341.png) + 17.查看当前路径下的隐藏文件 + 命令:ls -a + ![20241124213419](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213419.png) + 18.创建一个空文件 + 命令:touch [文件名] + ![20241124214302](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124214302.png) + 19.查看当前系统的内核版本 + 命令:uname -r + ![20241124213512](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213512.png) + 20.查看网络连接状态 + 命令:ifconfig 或 ip addr + ![20241124213543](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213543.png) + 21.安装一个软件包 + 命令:sudo apt-get install [软件包名] + ![20241124213616](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213616.png) + 22.卸载一个软件包 + 命令:sudo apt-get remove [软件包名] + ![20241124213755](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213755.png) + 23.更新软件包列表 + 命令:sudo apt-get update + ![20241124213838](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124213838.png) +### 在服务器上安装SDK环境 +1、更新软件包列表:sudo apt update +2、安装.NET Core SDK:sudo apt install dotnet-sdk-[版本] -y +3、验证安装:dotnet --version +![20241124215043](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124215043.png) + + + + +### 使用nginx部署10个静态网站,要求不同域名,不同内容 +![20241124185205](https://lxy0565-bucket.oss-cn-shenzhen.aliyuncs.com/20241124185205.png) ## MVC练习