From 7976e53fd7139149ab25a430c2f12cf1cd664805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=AF=E6=98=8E?= <455043818@qq.com> Date: Fri, 22 Sep 2023 19:04:21 +0800 Subject: [PATCH] =?UTF-8?q?chore:9=E6=9C=8822=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/daily/2023-09.md | 4 +- docs/javascript/2023-05-26-mongodb.md | 12 ---- docs/javascript/2023-05-26-uni-app.md | 10 --- docs/javascript/2023-08-25-dotnetcore.md | 77 ++++++++++++++++++++++++ 4 files changed, 80 insertions(+), 23 deletions(-) diff --git a/docs/daily/2023-09.md b/docs/daily/2023-09.md index 90b5c4f309..7c79357f0b 100644 --- a/docs/daily/2023-09.md +++ b/docs/daily/2023-09.md @@ -78,4 +78,6 @@ git tag -l "v3.0.0.*" --sort=-taggerdate ## 9月21日 - 获取小程序启动参数 - - https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html \ No newline at end of file + - https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html +- uniapp 专属request请求 + - https://github.com/lei-mu/luch-request \ No newline at end of file diff --git a/docs/javascript/2023-05-26-mongodb.md b/docs/javascript/2023-05-26-mongodb.md index 67e0b24f7a..59645e70dd 100644 --- a/docs/javascript/2023-05-26-mongodb.md +++ b/docs/javascript/2023-05-26-mongodb.md @@ -1,15 +1,3 @@ - - - ## mongodb ``` // 查询整个表数据 diff --git a/docs/javascript/2023-05-26-uni-app.md b/docs/javascript/2023-05-26-uni-app.md index 0b1c775d83..cde8ef5c33 100644 --- a/docs/javascript/2023-05-26-uni-app.md +++ b/docs/javascript/2023-05-26-uni-app.md @@ -1,12 +1,2 @@ - ## github 参考 - https://github.com/SmileZXLee/uni-z-paging diff --git a/docs/javascript/2023-08-25-dotnetcore.md b/docs/javascript/2023-08-25-dotnetcore.md index 7c9d51bc81..2cec7b9d11 100644 --- a/docs/javascript/2023-08-25-dotnetcore.md +++ b/docs/javascript/2023-08-25-dotnetcore.md @@ -17,3 +17,80 @@ dotnet-ef database update ## api.nuget.ogr/v3/index.json无法访问是因为翻墙的问题 更改为直连即可 + + +## linux 服务位置 +``` + // 自定义服务地址 + /usr/lib/systemd/system/dvsv3-datamonitor.service + + [Unit] + Description=dvsv3-datamonitor + After=network-online.target + Wants=network-online.target + + [Service] + # modify when deploy in prod env + User=dvs + Group=dvs + + Type=simple + ExecStart=/usr/local/dotnet-sdk/dotnet /usr/local/sunlight/dvsv3/dvs-datamonitor/DVS.DataMonitor.Api.dll + WorkingDirectory=/usr/local/sunlight/dvsv3/dvs-datamonitor + + Restart=always + RestartSec=1 + StartLimitInterval=0 + + [Install] + WantedBy=multi-user.target + + + + // 系统服务地址 + /etc/systemd/system + + +// 设置服务开机自动启动 +systemctl enable dvsv3-datamonitor + +// 重启服务 +systemctl restart dvsv3-datamonitor +``` + + +## nginx 配置 +``` +// 所在路径 +/etc/nginx/conf.d/dvsv3.conf +// 从这个配置文件中也可以找到swagger 配置路径docs的服务 + +location ~ ^/api/datamonitor/ { + proxy_pass http://127.0.0.1:12017; +} + +修改完毕后nginx -s reload +``` + +## 子系统服务配置文件 +``` +/usr/local/sunlight/dvsv3/etc/dvs-datamonitor-appsettings.json +{ + "Urls": "http://*:12017", + "WorkerId": 8, + "Serilog": { + "WriteTo": [ + {}, + { + "Name": "File", + "Args": { + "path": "/var/log/sunlight/v3/dvs-datamonitor.txt" + } + }, + {} + ] + } +} + +``` +