diff --git a/docs/daily/2023-11.md b/docs/daily/2023-11.md index 76736d2262..e5957e79ae 100644 --- a/docs/daily/2023-11.md +++ b/docs/daily/2023-11.md @@ -1,3 +1,8 @@ +## 11月20日 +- asp.net core + - asp.net core mvc 项目创建 + - AntDesign.Pro.Layout 引入 + - https://github.com/ant-design-blazor/blazor-pro-components ## 11月16日 - pm2 管理node的使用 - https://juejin.cn/post/6844903816454733837?searchId=202311161533153AB74203DDF0793A6D4E diff --git a/docs/javascript/2023-08-25-dotnetcore.md b/docs/javascript/2023-08-25-dotnetcore.md index a93513757e..ab66eccc13 100644 --- a/docs/javascript/2023-08-25-dotnetcore.md +++ b/docs/javascript/2023-08-25-dotnetcore.md @@ -201,3 +201,24 @@ SHOW DATABASES; ## 事务里面如果有创建表结构的则不会跟随事务 +## 数据库菜单更新 + +``` +etc/dvs-systemservice-appsettings.json 中的MenuSeedData 设置为true + + +// systemctl restart dvsv3-systemservice +// 则启动服务的时候就会初始化更新菜单 +// 更新菜单的规则:code相等则update,code不相等则insert,code不存在则不操作 + +// 通过接口将数据初始化到json文件中 +// 接口要在root用户下才能执行 +api/basic/Menu/seed + +// 执行完接口后,将接口返回数据的data,也就是菜单数组拷贝到项目中 +DVS.Basic/Templates/Menu.json + +// 提交代码后,通过流水线进行自动部署 + +//指定某个服务进行设置最上面的参数即可 +``` \ No newline at end of file diff --git "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" index bc457e1e77..88d0d373b3 100644 --- "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" +++ "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" @@ -122,7 +122,7 @@ SeqPwd=$(echo 'sunlight2023' | docker run --rm -i datalust/seq config hash) // 5341 代码里调用的路径 // 80 查看日志的UI -docker run --name seq -d -e ACCEPT_EULA=Y -e SEQ_FIRSTRUN_ADMINPASSWORDHASH="$SeqPwd" -v /usr/local/sunlight/docker/seq/data:/data --memory=512m --memory-swap=512m -e SEQ_CACHE_SYSTEMRAMTARGET=0 -p 12000:80 -p 5341:5341 datalust/seq +docker run --name seq -d -e ACCEPT_EULA=Y -e SEQ_FIRSTRUN_ADMINPASSWORDHASH="$SeqPwd" -v /data/work/seq/data:/data --memory=512m --memory-swap=512m -e SEQ_CACHE_SYSTEMRAMTARGET=0 -p 12000:80 -p 5341:5341 datalust/seq // nginx 进行配置转发 netstat -ntlp|grep 12000 diff --git a/docs/javascript/2023-11-16-webfunny.md b/docs/javascript/2023-11-16-webfunny.md index 27258b914b..3ab6234ad4 100644 --- a/docs/javascript/2023-11-16-webfunny.md +++ b/docs/javascript/2023-11-16-webfunny.md @@ -24,4 +24,29 @@ docker run -it --rm -d --name webfunny -p 8010:8010 -p 8011:8011 webfunny_monit ``` yum install git +``` + + +## mysql +``` +// 进入到mysql的容器 +docker exec -it mysql /bin/bash + +// 执行登录mysql +mysql -uroot -p + +// 显示所有数据库 +show databases; + +// 切换到webfunny_db数据库 +use webfunny_db; + +// 显示所有表 +show tables; + +//查看Project表结构 +desc Project; +// 或者 +show columns from Project; + ``` \ No newline at end of file diff --git a/docs/javascript/2022-12-12-rabbitmq.md b/docs/javascript/2023-11-20-rabbitmq.md similarity index 76% rename from docs/javascript/2022-12-12-rabbitmq.md rename to docs/javascript/2023-11-20-rabbitmq.md index fc9d1494a4..c0b45d417c 100644 --- a/docs/javascript/2022-12-12-rabbitmq.md +++ b/docs/javascript/2023-11-20-rabbitmq.md @@ -85,4 +85,29 @@ service docker restart - https://mp.weixin.qq.com/s/j0fMHzz4yKbfCilWymQb2g ## 参考文章 -- https://juejin.cn/post/7132268340541653005#heading-34 \ No newline at end of file +- https://juejin.cn/post/7132268340541653005#heading-34 + + + +## .net core 中链接rabbitmq +``` +// 安装rabbitmq的客户端 +dotnet add package RabbitMQ.Client + +// 初始化RabbitMQ 连接 +var factory = new ConnectionFactory() { HostName = "localhost" }; + + this.connectionFactory = new ConnectionFactory + { + HostName = this.option.Host, + Port = this.option.Port, + DispatchConsumersAsync = true + }; + +``` + +## rabbitmq五种消息模型 +- https://www.cnblogs.com/ysocean/p/9251884.html + +## rabbitmq 从零到高可用的集群 +- https://www.cnblogs.com/wei325/p/15174212.html \ No newline at end of file