Skip to content

Commit

Permalink
chore: 11月20日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Nov 20, 2023
1 parent b79e869 commit 1eb59d9
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/daily/2023-11.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 21 additions & 0 deletions docs/javascript/2023-08-25-dotnetcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 提交代码后,通过流水线进行自动部署
//指定某个服务进行设置最上面的参数即可
```
2 changes: 1 addition & 1 deletion docs/javascript/2023-10-26-培训.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions docs/javascript/2023-11-16-webfunny.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,29 @@ service docker restart
- https://mp.weixin.qq.com/s/j0fMHzz4yKbfCilWymQb2g

## 参考文章
- https://juejin.cn/post/7132268340541653005#heading-34
- 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

0 comments on commit 1eb59d9

Please sign in to comment.