Skip to content

Commit

Permalink
chore:9月22日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Sep 22, 2023
1 parent 9e20e93 commit 7976e53
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 23 deletions.
4 changes: 3 additions & 1 deletion docs/daily/2023-09.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html
- uniapp 专属request请求
- https://github.com/lei-mu/luch-request
12 changes: 0 additions & 12 deletions docs/javascript/2023-05-26-mongodb.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<!--
* @Author: 刘启明 [email protected]
* @Date: 2023-05-26 14:21:28
* @LastEditors: 刘启明 [email protected]
* @LastEditTime: 2023-05-26 15:22:03
* @FilePath: \blog\docs\javascript\2023-05-26-mongodb.md
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->


## mongodb
```
// 查询整个表数据
Expand Down
10 changes: 0 additions & 10 deletions docs/javascript/2023-05-26-uni-app.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
<!--
* @Author: 刘启明 [email protected]
* @Date: 2023-05-26 15:33:55
* @LastEditors: 刘启明 [email protected]
* @LastEditTime: 2023-05-26 15:34:10
* @FilePath: \blog\docs\javascript\2023-05-26-uni-app.md
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
-->
## github 参考
- https://github.com/SmileZXLee/uni-z-paging
77 changes: 77 additions & 0 deletions docs/javascript/2023-08-25-dotnetcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{}
]
}
}
```

0 comments on commit 7976e53

Please sign in to comment.