第一步、下载到官网下载jdk,在Java SE Development Kit 7uXX里面,把Accept License Agreement打勾,这样才能下载jdk,然后我们选择对应的Ubuntu版本下载,如果不知道自己该下哪个版本,可以用getconf LONG_BIT看看自己是几位的。第二步...
分类:
编程语言 时间:
2014-09-29 21:44:31
阅读次数:
240
在lighttpd网络模型里面我们可以看到以下代码 1 /* accept()s at most 100 connections directly 2 * 3 * we jump out after 100 to give the waiting connections a ch...
分类:
其他好文 时间:
2014-09-29 12:53:40
阅读次数:
160
#includevoid accept(int scores[]){ int i; for(i = 0; i < 5; i++) { printf("请输入第%d个数字:",i+1); scanf("%d",&scores[i]); } }
分类:
其他好文 时间:
2014-09-29 00:27:06
阅读次数:
228
??
1多进程并发服务器
使用多进程并发服务器时要考虑以下几点:
A.父最大文件描述个数(父进程中需要close关闭accept返回的新文件描述符)
B.系统内创建进程个数(和内存大小相关)
C.进程创建过多是否降低整体服务性能(进程调度)
2.案例说明
server.c,代码如下:
#include
#inclu...
分类:
其他好文 时间:
2014-09-28 01:16:00
阅读次数:
320
The backlog has an effect on the maximum rate at which a server can accept new TCP connections on a socket. The rate is a function of both the backlog value and the time that connections stay on th...
分类:
其他好文 时间:
2014-09-28 00:32:21
阅读次数:
301
1. 单击Setup应用程序,出现以下界面,如图:2. 单击License Manager,出现如下界面:单击“Next”,出现如下界面:选择“I accept the terms of the license agreement”,然后单击“Next”,如下如下界面:通过单击“Change”处可以...
分类:
其他好文 时间:
2014-09-27 14:50:10
阅读次数:
1179
2)在监听套接口上通过调用aeCreateFileEvent()设置事件处理器,从签名的调用可以看到设置的ACCEPT事件处理器为clusterAcceptHandler(),aeCreateFileEvent(server.el,server.cfd[j],AE_READABLE,clusterAcceptHandler,NULL);//设置事件处理器
intaeCreateFileEvent(aeEventLoop..
分类:
其他好文 时间:
2014-09-27 02:18:39
阅读次数:
289
在iptables中有几个不同的链。iptables -A INPUT -p tcp -s x.x.x.x/x --dport 22 -j ACCEPT // 允许源地址为x.x.x.x/x的主机通过22(ssh)端口.iptables -A INPUT -p tcp --dport 80 -j A...
分类:
其他好文 时间:
2014-09-27 02:10:59
阅读次数:
194
配置iptables,使他容许3306的访问 加入下面脚本...问题消失了(直接在命令行界面执行下面语句): iptables -I INPUT -p tcp --dport 3306 -j ACCEPT;??//访问本机的3306的端口的数据包都允许(进口) iptables-sa...
分类:
数据库 时间:
2014-09-26 21:20:59
阅读次数:
176
一、 访问HTTP请求信息或JSP隐含对象 ???? 1、<bean:header>标签: ?????????? 该标签用于从HTTP请求中提取Header信息,示例如下: ????????? <bean:header id="lang" name="Accept-Lang...
分类:
其他好文 时间:
2014-09-26 20:16:19
阅读次数:
191