perlcfgmakerpublic@192.168.0.103-global“WorkDir:C:\www\mrtg”-outputmrtg.cfgEchoRunAsDaemon:yes>>mrtg.cfgEchoInterval:5>>mrtg.cfgPerlindexmakermrtg.cfg>>c:\www\mrtg\index.htmPerlmrtg-logging=mrtg.logmrtg.cfgWindowsRegistryEditorVersion5.0..
分类:
其他好文 时间:
2015-12-07 00:52:42
阅读次数:
205
一、磁盘的格式化我们用fdisk命令将磁盘分好区之后,磁盘还是不能够直接使用的,需要将磁盘进行格式化,而格式化的本质就是为磁盘安装文件系统我们使用命令:mke2fs来为CentOS系统安装文件系统,下面来看看mak2fs的常用选项:-b:分区时设定每个数据块占用空间的大小,目前支持..
分类:
其他好文 时间:
2015-12-07 00:53:42
阅读次数:
236
#include<stdio.h>intmain(){inti=0;doublenum=0.0;intflag=1;for(i=1;i<=100;i++){num+=(1.0/i)*flag;flag=-flag;}printf("%lf",num);system("pause");return0;}
分类:
其他好文 时间:
2015-12-07 00:54:38
阅读次数:
227
//#include<iostream>
//#include<string>
//usingnamespacestd;
//
//classBotany
//{
//public:
// Botany(conststring&name="")
// :_name(name)
// {
// s_Count++;
// }
// Botany(constBotany&b)
// :_name(b._name)
// {
// s_Count++;
// }
// ..
分类:
其他好文 时间:
2015-12-07 00:52:06
阅读次数:
196
importjava.io.IOException;
importorg.apache.commons.httpclient.HttpClient;
importorg.apache.commons.httpclient.HttpException;
importorg.apache.commons.httpclient.NameValuePair;
importorg.apache.commons.httpclient.methods.PostMethod;
importorg.dom4j.Docume..
分类:
其他好文 时间:
2015-12-07 00:50:49
阅读次数:
185
虚表注意display中打印成员变量时需注意(eg:string可能出错)当基类中没有子类对应虚函数,调试窗口不显示,需打印出来//#include<iostream>
//usingnamespacestd;
//typedefvoid(*Fun)();
//classAA
//{
//public:
// virtualvoidFun1()
// {
// cout<<"AAFun1(..
分类:
其他好文 时间:
2015-12-07 00:50:28
阅读次数:
151
#include<iostream>
usingnamespacestd;
#include<string>;
classPeople
{
public:
People(conststring&name,conststring&sex,intage)
:_name(name)
,_sex(sex)
,_age(age)
{
}
virtualvoidDisplay()
{
cout<<"name:"<<_name<..
分类:
其他好文 时间:
2015-12-07 00:50:10
阅读次数:
158
1、Redis查看配置CONFIGget*[root@localhostredis]#/usr/local/redis/bin/redis-cli127.0.0.1:6379>CONFIGget*1)"dbfilename"2)"dump.rdb"3)"requirepass"4)""5)"masterauth"6)""7)"unixsocket"8)""2、重新设置timeout0CONFIGsettimeout0127.0.0.1:6379>CONFIGsettimeout..
分类:
其他好文 时间:
2015-12-07 00:51:59
阅读次数:
304
基本架构图如下:平台环境:centos6.x1.安装keepalived、安装ipvsadmyum–yinstallkeepalivedipvsadm2.配置服务2.1lvsrealserver配置脚本#!/bin/bashVIP1=192.168.1.199case"$1"instart)echo"startLVSofREALServer"/sbin/ifconfiglo:0$VIP1broadcast$VIP1netmask255.255.255.2..
分类:
其他好文 时间:
2015-12-07 00:51:21
阅读次数:
238
参考链接:http://www.jb51.net/os/RedHat/1051.htmlumount/homeumount:/home:deviceisbusy.#显示磁盘忙碌(Insomecasesusefulinfoaboutprocessesthatusethedeviceisfoundbylsof(8)orfuser(1))fuser-m-v/home#查看那个进程在使用硬盘USERPIDACCESSCOMMAND/home:rootkernelmount/..
分类:
其他好文 时间:
2015-12-07 00:47:45
阅读次数:
226
眼看马上就要做毕业设计了,可是头绪还是只有那么一点我也整天还是昏昏沉沉的,每次想学的时候总是会冒出一个很迷茫的想法.我不知道我该怎么看书,直接看后端书籍我也知道那会是我必须经过的一个路程.但是我更偏爱于前端.也总是了解道道很多人都走了Java后端?为什么也许对于学习的..
分类:
其他好文 时间:
2015-12-07 00:48:01
阅读次数:
156
版本filebeat1.0.0-rc2logstash2.0.0-1elasticsearch2.0.0kibana4.2名词解释Elasticsearch存储索引KibanaUIKibanadashboard可视化思维图LogstashInputBeatsplugin收集事件Elasticsearchoutputplugin发送事务Filebeat日志数据托运人shipperTopbeat轻量级服务器监控Packetbeat在..
分类:
其他好文 时间:
2015-12-07 00:45:37
阅读次数:
1053
阅读本文前请浏览ELKStack最新版本测试一安装篇http://jerrymin.blog.51cto.com/3002256/1720109详细配置如下:一,客户端1,nginx日志格式log_formatlogstash_json‘{"@timestamp":"$time_iso8601",‘‘"host":"$server_addr",‘‘"clientip":"$remote_addr",‘‘"size":$body_bytes_..
分类:
其他好文 时间:
2015-12-07 00:45:37
阅读次数:
311
刚开通51cto博客,欧少来了!
分类:
其他好文 时间:
2015-12-07 00:46:27
阅读次数:
155
昨天听朋友说了一个题目,具体的题目忘了!有数据是这样的:<1,0>
<2,8>
<1,9>
<2,7>
<1,0>
<3,15>
<5,20>
<3,25>
<4,20>
<3,50>要得到结果试着样的:12
22
33
41
51对左侧数据的统计,对右侧数据的去重;当左侧..
分类:
其他好文 时间:
2015-12-07 00:45:19
阅读次数:
131
1.安全需求集团企业为了加强对内部资金的集中管控,会建立自己的财务资金系统来进行集团内部资金管理和资金流转等工作。但是由于网络的广泛性和公开性,使得资金信息在网络中流转的过程中存在很多安全隐患,如:无法确认用户的真实有效身份、非法用户可以通过网络窃取资金信息..
分类:
其他好文 时间:
2015-12-07 00:42:15
阅读次数:
139
#include<stdio.h>intbinsearch(intx,intv[],intn){intleft=0;intright=n-1;while(left<=right){intmid=(left+right)/2;if(v[mid]<x){left=mid+1;}elseif(v[mid]==x){returnmid;}else{right=mid-1;}}return-1;}intmain(){intarr[]={1,2,3,4,5,6,7,8,9,10};intkey=0..
分类:
其他好文 时间:
2015-12-07 00:43:39
阅读次数:
174