package com.xiaofeiyang; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelInitializer; ...
分类:
Web程序 时间:
2020-04-04 22:24:40
阅读次数:
102
1. nginx 404 页面跳转 没有在nginx家目录里面的指定一个固定 url ;没有的地址也就是 404 ,让404 指定地址跳转; error_page 404 = https://www.g.com.cn/$1; 2. nginx refer 增加 http://name.renren. ...
分类:
其他好文 时间:
2020-04-04 11:15:24
阅读次数:
65
package sync import "sync" sync包提供了基本的同步基元,如互斥锁。除了Once和WaitGroup类型,大部分都是适用于低水平程序线程,高水平的同步使用channel通信更好一些。 本包的类型的值不应被拷贝。 Index 返回首页 type Locker type On ...
分类:
其他好文 时间:
2020-04-03 19:52:59
阅读次数:
92
Started by user test Running as SYSTEM Building remotely on home_windows (mbhCloud_UI_Test) in workspace E:\Jenkins_Slave_Home\workspace\mbhCloud_UI A ...
分类:
其他好文 时间:
2020-04-01 23:23:53
阅读次数:
554
Netty是Trustin Lee在2004年开发的一款高性能的网络应用程序框架。相比于JDK自带的NIO,Netty做了相当多的增强,且隔离了jdk nio的实现细节,API也比较友好,还支持流量整形等高级特性。在我们常见的一些开源项目中已经普遍的应用到了Netty,比如Dubbo、Elastic ...
分类:
Web程序 时间:
2020-04-01 19:18:07
阅读次数:
72
400GBASE-SR8 400G QSFP-DD ActiveOptical Cable has transceiver at its respective ends, a combination oftransmitter and receiver which is connected to a ...
分类:
其他好文 时间:
2020-04-01 13:07:43
阅读次数:
116
Go语言中有丰富的数据类型,除了基本的整型、浮点型、布尔型、字符串外,还有数组、切片、结构体、函数、map、通道(channel)等。Go 语言的基本类型和其他语言大同小异。 1.基本数据类型 整型 整型分为以下两个大类: 按长度分为:int8、int16、int32、int64 对应的无符号整型: ...
分类:
其他好文 时间:
2020-04-01 01:20:09
阅读次数:
297
运行效果图: 结构目录: 注意事项: 如果logcat有错误提示:No Channel found for pkg, 可参考链接:https://blog.csdn.net/u010356768/article/details/83546008 activity_main.xml: 1 <?xml ...
分类:
其他好文 时间:
2020-03-31 22:47:38
阅读次数:
131
广播模式:1对多,produce发送一则消息多个consumer同时收到。 注意:广播是实时的,produce只负责发出去,不会管对端是否收到,若发送的时刻没有对端接收,那消息就没了,因此在广播模式下设置消息持久化是无效的。 三种广播模式: fanout: 所有bind到此exchange的queu ...
分类:
其他好文 时间:
2020-03-30 19:21:51
阅读次数:
77
环境系统:CentOSrelease6.10(Final)MySQL:1、5.7.26-logMySQLCommunityServer(GPL)2、搭建多源复制,存在俩个不同channel,假设为:zerolh_v1、zerolh_v23、存在复制过滤,changereplicationfilterREPLICATE_WILD_IGNORE_TABLE用途:BI数据分析使用现象因为BI数据分析的同
分类:
数据库 时间:
2020-03-30 13:05:53
阅读次数:
265