一个菜鸟朋友,突然问了我这个问题...现在稍稍有点时间,就写了一个简单的例子给他,顺便贴上来
服务器端:
<?php
/**
* @author 邹颢 zouhao619@gmail.com
*/
class SocketServer{
private $_port='9000';
private $_address='127.0.0.1';
private $_client_soc...
分类:
Web程序 时间:
2014-06-22 19:54:29
阅读次数:
297
下载安装
下载地址
修改默认端口:
home\conf\nexus.properties
# Sonatype Nexus
# ==============
# This is the most basic configuration of Nexus.
# Jetty section
application-port=9080
applica...
分类:
其他好文 时间:
2014-06-22 19:28:44
阅读次数:
275
en
conf t
vlan id
end
conf t
inter rang gi 0/0/1-x
switchport access vlan id
no shutdown
exit
(config)#interface range gigabitEthernet 1/0/23-24
(config-if-range)#switchport mode trunk
(con...
分类:
其他好文 时间:
2014-06-22 14:12:59
阅读次数:
421
local_listener参数有两种书写格式,提供了不同的功能。
监听文件上,1521和1526端口上都有动态监听端口。
[oracle@dbsv admin]$ cat listener.ora
LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=dbsv)(PORT=1521))...
分类:
数据库 时间:
2014-06-21 22:09:49
阅读次数:
400
这个函数做了连部分工作:1)以端口为入口点 将有用的信息存放到hash表内 2)调用ngx_http_init_listening()函数 对端口进行监听
1、 在ngx_http_core_main_conf_t结构体中有一个字段为ports,是一个数组,数组内存放的全是ngx_http_conf_port_t;对于每一个端口信息(ngx_http_conf_port_t),调用
ngx_h...
分类:
其他好文 时间:
2014-06-21 21:16:25
阅读次数:
267
#在下载好的django路径下执行django的安装#https://pypi.python.org/pypi/Django/1.6.4python3setup.pyinstall##新建django项目django-admin.pystartprojectmysite##运行django项目python3manage.pyrunserver[port]##创建一个apppython3manage.pystartappappname##模型定义特殊..
分类:
其他好文 时间:
2014-06-21 19:05:23
阅读次数:
348
场景: 创建一个Virtual Switch,支持VLAN,支持MAC-Learning 包含下面四个Port: P1, truck port P2, VLAN 20 P3, P4 VLAN 30 包含五个flow table: Table 0: Admission control. Table 1...
分类:
其他好文 时间:
2014-06-21 15:51:51
阅读次数:
295
Posted in Linux Application at November 13th, 2012 如果你是用 openvswitch 内置的 GRE tunnel,那么配置很简单,基本上就一条命令: ovs-vsctl add-port br0 gre0 -- set interface gre...
分类:
其他好文 时间:
2014-06-21 15:49:06
阅读次数:
305
这一节我们来分析Mirror Mirror就是配置一个bridge,将某些包发给指定的mirrored ports 对于包的选择: select_all,所有的包 select_dst_port select_src_port select_vlan 对于指定的目的: output_port (SP...
分类:
其他好文 时间:
2014-06-21 15:32:53
阅读次数:
227
Open vSwitch with SSL and Mininet By default, Mininet uses the unencrypted port in Open vSwitch for OpenFlow. This makes total sense since the purpose...
分类:
Web程序 时间:
2014-06-21 14:35:59
阅读次数:
475