自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 收藏
  • 关注

原创 nextcloud+onlyoffice docker-compose创建私有云

nextcloud镜像分两种镜像:nextcloud:latest nextcloud镜像默认对应的是apache web服务器版本nextcloud:fpm 基于php-fpm镜像,并运行fastCGI-Process。此版本需要组合可以代理http请求到FastGFI端口(9000)的web服务器。来源: https://hub.docker.com/_/nextcloud/nextcloud+onlyoffice方案采用onlyoffice官方的配置,仓库:docker-onlyoff

2020-06-17 18:10:54 4054

原创 ‘scp‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件

windows安装scp

2022-09-02 11:48:20 6770

原创 带https证书的blazorserver的docker部署

准备工作$ dotnet --version5.0.400IDE: Visual Studio for mac 2019项目实施新建项目:App->Blazor Server App->.Net 5.0+individual Authentication+Configure for Https->Create a project directory within the solution direction添加docker支持:选择项目->add docker

2021-10-30 01:23:40 805

原创 快速使用ABP+Zorro

ABP前台操作流程下载前往ASP.NET Boilerplate Startup Templates下载例子下载完成后按照流程Startup-Template-Angular操作,或直接用angular前端部分衔接已有的后台(以下操作衔接南海项目现有API)配置到项目目录下安装包npm i或者npm install或yarn addcd XXXnpm i安装好后需更新NSwag生成的客户端调用代码更新nswag的后台api地址nswag路径nswag/service.co

2021-10-30 01:21:57 338

原创 angular快速入门

angular简介与angularJS的区别路由依据:SPA名称简介Routes路由配置RouterOutlet在html中标记路由内容呈现的占位符指令Router负责运行时执行路由的对象RouterLink在html中 <a> 标签中使用ActivatedRoute当前激活的路由对象,保存着当前路由的信息重定向路由redirectTo{ path: '', redirectTo: '/player/player-li

2021-10-30 01:19:47 223

原创 2017-1分析师论文:论需求分析方法及应用

本人以“铁路公安派出所业务管理系统”项目的开发为背景,着重论述了需求分析方法中的面向对象分析的整个过程。该项目的建设目标是:(1)建立枪支弹药管理数据中心,存储枪支弹药的信息和出入库的记录数据。(2)合理安排和管理派出所值班备勤警力。(3)建立执法场所管理数据中心,对执法场所的监管更加合理化、及时化。(4)显示屏显示统计信息。系统需要考虑到推广到其子管辖区的派出所,并于将来对接智能枪弹管理系统,系统需具有良好的扩展性和松耦合性。在项目开展期间,我担任了系统分析、系统设计与数据库管理等大量工作。在项目需求

2021-10-29 22:49:30 486 1

原创 Set the ‘experimentalDecorators‘ option in your ‘tsconfig‘ or ‘jsconfig‘ to remove this warning

typescript添加了模块之后显示errortsconfig.json中添加了 "emitDecoratorMetadata": true, "experimentalDecorators": true,解决方案是在vscode的setting中设置"js/ts.implicitProjectConfig.experimentalDecorators":true参考:Experimental decorators warning in TypeScript compilation.

2021-05-06 15:55:02 1521

原创 antv/g2在angular 10中 TypeError: Cannot read property ‘appendChild‘ of null

在视图渲染后再画图 ngAfterViewInit(){ this.chart(); } }

2021-04-15 19:06:06 812

原创 tree 命令使用

在项目路径下tree中文树tree -N过滤某个文件夹(windows下貌似不行,会显示‘参数太多’)tree -I "node_modules"

2021-03-16 14:31:33 2969 3

原创 windows10开启docker desktop:Cannot enable Hyper-V service

检查windows功能控制面板-程序-开启或关闭windows功能已经开启了,但是还是提示服务没有开启Bios设置因为我的台式机是华硕,按Del进入Bios,以下是找的类似网图按F7进入模式选择->选择高级模式选择处理器设置->Inter虚拟技术,选择开启,按F10保存...

2021-01-13 15:05:00 495 1

原创 Abp前端快速整理

准备工作开启api服务cd angular,运行npm run nwagservice-proxy.module添加新增服务的代理类@NgModule({ providers: [ ApiServiceProxies.RoleServiceProxy, ApiServiceProxies.SessionServiceProxy, ApiServiceProxies.TenantServiceProxy, ApiServicePr

2020-12-11 16:11:49 460

原创 Ubuntu 自动备份SQLServer

版本ubuntu版本ubuntu18.04SQLServer版本sqlcmd -S localhost -U SA -P 'XXXX' -Q"SELECT @@VERSION"

2020-12-09 15:03:16 370

原创 Ubuntu passwd: module is unknown

拿到一台ubuntu18.04,可以创建用户,但是不能更改密码$ passwdpasswd: module is unknown$ tail -n 4 /var/log/auth.logNov 20 04:01:57 ubuntu1804 passwd[32535]: PAM pam_parse: expecting return value; [...requisste]Nov 20 04:01:57 ubuntu1804 passwd[32535]: PAM unable to dlopen(

2020-11-20 14:52:30 2910

原创 Ubuntu18.04安装docker并更换镜像源

安装docker更改镜像源https://cr.console.aliyun.com/cn-hangzhou/instances/mirrorshttps://123xxxxx.mirror.aliyuncs.com修改daemon配置文件/etc/docker/daemon.json来使用加速器sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json <<-'EOF'{ "registry-mirrors": ["h

2020-11-20 10:33:57 2394 1

原创 快速用angular+ng-zorro创建项目

创建项目选择带路由ng new abccd abcng add ng-zorro-antd创建完项目,创建两个组件ng g c cmp1ng g c cmp2在appcomponent中添加 <router-outlet></router-outlet>在app-routing.module.ts中添加路由const routes: Routes = [ { path: '', redirectTo: 'cmp1', pathMatch: 'full' }

2020-11-11 19:57:31 699 1

原创 ubuntu用户和权限问题

整改方案收到客户打过来的中心问题清单,暂时整理了一点反馈序号问题整改方法1限制root账户登录设置root账户的login shell为nologin(管理员权限用户仍有user1,user2)2admin用户改名用户名admin改为xxx,主组为users,附加组sudo3umask权限点问题002改为022具体操作1. 限制root账户登录sudo vim /etc/passwdroot:x:0:0:root:/root:/bin/bash改

2020-11-05 18:34:00 1136

原创 mac存储空间和网速问题

存储空间拿到250g的mac用了一年不到,就只剩下20g了。查看了存储空间,其中“其他”就占了120g!。安装腾讯电脑管家,清理功能查找大文件我突然想起来,我年初安装了docker for mac。百度了下,类型“其他”是指格式不明确的文件。我尝试删除了一个2g的镜像,发现空间多出了20g!。删除了几个镜像之后,空出了50g!剩下的镜像因为还打算用,所以就留着了。电脑卡顿尽管我删除之后,电脑剩余空间有73g,但是仍然打开应用很慢。找到帖子说关闭wifi,发现真的快了很多。。(究其原因还是dn

2020-10-14 15:50:46 257

原创 mac 可登录qq不能浏览器上网

dns的设置问题我个人原因是科学上网导致的。偏好设置 ->网络 ->高级 -> 代理 ->去掉http参考:http://www.xitongzhijia.net/xtjc/20150116/35053.html

2020-10-14 15:42:56 990

原创 google浏览器控制台不能打印信息

现google浏览器版本google浏览器升级后不能打印信息,按照网上找了很多都不行,去掉全部勾选,只选择Group similar就ok了

2020-08-31 15:45:50 2662

原创 在Asp.net Core (Abp)添加种子数据SeedData

Asp.net core添加种子数据添加文件夹SeedData添加静态类SeedDatapublic static class SeedData{ public static void Initialize(IServiceProvider serviceProvider) { using (var context = new AsdfContext( serviceProvider.GetRequiredService<DbContex

2020-07-28 17:37:32 1707

原创 Abp import& export

插件EPlus

2020-07-23 10:44:20 311 1

原创 Abp组织架构

实体Entity[Table("NovelPlayer")]public class Player : Entity<long>, IMustHaveTenant, IMustHaveOrganizationUnit{ public string Title { get; set; } public string DisplayName { get; set; } public string MAC { get; set; } public bool IsU

2020-07-22 17:58:39 1113

原创 派生类在EntityFramework Core中不生成表

问题EntityFramework Core版本是3.1.public class Test: Entity{ public string Name { get; set; }}public class Test2:Test{ public string Add { get; set; }}DbContextpublic DbSet<Test> Tests { get; set; }public DbSet<Test2> Test2s { get

2020-07-21 16:39:59 871 1

原创 mac 开发abp

创建实体在领域层 public class NamePersonFirst : Entity { public string Name { get; set; } public bool IsDouble { get; set; } public bool NowSeldom { get; set; } public bool AncientSeldom { get; set; } public NamePersonFirst() { }

2020-07-17 18:40:29 186

原创 logstash解析iis日志

入门参考上一篇:logstash快速入门filtergrok vs dissect下面简单解析iis日志为例子学习filterplugindifferencegrok使用正则表达式,数据一行行变化效果好dissect不使用正则表达式,速度更快,数据重复时效果好filter { grok { match => [ "message","%{TIMESTAMP_ISO8601:iis.access.time} (?:-|%{IPOR

2020-07-09 16:43:59 658

原创 logstash快速入门

下载官网:https://www.elastic.co/cn/downloads/logstash因为我的是mac系统,所以选择下载ZIP版本运行在项目目录下新建logstash.confinput { stdin { } }output { stdout { codec => rubydebug }}该配置的意思是从控制台输入和输出信息。在logstash路径下运行bin/logstash -f logstash.conf可以在控制台中看到logstash已经成功运行[

2020-07-09 01:21:32 173

原创 清理mac的docker desktop的容器日志

查看容器的日志位置docker inspect --format=’{{.LogPath}}’ logstash7.7.1logstash7.7.1为容器id得到位置’/var/lib/docker/containers/e9a256441db1ba08d9bdea7bbdac05bf099beec720739b5472ab9d19b898c3bc/e9a256441db1ba08d9bdea7bbdac05bf099beec720739b5472ab9d19b898c3bc-json.log’进

2020-07-08 16:40:35 1893

原创 windows从远程linux拷贝文件

选择工具pscp.exe下载下载链接:https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html安装点击.exe安装使用打开终端,输入pscp,打印出help信息,说明安装成功拷贝pscp -C xxx@ip:/home/xxx/tmp/abc.tar E:\Downloads将用户名为xxx,ip地址为ip的服务器中的/home/xxx/tmp/路径下的abc.tar 下载到本地E盘中...

2020-06-19 16:00:05 521

原创 hexo:SyntaxError: Unexpected token { in JSON at position

DPlayer.min.css is not found in this version of dplayer, skip it.INFO Start processingFATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.htmlSyntaxError: Unexpected token { in JSON at position 22 at

2020-06-18 20:57:07 854

原创 shell:invalid optionn.sh: line 1: set: -

从github拉下来的文件在windows中压缩后传入mac中提示错误。$ bash set_configuration.sh: invalid optionn.sh: line 1: set: -set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]: command not foundh: line 2: : command not foundh: line 4: set_configuration.sh: line 19: s

2020-06-16 20:43:29 791

原创 github fatal: unable to access Failed to connect to github.com port 443: Operation timed out

mac:cat /etc/hostsvim /etc/hosts#注释github.com对应的host

2020-06-16 15:09:49 1433

原创 visual studio 2019 for mac开发asp.net(abp) 使用手册及注意事项

官方使用手册Microsoft Docs自动保存整理代码首选项 ->文本编辑器 ->行为在解决方案中搜索shift+command+F程序包管理器控制平台Visual Studio for Mac 或 Visual Studio Code 中未提供该控制台。参考->????️通过mac自带的终端进行操作dotnet ef migrations add initail -c dotnet ef migrations adddotnet ef migrations r

2020-06-03 23:00:09 1510

原创 couchdb在c#中(mycouch)过滤某一类实体的变化change

mycouch版本: 7.2.1内容已经放入github详情请到github

2020-06-03 10:39:15 190

原创 docker 安装nginx

用Dockerfile制作镜像准备Dockerfile文件From nginxCOPY www/ /usr/share/nginx/htmlCOPY conf.d/ /etc/nginx/conf.d/COPY logs /var/log/nginx制作镜像sudo docker build -t some-content-nginx .创建并启动容器sudo docker run --name some-nginx -d -p 8080:80 some-content-nginx

2020-05-25 16:04:08 155

原创 dotnet core项目.gitignore内容

# globsMakefile.in*.userprefs*.usertasksconfig.makeconfig.statusaclocal.m4install-shautom4te.cache/*.tar.gztarballs/test-results/# Mac bundle stuff*.dmg*.app# content below from: https://github.com/github/gitignore/blob/master/Global/macOS

2020-05-20 14:36:14 756

转载 mac 安装.net core sdk后-bash: dotnet: command not found

下载.net core sdkhttps://www.microsoft.com/net/core#macos$ dotnet-bash: dotnet: command not found已安装成功,肯定是环境变量设置问题。$ cd /usr/local/share/dotnet$ lsLICENSE.txt dotnet packs sharedThirdPartyNotices.txt host sdk templates查看~/.bash_profile环境设

2020-05-20 10:43:33 4424 2

原创 vs2019整理代码

CTRL+KCTRL+F

2020-05-09 19:43:54 2944

原创 mac vscode -bash: code: command not found

code .不能快速打开当前路径的控制面板。打开vscode 快捷键shift+command+p 后输入shell选择 install ‘code’ command in path

2020-04-24 20:35:08 7859 1

原创 abp core迁移sqlite

项目名称 AprilEF层install-package Microsoft.EntityFrameworkCore.Sqlite -Version X.x.xHost"ConnectionStrings": { "Default": "Server=localhost; Database=AprilDb; Trusted_Connection=True;", "SqliteC...

2020-04-04 00:39:22 337

原创 mac mysql:8.0 Access denied for user 'root'@'localhost'

第一次在mac上一切都很顺利,后来卸载后再重装就一堆麻烦了。brew install mysql安装mysql8.0.x后which mysql/usr/local/bin/mysql启动mysql/usr/local/bin/mysql.server startmysql -u root -p提示输入密码直接空密码进入后初现Access denied for user ‘r...

2020-03-27 10:34:35 258

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除