在dubbo项目中(http://www.cnblogs.com/wenbronk/p/6774539.html), 我们使用了zookeeper作为集群的注册中心, 在springcloud中, 也可以使用zookeeper, 但好的方案是eureka 关于eureka的原理, 看到过几个不错的的 ...
分类:
编程语言 时间:
2017-05-20 11:15:52
阅读次数:
154
Windows 10包含版本 win10家庭版win10专业版win10教育版win 10企业版 Windows 7包含6个版本分别为Windows 7 Starter(初级版)Windows 7 Home Basic(家庭普通版)Windows 7 Home Premium(家庭高级版)Windo ...
进入cmd界面 1、安装虚拟环境 pip install virtualenv 2、创建虚拟环境 virtualenv django_basic_venv 3、使用虚拟环境 ..\django_basic_venv\Scripts\activate 4、在虚拟环境中安装django pip inst ...
分类:
其他好文 时间:
2017-05-19 00:51:38
阅读次数:
172
Overview of the basic template of a Java class: package declaration import statements access specifier class ClassName { } access specifier is either ...
分类:
其他好文 时间:
2017-05-18 17:26:10
阅读次数:
174
#include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 9 int main() 10 { 11 std::basic_ifstream > fs("./test.txt"); 12 if ( fs.f... ...
分类:
系统相关 时间:
2017-05-18 16:51:22
阅读次数:
169
1.assign() 原型: //string (1) basic_string& assign (const basic_string& str); //substring (2) basic_string& assign (const basic_string& str, size_type s ...
分类:
编程语言 时间:
2017-05-18 13:24:39
阅读次数:
225
1. HTTP基本认证(Basic Authentication) 使用HTTP基本认证可以保护整个站点或是特定的action。 Xitrum不支持摘要认证(Digest Authentication),因为它容易受到中间人攻击(man-in-the-middle attack)。更好的安全机制,要 ...
分类:
其他好文 时间:
2017-05-17 15:16:20
阅读次数:
279
看了不少关于阻塞、非阻塞、同步和异步文章,我觉得这篇http://www.toxingwang.com/linux-unix/linux-basic/1712.html是讲得不错的。 以下是这篇文章对于阻塞、非阻塞、同步异步的解释 阻塞和非阻塞指的是执行一个操作是等操作结束再返回,还是马上返回。 比 ...
分类:
其他好文 时间:
2017-05-17 00:44:39
阅读次数:
216
SrsConnection类代表一个client的连接,其中封装了st thread,用于在一个单独的st thread里处理一个client的服务请求. SrsConnection在 int SrsServer::accept_client(SrsListenerType type, st_net ...
分类:
其他好文 时间:
2017-05-16 18:38:56
阅读次数:
485