#include #include /* for sleep() */#include /*
for uintptr_t */#include /* for in*() and out*() functions */#include /* for
ThreadCtl() */#include...
分类:
其他好文 时间:
2014-05-26 22:04:49
阅读次数:
285
java
对mongodb的操作1.1连单台mongodbMongomg=newMongo();//默认连本机127.0.0.1端口为27017Mongomg=newMongo(ip);//可以指定ip端口默认为27017Mongomg=newMongo(ip,port);//也可以指定ip及端口号...
分类:
数据库 时间:
2014-05-26 16:41:59
阅读次数:
341
首先确定短信猫正常连接到主机,并安装SIM卡。先用超级终端测试短息猫能不能用。安装minicom:#sudo apt-get install
minicom安装完成后,执行#sudo minicom -s使用光标上下选择:Serial port
setup,如下图按A,设置端口号,COM1对应/de...
分类:
编程语言 时间:
2014-05-26 15:44:09
阅读次数:
444
shell中执行sh文件时需要开子进程,因此export的环境变量在子进程中,若想要sh中定义的脚本生效,使用source命令,并且可以被子进程继承。而子进程export的内容父进程获取不到
分类:
其他好文 时间:
2014-05-26 13:51:41
阅读次数:
226
MainRecv.cpp#include #include #include #pragma
comment(lib,"ws2_32.lib")#define RECV_IP "127.0.0.1"#define RECV_PORT
8899#define LEN_RECV_BUF 2048int ...
分类:
其他好文 时间:
2014-05-26 12:07:41
阅读次数:
276
Several ports(8080,8009)required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port, To start this server you will need to stop the other process or change t...
分类:
编程语言 时间:
2014-05-26 03:41:22
阅读次数:
364
linux串口驱动分析硬件资源及描写叙述 s3c2440A
通用异步接收器和发送器(UART)提供了三个独立的异步串行 I/O(SIO)port,每一个port都能够在中断模式或 DMA 模式下操作。UART
使用系统时钟能够支持最高 115.2Kbps 的波特率。每一个 UART 通道对于接收.....
分类:
系统相关 时间:
2014-05-26 01:31:25
阅读次数:
490
linux centos 下代理http、https、ftp全局使用代理:export
http_proxy=http://host:port/export https_proxy=http://host:port/export
ftp_proxy=http://host:port/使用wget按需...
分类:
系统相关 时间:
2014-05-24 07:53:34
阅读次数:
420
Linux系统通过软限制和硬限制,制约了打开文件的最大个数,而且每个端口侦听的连接数受限于/etc/sytctl.conf中的ip_local_port_range的范围,那么nginx是如何做到轻量级和高并发的。
Nginx的进程模型
各个work进程间通过accept_mutex互斥锁进行连接的获取,以防止惊群现象的发生(即所有进程都收到通知,却...
分类:
其他好文 时间:
2014-05-22 17:11:39
阅读次数:
364
应该能更早出的第四弹,被虚拟机错误搅乱,迟迟没有上线,不得已将所有节点用puppet完成上线,稍后整理第五弹(非你不可自动化)也即将上线:)zabbix简介zabbix是基于Php的开源监控软件基于多重数据采集SNMP,Agent,Ping,Port多重告警通知Mail,Jabber,SMS可以完成多种操作平台甚至于设..
分类:
其他好文 时间:
2014-05-20 21:21:38
阅读次数:
607