摘要:
网上搜索发现多篇文章指出ocelot的性能有问题,可是在ocelot项目issue提问中,维护者指出,ocelot的性能问题不大。瓶颈在于.net的httpclient。 我参考文章 https://www.cnblogs.com/myzony/p/10401298.html 制作了一个测试项目,并
阅读全文
posted @ 2019-06-14 08:20
wswind
阅读(2079)
推荐(0)
摘要:
Hyper-V 默认的 Default Switch 同时支持了 NAT 网络以及 DHCP,虚拟机能够访问外网。 但使用过程中发现这个 IP 网段经常变化,而且 Hyper-V 没有提供管理其 NAT 网络与 DHCP 的图形化界面功能。 如果开发者需要同时管理多个 VM,且在局域网中无法为他们单
阅读全文
posted @ 2019-06-12 09:12
wswind
阅读(19633)
推荐(3)
posted @ 2019-05-30 13:34
wswind
阅读(232)
推荐(0)
摘要:
简单说明 powershell对于脚本的执行有着严格的安全限制 Get-ExecutionPolicy -List #查看当前的执行策略 Set-ExecutionPolicy -Scope CurrentUser RemoteSigned #设置执行策略为要求远程脚本签名,范围为当前用户 策略 P
阅读全文
posted @ 2019-05-23 13:06
wswind
阅读(17121)
推荐(2)
摘要:
vsftpd是linux下常用的ftp服务软件,配置起来不复杂。 ftp本身密码是明文传输的,如果需要安全,建议直接使用sftp,通过winscp等工具访问服务器。sftp只要能访问ssh就能使用,无需额外配置。 匿名访问 vsftp配置失败往往是由于权限问题,导致出现550 Failed to o
阅读全文
posted @ 2019-05-16 16:39
wswind
阅读(4840)
推荐(0)
摘要:
转自Github/Powershell Bash PowerShell Description ls dir, Get-ChildItem List files and folders tree dir -Recurse, Get-ChildItem -Recurse List all files
阅读全文
posted @ 2019-05-15 20:25
wswind
阅读(564)
推荐(0)
摘要:
网络配置 网络模式 Host-only Internal Bridged NAT 之间的区别 https://www.virtualbox.org/manual/ch06.html virtualbox 各网络连接方式的访问性如上图所示 vmware和virtualbox的nat网络模式有个很大的区
阅读全文
posted @ 2019-05-08 16:33
wswind
阅读(624)
推荐(0)
摘要:
最近遇到了一个很奇葩的问题,我编写了一个.net core程序读取多个数据库数据源,进行数据同步处理。该程序在windows环境下运行完全正常,但在linux环境下运行报异常,提示 System.Data.SqlClient.SqlException: Connection Timeout Expi
阅读全文
posted @ 2019-05-05 21:31
wswind
阅读(1774)
推荐(1)
posted @ 2019-05-05 16:37
wswind
阅读(297)
推荐(0)
posted @ 2019-04-26 14:18
wswind
阅读(823)
推荐(0)
摘要:
最新版本: wiki: 优秀讲解: .net 调用虽然wiki中有相关插件,但是缺少大文件上传的实现。 https://github.com/chrislusf/seaweedfs/wiki/Large File Handling seaweedfs上传大文件需要自己将大文件分片上传,然后构建man
阅读全文
posted @ 2019-04-24 18:54
wswind
阅读(606)
推荐(0)
摘要:
视图组件可以通过partial view或viewcomponent实现 partialview view component https://docs.microsoft.com/zh cn/aspnet/core/mvc/views/view components?view=aspnetcore
阅读全文
posted @ 2019-04-22 11:02
wswind
阅读(519)
推荐(0)
摘要:
使用IEqualityComparer需要注意的是,如果成员变量中包含byte[]类型,计算哈希值,不可直接通过GetHashCode获取,而应转为字符串后,再计算
阅读全文
posted @ 2019-04-20 08:08
wswind
阅读(432)
推荐(0)
摘要:
使用centos 经常发现官方提供的软件包版本过低,很多时候大家会选择下载源码自行编译,带来了很多麻烦。 centos安装最新版本软件包,例如git,python等,可以通过红帽官方提供的software collection,或者社区提供的ius实现。 IUS IUS是一个社区维护的软件源,全名是
阅读全文
posted @ 2019-04-18 14:54
wswind
阅读(5740)
推荐(1)
摘要:
https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete#required-relationships Optional relationships For optional relationships (nullable fore
阅读全文
posted @ 2019-04-17 14:31
wswind
阅读(388)
推荐(0)
摘要:
https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work
阅读全文
posted @ 2019-04-15 14:48
wswind
阅读(244)
推荐(0)
摘要:
命令行添加镜像地址 首次安装后,配置软件源 #https://mirrors.tuna.tsinghua.edu.cn/help/msys2/ sed -i "1iServer = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686" /etc
阅读全文
posted @ 2019-04-03 17:07
wswind
阅读(13570)
推荐(0)
摘要:
参考: https://github.com/PanJiaChen/vue element admin/issues/24 https://stackoverflow.com/questions/13790592/how to upgrade to the latest version of git
阅读全文
posted @ 2019-03-28 14:21
wswind
阅读(7317)
推荐(1)
posted @ 2019-03-21 09:23
wswind
阅读(2759)
推荐(0)
摘要:
https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/environments?view=aspnetcore-2.2 https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-p
阅读全文
posted @ 2019-03-11 13:09
wswind
阅读(416)
推荐(0)
摘要:
You can certainly do it within a Where clause (extension method). If you need to build a complex query dynamically, though, you can use a PredicateBui
阅读全文
posted @ 2019-03-08 16:51
wswind
阅读(249)
推荐(0)
摘要:
参考: https://www.haiyun.me/archives/winscp-sftp-sudo-root.html 一般root账户在服务器上会被禁止ssh,此时普通用户需要通过sudo执行管理员权限命令。如果需要使用winscp,会有普通用户权限不足的问题。 本文提供一个方法可使用普通用户
阅读全文
posted @ 2019-03-06 21:11
wswind
阅读(8171)
推荐(0)
摘要:
firewall-cmd --list-all firewall-cmd --zone=public --add-port=12345/tcp --permanent firewall-cmd --zone=public --remove-port=12345/tcp --permanent fir
阅读全文
posted @ 2019-03-05 17:07
wswind
阅读(268)
推荐(0)
摘要:
windows不允许.gitignore之类的文件,也不允许.ssh命名的文件夹名。会提示必须输入文件名。 要解决这个问题我以前一直是通过bash使用linux命令创建的。最近发现了一个更简便的方法与大家分享: 创建.gitignore文件输入.gitignore.即可越过此限制,回车后文件名会修改
阅读全文
posted @ 2019-02-26 15:50
wswind
阅读(1910)
推荐(0)
posted @ 2019-02-23 22:47
wswind
阅读(597)
推荐(0)
摘要:
参考: https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ 注册表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Con
阅读全文
posted @ 2019-02-23 12:57
wswind
阅读(593)
推荐(0)
摘要:
windows的备份由于路径问题,在Linux上会报错 File 'YourDB_Product' cannot be restored to 'Z:\Microsoft SQL Server\MSSQL11.GLOBAL\MSSQL\Data\YourDB\YourDB_Product.ndf'.
阅读全文
posted @ 2019-02-21 09:18
wswind
阅读(609)
推荐(0)
摘要:
git的服务器搭建,如果无需权限控制,仅团队内部使用,初始化一个服务器仓库,其他人通过ssh访问这个文件夹即可。如需复杂的管理,建议使用gitlab。 使用ssh -T git@ip 会看到一个提示 下面我们可定制欢迎信息,可通过git help shell查看到帮助。 创建文件 /home/git
阅读全文
posted @ 2019-02-19 09:38
wswind
阅读(353)
推荐(0)
摘要:
问题: Debian中通过终端使用vim,无法通过鼠标粘贴。这是由于一项默认的鼠标配置导致。 解决方法: vi /usr/share/vim/vim*/defaults.vim vi ~/.vimrc set mouse="" mouse选型默认为a,相关说明如下: The mouse can be
阅读全文
posted @ 2019-02-18 10:08
wswind
阅读(1438)
推荐(0)
摘要:
基于ssh的git服务器搭建可浏览:https://www.cnblogs.com/wswind/p/10373881.html 安装gitweb和apache 配置gitweb库地址 /etc/gitweb.conf 配置权限 配置 /etc/httpd/conf.d/git.conf 注意Opt
阅读全文
posted @ 2019-02-15 10:43
wswind
阅读(465)
推荐(0)
摘要:
``` lsof -i: netstat -tunlp | grep ```
阅读全文
posted @ 2019-02-13 09:51
wswind
阅读(6746)
推荐(0)
摘要:
安装 安装很简单参照官方教程 https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-red-hat?view=sql-server-2017 需要注意的是,如果安装时没有指定环境变量参数,会按默认设置安装,字符集会
阅读全文
posted @ 2019-02-12 16:05
wswind
阅读(4793)
推荐(0)
摘要:
参考: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites https://
阅读全文
posted @ 2019-02-01 19:58
wswind
阅读(757)
推荐(0)
摘要:
windows 聚焦(spot light)服务是win10中系统提供的锁屏界面壁纸 win10聚焦图片路径为: %localappdata%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Ass
阅读全文
posted @ 2019-01-27 22:29
wswind
阅读(540)
推荐(0)
posted @ 2019-01-27 22:04
wswind
阅读(2678)
推荐(1)
posted @ 2019-01-25 15:15
wswind
阅读(1714)
推荐(0)
摘要:
``` [DependsOn(typeof(AbpAutoMapperModule))] public class MyModule : AbpModule { public override void PreInitialize() { Configuration.Modules.AbpAutoMapper().Configurators.Add(config =...
阅读全文
posted @ 2019-01-24 14:04
wswind
阅读(270)
推荐(0)
摘要:
abp的默认语言设置,存放于数据库表AbpSettings中,这样配置可使默认语言为中文: 不配置的话,默认插入的值为cn,与abp模板自带的zh Hans本地资源配置不符,原因为DefaultSettingsCreator中的 Create()代码,修改为: 参考:
阅读全文
posted @ 2019-01-24 13:25
wswind
阅读(3921)
推荐(1)
摘要:
搜索对应的协议名,例如:{"x github client":false} 修改false为true则会重新提醒 参考:
阅读全文
posted @ 2019-01-24 10:04
wswind
阅读(728)
推荐(0)
摘要:
``` razor @{ViewModel nullModel = null; } @Html.DisplayNameFor(model => nullModel .FullName) ```
阅读全文
posted @ 2019-01-23 18:31
wswind
阅读(301)
推荐(0)