上一页 1 2 3 4 5 6 7 ··· 18 下一页

2020年11月23日

netcore rabbitMq

摘要: public class RabbitConf { public string HostName { get; set; } public string UserName { get; set; } public string Password { get; set; } public string 阅读全文

posted @ 2020-11-23 17:00 jonney_wang 阅读(139) 评论(0) 推荐(0) 编辑

2020年11月11日

Nginx 1.8 单元控制文件

摘要: [Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network-online.target remote-fs.target nss-lookup.target Wants=network- 阅读全文

posted @ 2020-11-11 11:12 jonney_wang 阅读(120) 评论(0) 推荐(0) 编辑

2020年11月10日

mysql 单元控制文件

摘要: [Unit] Description=MySQL Server 5.7.27 Documentation= After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Serv 阅读全文

posted @ 2020-11-10 10:26 jonney_wang 阅读(153) 评论(0) 推荐(0) 编辑

redis 单元控制文件

摘要: [Unit] Description=Redis 6.0.9 After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking ExecS 阅读全文

posted @ 2020-11-10 09:56 jonney_wang 阅读(127) 评论(0) 推荐(0) 编辑

2020年11月9日

devtoolset对应gcc的版本

摘要: devtoolset对应gcc的版本 devtoolset-3对应gcc4.x.x版本devtoolset-4对应gcc5.x.x版本devtoolset-6对应gcc6.x.x版本devtoolset-7对应gcc7.x.x版本 安装devtoolset包yum install centos-re 阅读全文

posted @ 2020-11-09 21:25 jonney_wang 阅读(1426) 评论(0) 推荐(1) 编辑

2020年11月3日

centos防火墙与docker的关系

摘要: 之前也折腾过在win10里hyperv虚拟过centos,然后在centos里装docker,因为总觉得在win0 里直接玩docker别扭。 今天要说的是如标题,centos防火墙与docker的关系。 1、如果 systemctl restart docker 之前是关闭防火墙状态,那么dock 阅读全文

posted @ 2020-11-03 21:38 jonney_wang 阅读(1627) 评论(0) 推荐(0) 编辑

2020年10月24日

MessagePack 序列化

摘要: public static byte[] ToBin(this object obj) { return MessagePack.MessagePackSerializer.Serialize(obj.GetType(), obj); } public static T FromBin<T>(thi 阅读全文

posted @ 2020-10-24 12:24 jonney_wang 阅读(421) 评论(0) 推荐(0) 编辑

2020年10月17日

aspnetcore 取消默认Json首字母小写

摘要: public void ConfigureServices(IServiceCollection services) { // 根据类是否添加注解[IsService]来自动注入 var assm = new[] { typeof(Program).Assembly, typeof(DbCtxt). 阅读全文

posted @ 2020-10-17 22:06 jonney_wang 阅读(210) 评论(0) 推荐(0) 编辑

2020年9月24日

Autofac MagicOnion Grpc

摘要: 1、定义Dto 和 Grpc协议 namespace MagicProtocal.Dto { public class Usr { public int Id { get; set; } public string Code { get; set; } public string Name { ge 阅读全文

posted @ 2020-09-24 16:37 jonney_wang 阅读(203) 评论(0) 推荐(0) 编辑

2020年9月23日

netcore 依据注解自动注入

摘要: DbCtxt.ConnStr = Configuration.GetSection("ConnectionString").Value; // 根据类是否添加注解[IsService]来自动注入 var assm = new[] { typeof(Program).Assembly, typeof( 阅读全文

posted @ 2020-09-23 07:44 jonney_wang 阅读(596) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 18 下一页

导航