From 2b5bcffbdea62b3e7a4127df09114f8b79574da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BD=AC=E5=8B=87?= <2161405557@qq.com> Date: Sun, 17 Nov 2024 17:59:12 +0800 Subject: [PATCH] 20241114 --- ...21\347\253\231\346\220\255\345\273\272.md" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "\345\210\230\345\275\254\345\213\207/\350\257\276\345\240\202\347\254\224\350\256\260/20241114-\347\275\221\347\253\231\346\220\255\345\273\272.md" diff --git "a/\345\210\230\345\275\254\345\213\207/\350\257\276\345\240\202\347\254\224\350\256\260/20241114-\347\275\221\347\253\231\346\220\255\345\273\272.md" "b/\345\210\230\345\275\254\345\213\207/\350\257\276\345\240\202\347\254\224\350\256\260/20241114-\347\275\221\347\253\231\346\220\255\345\273\272.md" new file mode 100644 index 0000000..9ecc092 --- /dev/null +++ "b/\345\210\230\345\275\254\345\213\207/\350\257\276\345\240\202\347\254\224\350\256\260/20241114-\347\275\221\347\253\231\346\220\255\345\273\272.md" @@ -0,0 +1,39 @@ +# 网站搭建 +1. ping 域名 +2. ssh root@域名 输入密码 +3. apt update +4. apt upgrade-y +5. syestemctl status nginx +6. apt install nginx -y(安装) +7. mkdir /var/www +8. cd /var/www +9. mkdir 域名 +10. cd 域名 +11. vim index.html +12. cat index.html +13. cd /etc/nginxx/conf.d/ +14. vim 域名.conf +15. +``` +server{ + + listen 80; #监听的端口 + server_name 9ihub.com; #监听的域名 + location / { + root /var/www/9ihub.com ;#网站所在路径 + index index.html; #默认的首页文件 + } +} +``` +16. nginx -t +17. nginx -s reload + +# 搭建MVC项目 +1. dotnet new mvc -o 文件名 +2. dotnet run -project .\文件名\ +3. dotnet watch +4. dotnet build +5. 解决方案:dotnet new sln -o .\文件名\ + +## 作业 +![20241114增删改查](https://lby530.oss-cn-fuzhou.aliyuncs.com/imgs/20241114增删改查.png) \ No newline at end of file -- Gitee