diff --git a/notes/helloshop/logo.svg b/notes/helloshop/logo.svg deleted file mode 100644 index 6a2acd3..0000000 --- a/notes/helloshop/logo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/notes/helloshop/upgrading-from-net-9.md b/notes/helloshop/upgrading-from-net-9.md new file mode 100644 index 0000000..ce233e8 --- /dev/null +++ b/notes/helloshop/upgrading-from-net-9.md @@ -0,0 +1,25 @@ +# 更新 .NET 8.0 到 .NET 9.0 + +## 更新 Visual Studio 最新预览版 + +下载并安装 Visual Studio 预览版,安装 .NET 9.0 SDK。 + +## 更新项目文件 + +打开项目文件,将 `net8.0` 更新为 `net9.0`。 + +## 更新 NuGet 包 + +打开 NuGet 包管理器,更新所有 NuGet 包到最新版本。 + +## 更新 Aspire 和 MAUI 工作负载 + +打开 Aspire 工作负载,更新所有 Aspire 包到最新版本。 + +```shell +dotnet workload install aspire android ios maccatalyst maui-android maui-desktop maui-mobile maui-windows +``` + +## 若要将 Tab 自动补全添加到适用于 .NET CLI 的 PowerShell + +https://learn.microsoft.com/zh-cn/dotnet/core/tools/enable-tab-autocomplete diff --git a/notes/mqtt/rabbitmq-management-mqtt.md b/notes/mqtt/rabbitmq-management-mqtt.md index 2ee524f..532fda4 100644 --- a/notes/mqtt/rabbitmq-management-mqtt.md +++ b/notes/mqtt/rabbitmq-management-mqtt.md @@ -23,12 +23,26 @@ rabbitmq-plugins disable rabbitmq_mqtt rabbitmq-plugins enable rabbitmq_web_mqtt rabbitmq-plugins disable rabbitmq_web_mqtt -rabbitmq rabbitmqctl enable_feature_flag all -rabbitmq rabbitmqctl disable_feature_flag all +rabbitmq-plugins enable_feature_flag all +rabbitmq-plugins disable_feature_flag all ``` # Rabbitmq Auth Backend Http +``` +rabbitmq-plugins enable rabbitmq_auth_backend_http +``` + +修改 rabbitmq.conf 配置文件,位置 %AppData%\RabbitMQ + +``` +auth_backends.1 = http +auth_http.http_method = post +auth_http.user_path = http://some-server/api/RabbitMqAuth/User +auth_http.vhost_path = http://some-server/api/RabbitMqAuth/Vhost +auth_http.resource_path = http://some-server/api/RabbitMqAuth/Resource +auth_http.topic_path = http://some-server/api/RabbitMqAuth/Topic +``` [RabbitMQ server to perform authentication](https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/rabbitmq_auth_backend_http)