搭建LAMP环境,并实践基于DNS做基于域名的虚拟主机一,LAMP环境搭建:LAMP:LinuxApache(httpd)MariaDBPHP的简称;1.安装Apache,先检查系统是否有安装过httpd,如果没有则安装。启动服务:systemctlstarthttpd.service设置开机自动启动:systemctlenablehttpd.service查看httpd..
分类:
其他 时间:
2016-03-19 06:28:32
收藏:
0 评论:
0 赞:
0 阅读:
167
//Complex类的基本函数#include<iostream>
usingnamespacestd;
classComplex
{
public:
Complex(doublereal=1.0,doublep_w_picpath=2.0)//构造函数(有参)调用2次拷贝构造
{
_real=real;
_p_w_picpath=p_w_picpath;
}
Complex()//构造函数(无参)
{
_real=1.0;
..
分类:
其他 时间:
2016-03-19 06:28:22
收藏:
0 评论:
0 赞:
0 阅读:
159
//日期计算器#include<iostream>
usingnamespacestd;
#include<string>
classDate
{
public:
Date(intyear=2015,intmonth=11,intday=15)//构造函数
:_year(year)
,_month(month)//初始化列表进行初始化
,_day(day)
{
}
Date(constDate&d)//拷贝构造..
分类:
其他 时间:
2016-03-19 06:27:52
收藏:
0 评论:
0 赞:
0 阅读:
206
软考信息系统监理师,2016年3月18日作业:第四章监理单位的组织建设1、监理单位的体系建设分为哪3部分?2、监理单位监理服务质量管理的方式有2种,哪2种?优缺点是什么?3、监理服务质量的控制方式,按照时间可以分为哪3种?按照控制主体分为什么?按照评价方式分为什么?4、监..
分类:
其他 时间:
2016-03-19 06:27:32
收藏:
0 评论:
0 赞:
0 阅读:
144
linux程序包管理:为了更好的实现程序的安装、升级、卸载、查询、校验以及数据库的维护,所以把将编译好的程序的各个组成文件打包成一个或者多个程序包文件。软件包的获取途径:1、到各个镜像网站获取:比如:mirrors.aliyun.commirrors.163.commirrors.souhu.com2、到各个程序..
分类:
其他 时间:
2016-03-19 06:27:23
收藏:
0 评论:
0 赞:
0 阅读:
482
Error-27794:Failedtoconnecttoserver"127.0.0.1:16823":[10061]Connectionrefused[MsgId:MERR-27794]FatalError-27098:Couldnotdownloadtheproxyautomaticconfigurationscript(URL="http://127.0.0.1:16823/proxy_on.pac").Seepreviousmessages.Refertothe‘Run-timesettings/I..
分类:
其他 时间:
2016-03-19 06:26:52
收藏:
0 评论:
0 赞:
0 阅读:
2244
使用压测工具(ab/webbench等)实现搭建的页面压测,要求通过调整apache的工作模式来对比最后性能。配置文件位置:/etc/httpd/conf/httpd.conf<IfModuleprefork.c>//如果加载了这个模块,就实现一下配置,一个条件化模块加载StartServers8//服务在启动时默认启动几个子进..
分类:
其他 时间:
2016-03-19 06:26:02
收藏:
0 评论:
0 赞:
0 阅读:
158
T:在屏幕上打印杨辉三角。#include<stdio.h>
intmain()
{
intline=21;
inti,j;
inta[20][20];
for(i=0;i<line;i++)
{
for(j=0;j<=i;j++)
{
if((j==0)||(j==i))
a[i][j]=1;
else
a[i][j]=a[i-1][j-1]+a[i-1][j];
}
}
for(i=0;i<line..
分类:
其他 时间:
2016-03-19 06:25:32
收藏:
0 评论:
0 赞:
0 阅读:
149
方法一:使用函数实现两个数的交换#include<stdio.h>
intfun(int*a,int*b)
{
inttmp;
tmp=*a;
*a=*b;
*b=tmp;
}
intmain()
{
intx,y;
printf("pleaseinputtwonumber:\n");
scanf("%d%d",&x,&y);
printf("x=%d,y=%d\n",x,y);
fun(&x,&y);
print..
分类:
其他 时间:
2016-03-19 06:25:22
收藏:
0 评论:
0 赞:
0 阅读:
129
Action.c(116):Error-27987:Requestedp_w_picpathnotfound[MsgId:MERR-27987]RecordingOptions-->Recording-->HTTP/HTMLLevel-->HTML-basedscript-->HTMLAdvanced-->Scripttype选中第二项:AscriptcontainingexplicitURLsonly。保存退出,重新录制一遍。
分类:
其他 时间:
2016-03-19 06:25:02
收藏:
0 评论:
0 赞:
0 阅读:
238
1.用一个函数实现,判断一个数是不是素数#include<stdio.h>
#include<math.h>
voidfun(intx)
{
inti;
if(x<=2)
printf("thenumberisprime\n");
else
{
for(i=2;i<sqrt(x);i+=2)
{
if(x%i==0)
break;
}
if(i<sqrt(x))
printf("thenu..
分类:
其他 时间:
2016-03-19 06:24:42
收藏:
0 评论:
0 赞:
0 阅读:
192
实现一个通讯录;通讯录可以用来存储1000个人的信息,每个人的信息包括:姓名、性别、年龄、电话、住址完成:1.添加联系人信息2.删除指定联系人信息3.查找指定联系人信息4.修改指定联系人信息5.显示所有联系人信息6.清空所有联系人
分类:
其他 时间:
2016-03-19 06:24:12
收藏:
0 评论:
0 赞:
0 阅读:
189
一、功能说明find命令用来在指定目录下查找文件。任何位于参数之前的字符串都将被视为欲查找的目录名。如果使用该命令时,不设置任何参数,则find命令将在当前目录下查找子目录与文件。并且将查找到的子目录和文件全部进行显示。二、语法格式find(选项)(参数)图示:三、常用选..
分类:
其他 时间:
2016-03-19 06:23:53
收藏:
0 评论:
0 赞:
0 阅读:
188
5辆汽车过山洞,依次经过山洞。每辆车通过山洞花费10秒,使用多线程实现。classCave
{
//privatebooleandeng=true;
//publicsynchronizedgetDeng(){
// if(deng=true){
// }
//}
}
classCarextendsThread
{
privateStringname;
privateCavecave;
publicCar(..
分类:
其他 时间:
2016-03-19 06:23:42
收藏:
0 评论:
0 赞:
0 阅读:
175
$d_order_tuikuan=D(‘order_tuikuan‘);
$order_status_list=C(‘ORDER_STATUS‘);
$now=time();
switch(I(‘post.do‘)){
case‘query‘:
$map=array();
if($user_type==-1){
$map[‘dl_user_id‘]=fn_get_current_user_id();
}elseif($user_type==0){
$map[‘tg_user_id‘]=fn_get_curre..
分类:
其他 时间:
2016-03-19 06:22:22
收藏:
0 评论:
0 赞:
0 阅读:
281
好不容易算法搞定了,小数据测试也得到了很好的结果,可是扔到进群上,挂上大数据就挂了,无休止的reduce不会结束了。。。。。。。。。。。。。。。。
====================================================================
这才想起还有个combiner!!!!!!!!!!!!!!!!!!!!!
我们知道,MapReduce是分为...
分类:
其他 时间:
2016-03-19 06:18:22
收藏:
0 评论:
0 赞:
0 阅读:
249
Graphite详解Graphite是一个开源实时的、显示时间序列度量数据的图形系统。Graphite并不收集度量数据本身,而是像一个数据库,通过其后端接收度量数据,然后以实时方式查询、转换、组合这些度量数据。Graphite支持内建的Web界面,它允许用户浏览度量数据和图。Graphite有三个主要组件组成:
1)Graphite-Web
这是一个基于Django的Web应用,可以呈现图形和仪表板...
分类:
其他 时间:
2016-03-19 06:18:12
收藏:
0 评论:
0 赞:
0 阅读:
274
题目信息1085. Perfect Sequence (25)时间限制300 ms
内存限制65536 kB
代码长度限制16000 B
Given a sequence of positive integers and another positive integer p. The sequence is said to be a “perfect sequence” if M <= m *...
分类:
其他 时间:
2016-03-19 06:18:02
收藏:
0 评论:
0 赞:
0 阅读:
538
题目信息1086. Tree Traversals Again (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-...
分类:
其他 时间:
2016-03-19 06:17:52
收藏:
0 评论:
0 赞:
0 阅读:
489
CentOS 6.7 系统 在执行完删除更新包的全部操作之后, yum remove -y Deployment_Guide-en-US finger cups-libs cups ypbind && yum remove -y bluez-libs desktop-file-utils ppp r
分类:
其他 时间:
2016-03-19 06:17:02
收藏:
0 评论:
0 赞:
0 阅读:
627