- 博客(42)
- 资源 (12)
- 收藏
- 关注
原创 Censtos docker安装方法
总结:安装好的Docker系统有两个程序,Docker服务端和Docker客户端。Docker客户端则扮演着Docker服务端的远程控制器,可以用来控制Docker的服务端进程。#device mapper: 是Linux内核中支持逻辑卷管理的通用设备映射机制,它为实现用于#存储资源管理的块设备驱动提供了一个高度模块化的内核架构。#device mapper存储驱动程序需要 device-mapper-persistent-data 和 lvm2。#安装 Docker-CE并设置为开机自动启动。
2025-08-04 14:13:58
207
原创 Docker Compose 的安装方
下载 Docker Compose 的二进制文件:curl -SL “https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64” -o /usr/local/bin/docker-compose。安装 pip:yum -y install epel-release,yum -y install python-pip。升级 pip:pip install --upgrade pip。
2024-02-19 14:50:50
1927
1
原创 .NET mvc实现图片上传功能,保存到本地,ftp等地方及获取图片
获取图片包含从本地获取getImage 从http远程获取 getImageHttp ,从ftp获取getImageFtp。2.后端.net 可以实现上传保存到本地,到ftp,甚至是七牛云,我之前有文章提及到。3,获取图片,有时我们可能对图片做权限控制,所以会写一个接口获取图片,实现控制图片的作用。获取图片效果图及url 路径 也可以直接浏览器中直接请求查看。后端控制器重要代码 展示上传保存的功能。1.前端实用layui的上传功能。前端代码Image.cshtml。
2023-04-21 12:04:10
1168
原创 .NET 6 IdentityServer4 认证之ClientCredentials客户端认证
identityserver4授权模式,客户端授权模式,认证授权
2022-09-26 17:26:56
1461
原创 上位机的入门
上位机入门 modbus slave modbus poll Configure Virtual Serial Port Driver,上位机,下位机,虚拟串口,主站,从站,虚拟串口的安装
2022-04-05 18:16:54
3708
原创 使用 Sql 对数据进行批量更新及插入
使用 Sql 对数据进行批量更新及插入-- 创建两个表create table t1( id int ,name varchar(100) ) create table t2( id int ,name varchar(100) )--插入数据--表1insert into t1 values ( 1,'a')insert into t1 values ( 2,'b')--表2insert into t2 values ( 1,'aq')
2022-03-07 14:09:59
1653
原创 一文带你了解Linux的解压缩文件及文件夹
一文带你了解Linux的解压缩文件及文件夹对于.gz的文件 ,只能压缩文件,解压缩完后原文件会消失 压缩 gzip +文件名 比如 $ gzip file 生成 file.gz 解压 gzip - d 文件名(或 gunzip 文件名) gzip -d file.gz对于.zip 的后缀,能压缩文件及文件夹,解压缩后原文件保留压缩 zip + 生成文件夹名 文件夹 或文件名 比如 $ zip file 生成
2022-02-16 08:34:12
1248
原创 一文带你了解vim的操作
一文带你了解vim的操作vim是Linux的一个强大的文本编辑器,没有菜单,只有命令。它包含三个模式:命令模式,编辑模式,插入模式。插入命令:a (理解为add) 在光标所在字符后面插入.后i (理解为insert) 在光标所在字符前插入。前o(理解为on) 在光标下插入新行。大写的状态下A: 光标行末插入I:光标行收插入O:光标上插入行以上三个做对比。:set nu 显示行号:set nonu 取消行号gg 定为到第一行 :0GG定为到最后一行 :$nG
2022-02-13 18:35:22
425
原创 调用七牛云简单的上传附件的方法
需要引入Qinu的包appid,和appkey申请注册的时候会有Bucket = “kettle1” 这个是在上面新建的空间名。// See https://aka.ms/new-console-template for more informationusing Qiniu.Http;using Qiniu.Storage;using Qiniu.Util;Mac mac = new Mac("appid", "appkey");//PutPolicy putPolicy = new P
2022-01-25 21:50:06
582
原创 elasticsearch简单增删改查
创建索引put http://localhost:9200/luoye/ Content-Type application/json{ "settings": { "index": { "number_of_shards": "2", --分片数 "number_of_replicas": "0" --副本 } }}---------------------------------------------{ "acknowledged": true,
2022-01-25 21:10:50
774
原创 .net 编码问题GB2312转化问题
.net 编码没有GB2312,在使用转化的时候,需要注册提供程序 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); String content =Encoding.Convert(Encoding.GetEncoding("GB2312"), Encoding.GetEncoding("UTF-8"), bytes);...
2021-11-22 08:53:40
582
原创 。net 批量数据插入方法2
SqlConnection sqlConnection = new SqlConnection(connectionstr); sqlConnection.Open(); SqlCommand sqlCommand = new SqlCommand(); sqlCommand.Connection = sqlConnection; sqlCommand.CommandText = "insert in...
2021-11-18 09:37:30
558
原创 迁移EntityFramework core出现多个Context迁移报错
More than one DbContext was found. Specify which one to use. Use the ‘-Context’ parameter for PowerShell commands and the ‘–context’ parameter for dotnet commands.出现以上问题是程序中有多个context,在迁移的时候需要标明`add-migration init -c BaseContextupdate-database -contex
2021-11-18 09:02:53
562
原创 .NET 如何快速导入几万条以上的数据到数据库(批量导入)
```csharp public static void SqlBulkCopyByDataTable(string connectionStr, string dataTableName, DataTable sourceDataTable, int batchSize = 100000) { using (SqlConnection connection = new SqlConnection(connectionStr)) { .
2021-11-17 13:14:25
1427
原创 sql语句中in 用参数的写法
查询的字段是int类型declare @ids nvarchar(max)set @ids = '1,3,5,20'select * from Fit_area where charindex( ','+convert( varchar ,id) +',',','+@ids+',')>0
2021-11-17 13:09:34
920
原创 用一条sql递归抓取上下级的所有数据并把名称拼接起来
WITH Area2( id,parentid, code, name, parentcode , eLevel,fullname) AS ( SELECT id,parentid,code, name, parentcode, 0 AS eLevel,CONVERT(varchar(255),name )as fullname FROM Fit_Area WHERE ParentId =0 UNION ALL SELECT e.id,e.ParentId,
2021-11-17 10:33:53
2443
System.Drawing.Image.FromStream 出现参数无效的解决方法及图片类型判断
2023-03-28
2020年省市区镇四级行政代码编号.rar
2021-11-09
读取excel文档转为xml格式
2021-05-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人