diff --git "a/\347\256\241\346\230\237\350\210\252/20241114-\347\275\221\347\253\231.md" "b/\347\256\241\346\230\237\350\210\252/20241114-\347\275\221\347\253\231.md" new file mode 100644 index 0000000000000000000000000000000000000000..113d20d7a4e00a2a146b6ac85424c29b3b30d4c1 --- /dev/null +++ "b/\347\256\241\346\230\237\350\210\252/20241114-\347\275\221\347\253\231.md" @@ -0,0 +1,36 @@ +# 网站搭建 +* ping 域名 +* ssh root@域名 输入密码 +* apt update +* apt upgrade-y +* syestemctl status nginx +* apt install nginx -y(安装) +* mkdir /var/www +* cd /var/www +* mkdir 域名 +* cd 域名 +* vim index.html +* cat index.html +* cd /etc/nginxx/conf.d/ +* vim 域名.conf +* nginx -t +* nginx -s reload +``` +server{ + + listen 80; #监听的端口 + server_name 9ihub.com; #监听的域名 + location / { + root /var/www/9ihub.com ;#网站所在路径 + index index.html; #默认的首页文件 + } +} +``` +# 搭建MVC项目 +* dotnet new mvc -o 文件名 +* dotnet run -project .\文件名\ +* dotnet watch +* dotnet build +* 解决方案:dotnet new sln -o .\文件名\ + +![20241114增删改查](https://yihen1556.oss-cn-guangzhou.aliyuncs.com/setu/20241114增删改查.png) \ No newline at end of file