通过TCP建立可靠通讯信道1)为了对应TCP协议里的客户端和服务器端,Socket包提供了Socket类和ServerSocket类。2)Socket类构造函数及相关方法Public Socket();public Socket(InetAddress address,int port);//本机I...
分类:
编程语言 时间:
2014-08-08 11:50:55
阅读次数:
266
首先你要在手机上装一个模拟终端(android terminal emulator或者Wireless ADB)我用的是前者 然后在终端上输入setprop service.adb.tcp.port 5555stop adbd//停止adbstart adbd//开启adb(注意:以上指令必须在ro...
分类:
移动开发 时间:
2014-08-08 01:58:15
阅读次数:
305
进入wamp\apps\phpmyadmin目录找到config.inc.php 文件,用记事本打开,查看下面部分并修改: $cfg[‘Servers‘][$i][‘host‘] = ‘localhost‘; $cfg[‘Servers‘][$i][‘port‘] = ‘3306‘; $cfg[‘Servers‘][$i][‘user‘]...
分类:
Web程序 时间:
2014-08-07 13:31:30
阅读次数:
191
windows 7安裝後啟動xampp, 提示port 443 被其他程式占用。網上查找解決方案:http://stackoverflow.com/questions/21182512/how-to-stop-vmware-port-error-of-443-on-xampp-control-pan...
Tomcat 使用JMS采集配置需要加入以后配置参数,本示例是在 eclipse 下启动tomcat中的配置。在tomcat Arguments选择卡的VM arguments中加入: -Dcom.sun.management.jmxremote.port=9089 -Dcom.sun.manag....
分类:
其他好文 时间:
2014-08-06 22:18:32
阅读次数:
240
err()); } //连接并发送数据 public function conn($ip,$port,$data) { //数组数据序列号保存发送 $data = serialize($data); if(!socket_connect(self::$socket,$ip,$...
分类:
其他好文 时间:
2014-08-06 22:15:12
阅读次数:
342
docker是一个非常好用的虚拟化工具。下面给出建立私有docker hub的方法。docker将私有hub的环境打包在registry image中执行指令:docker run -p 5000:5000 registry这条指令启动一个基于registry image的cotainer。并将ho...
分类:
其他好文 时间:
2014-08-06 18:13:21
阅读次数:
274
(一)2014-08-061、node-inspector error : Error:readECONNRESET Checkthereisnootherdebuggerclientattachedtoport5858 解决方式为: node-inspector --web-port=606...
分类:
其他好文 时间:
2014-08-06 17:59:51
阅读次数:
239
linux串口驱动分析硬件资源及描写叙述 s3c2440A 通用异步接收器和发送器(UART)提供了三个独立的异步串行 I/O(SIO)port,每一个port都能够在中断模式或 DMA 模式下操作。UART 使用系统时钟能够支持最高 115.2Kbps 的波特率。每一个 UART 通道对于接收.....
分类:
系统相关 时间:
2014-08-06 01:20:55
阅读次数:
339
系统:windows2003nginx版本:1.7.3(官方推荐版本#父节点 httpupstream cluster_1{ ip_hash;#能较好地把同一个客户端的多次请求分配到同一台服务器处理,避免了加权轮询无法适用会话保持的需求 server host:port weight=1;#权重.....