etcd 0.5.0-alpha.4版本中/bin/etcd -initial-advertise-peer-urls http://your_ip:7001 -advertise-client-urls http://your_ip:4001 -listen-peer-urls http://0....
分类:
其他好文 时间:
2014-12-02 20:50:43
阅读次数:
217
<?php$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP );socket_bind($socket ,'127.0.0.1', 11211 );socket_listen( $socket ,5);while( true ){ $...
分类:
Web程序 时间:
2014-12-01 06:27:32
阅读次数:
364
A(主)、B、C服务器、A为主服务器原理:域名解析到A服务器,A服务器分配给到B、C服务器上核心配置(该配置方法主服务器不提供服务):upstreamnginx.cn{#ip_hash;#server192.168.1.228:80weight=5;#server192.168.1.224:80weight=5;server192.168.1.228:80;server192.168.1.240:80;}..
分类:
其他好文 时间:
2014-11-28 18:33:57
阅读次数:
136
server { listen 80; server_name mysite.com; location /{ proxy_pass http://localhost:3000; }}监听mysite.com 80端口的请求,并将所有的请求转发给http://...
分类:
其他好文 时间:
2014-11-28 17:55:28
阅读次数:
168
准备工作先搭建一台DNS,创建3个域名[root@localhost~]#yuminstallbind*修改named.conf主配置文件listen-onport53{any;};allow-query{any;};zone"ccav.cn"IN{typemaster;file"ccav.cn.zone";};zone"ccav1.cn"IN{typemaster;file"ccav1.cn.zone";};zone"ccav2.cn"IN{typemaster;..
分类:
其他好文 时间:
2014-11-27 18:51:01
阅读次数:
103
#文件 d:/nginx/vhost/xxx.com.conf
server {
listen 80;
server_name xxx.com;
location / {
root d:/xxx.com;
index index.html index.htm index.php;
...
使用软件VM2台centos6.6未升级1台DNS服务器1台客户机2.操作手动安装时选择DNS服务器,选择2个BIND的rpm包设置ipv4ip地址dns服务器hostname修改/etc/named.conflisten-onport53{any;};//listen-on-v6port53{::1;};allow-query{192.168.0.100/24;或any;};允许IP访问aclintranet{1..
分类:
其他好文 时间:
2014-11-26 19:18:43
阅读次数:
304
主要介绍:socket、bind、listen、connect、accept、send、sendto、recv、recvfrom、close、shutdown
原理可看:...
分类:
其他好文 时间:
2014-11-25 10:47:06
阅读次数:
279
查看占用某一端口的进程是什么:#lsof -i:端口号
例如:
linux-vdto:~ # lsof -i:1352
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
server 5445 notes 14u IPv4 2237286 TCP *:lotusnote (LISTEN)
server 5445 notes 136u IPv4 2522072 TCP linux-vdto.site:lotu...
分类:
系统相关 时间:
2014-11-24 10:08:56
阅读次数:
169
GS网络连接事件//网络事件//这个事件是在libevent里面的收到的事件就是在那个listen里面,就是客户端打开,服务器收到通知link_stat stat = (link_stat)rPkt.size;if (stat == link_stat::link_connected){ Ga...
分类:
其他好文 时间:
2014-11-22 23:01:56
阅读次数:
233