自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 资源 (4)
  • 收藏
  • 关注

转载 Redis安装部署

Redis是一种高级key-value数据库。它跟memcached类似,不过数据可以持久化,而且支持的数据类型很丰富。有字符串,链表,集 合和有序集合。支持在服务器端计算集合的并,交和补集(difference)等,还支持多种排序功能。所以Redis也可以被看成是一个数据结构服务 器。Redis的所有数据都是保存在内存中,然后不定期的通过异步方式保存到磁盘上(这称为“半持久化模式”);也

2016-08-11 14:14:33 312

原创 rz -be 从windows上发送二进制文件

rz -be 从windows上发送二进制文件

2016-08-11 14:11:07 2254 1

转载 linux下IPTABLES配置详解 修订

如果你的IPTABLES基础知识还不了解,建议先去看看.开始配置我们来配置一个filter表的防火墙.(1)查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target       prot opt source                 destination     

2014-09-05 17:03:06 564

转载 ubuntu 11.10下创建eclipse桌面快捷方式

1.用vim在用户到桌面目录创建一个名为“eclipse.desktop”的文件并添加以下内容:[Desktop Entry]Encoding=UTF-8Name=Eclipse PlatfromComment=Eclipse IDEExec=/home/zhunian/eclipse/eclipseIcon=/home/zhunian/eclipse/icon.xpm

2014-09-02 17:28:54 475

原创 Virtual Box 下不能全屏的解决办法

Virtual Box 下不能全屏的解决办法。http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html?ssSourceSiteId=ocomen#extpack

2014-09-02 16:52:23 1573

转载 用drupal 建立多语言站点

第一步:启用Local模块(module), Administer -> site building -> Modules 选中local模块,保存!第二步:添加语言, Administer -> site configuration -> Languages ,右侧tab中选择 Add language ,在下拉列表中选择要添加的语言,然后保存!

2014-07-18 10:24:43 778

转载 sendmail: fatal: chdir /var/spool/Postfix: Permission denied

sendmail: fatal: chdir /var/spool/postfix: Permission denied引起原因,apache因为selinux默认设置不能发送邮件。其实在命令用mail是可以发送邮件的。解决办法:setsebool httpd_can_sendmail on如果是旧版系统on不行的话,可以用1,这个我没测试过另外,重启问题,可以在/etc/

2014-07-18 09:28:19 1603

转载 How To Install Drupal on a Virtual Server Running CentOS 6

How To Install Drupal on a Virtual Server Running CentOS 6Tagged In: CentOS,DrupalAbout DrupalDrupal is a free and open source content management that uses a PHP and a backend database

2014-07-17 17:04:47 948

转载 分布式搜索elasticsearch配置文件详解

elasticsearch的config文件夹里面有两个配置文件:elasticsearch.yml和logging.yml,第一个是es的基本配置文件,第二个是日志配置文件,es也是使用log4j来记录日志的,所以logging.yml里的设置按普通log4j配置文件来设置就行了。下面主要讲解下elasticsearch.yml这个文件中可配置的东西。cluster.name: elasti

2014-07-14 15:36:42 460

原创 curl operate elasticsearch

export elasticsearchwebaddress=localhost:9200# 1. Add documentcurl -X PUT "$elasticsearchwebaddress/megacorp/employee/1" -d '{    "first_name" : "John",    "last_name" :  "Smith",    "age"

2014-07-11 17:40:44 1045

转载 Scripting

The scripting module allows to use scripts in order to evaluate customexpressions. For example, scripts can be used to return "script fields"as part of a search request, or can be used to evaluate a c

2014-07-11 16:13:28 1292 1

转载 Linux下patch的制作和应用

学习资料的收集比较简单,方法一类似于这种初级问题网上资料非常丰富,google或者baidu搜索一下,然后选择有价值的资料,方法二是阅读man在线文档。完成收集工作,当然最终要在自己的Linux上作实验,比较总结,消化吸收为自己的东西。要除去这么一种错误思想:一定要学全。要知道,一次学全是不可能的,只能先学习最为常用的,在以后不断实践的过程中逐步的丰富,最终达到比较高的水平。把握的原则是:日有所学

2014-06-30 15:01:04 434

转载 使用memcached 加快openstack keystone的速度

If you are using PKI for the session tokens for openstack to use then you will find out that it is recommended to use memcache to store these tokens as the MySQL database can bog down if you try to de

2014-06-11 11:06:15 3562

原创 查看进程打开的文件句柄

lsof -p 8495LSOF(8)                                                                LSOF(8)NAME       lsof - list open filesSYNOPSIS       lsof [ -?abChlnNOPRtUvVX ] [ -A A ] [ -c

2014-06-03 17:19:44 6554

原创 data node的目录权限不正确会导致datanode启动不了

WARN org.apache.hadoop.hdfs.server.datanode.DataNode: Invalid directory in dfs.data.dir: Incorrect permission for /usr/local/hadoop/hadoop-1.1.2/dfs/data, expected: rwxr-xr-x, while actual: rwxrwxr-x

2014-06-03 17:17:43 967

原创 网盘加密策略

个人分享时,图中操作如下:1.申请乙方公钥。2.获取甲方加密的文件密钥。3.甲方将文件密钥解密,用乙方公钥加密。然后乙方就可以用自己的私钥解密。这样做有问题如下:1.如果甲方把文件分给几个人,用谁的密码解密,可能把文件复制成若干份,每个用户一份。这样造成了分享路径的问题。就是这个文件的路径不是一个。2.用乙的密码加密之后,甲怎么再读这个文件。结合以上问题,初

2014-05-20 10:44:17 730

转载 apache httpcomponent 4.3 使用https示例

/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements.  See the NOTICE f

2014-05-20 09:07:30 1702

原创 swift使用reseller角色来设置container的quota

keystone role-create --name=resellerkeystone tenant-create --name testreseller --description "testTenant" --enabled truekeystone user-create --name=testreseller --pass=testresellerkeystone use

2014-05-15 11:15:46 1598 1

原创 swift 设置account-quotas container-quotas

1.创建role ResellerAdminkeystone role-create --name ResellerAdminkeystone user-role-add --user=tester --tenant=test --role=ResellerAdmin2.修改proxy-server.conf#修改pipelinepipeline = healthcheck

2014-05-14 17:35:18 1226

转载 1949-2012年北京市人口出生、死亡变动情况

1949-2012年北京市人口出生、死亡变动情况 日期:2013-04-25    文章来源:  1949年1950年1955年1960年1965年1970年

2014-05-12 17:38:35 6738

转载 Redis的Java客户端Jedis的八种调用方式(事务、管道、分布式…)介绍

edis是一个著名的key-value存储系统,而作为其官方推荐的java版客户端jedis也非常强大和稳定,支持事务、管道及有jedis自身实现的分布式。在这里对jedis关于事务、管道和分布式的调用方式做一个简单的介绍和对比:一、普通同步方式最简单和基础的调用方式,@Testpublic void test1Normal() { Jedis jedis = new J

2014-05-08 10:13:01 634

原创 rabbitmq Access Control,quest用户不能远程访问

[{rabbit, [{loopback_users, []}]}]

2014-05-05 17:14:55 1652

原创 centos 6.4上安装rabbitmq server

rabbitmq-server-3.3.1-1.noarch.rpm

2014-05-05 16:51:58 1923

翻译 Tomcat无法shutdown进程问题解决办法

1 问题现象执行shutdown.sh之后,Web已经无法访问:Tomcat关联java进程仍然存活:[html] view plaincopy#/home/apache-tomcat-7.0.34/bin/shutdown.sh  Using CATALINA_BASE:   /home/apache-tomcat-7.0.34  Using CATA

2014-04-29 10:21:39 3641 1

原创 在其它计算机上使用命令创建keystone用户

1.安装keystone客户端   yum -y install python-keystoneclient2. vim ~/.bash_profile 设置环境变量export ADMIN_TOKEY=59735dd68a60227bf328export OS_SERVICE_TOKEN=59735dd68a60227bf328export OS_SERVICE_EN

2014-03-26 10:10:37 1706

原创 安装keystoneclient时安装的组件

yum install python-keystoneclientLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileepel/metalink                                               

2014-03-26 09:51:32 1517

转载 solr 3.4配置中文分词IKAnalyzer3.2.8

最近在折腾solr,现在需要让其支持中文分词,在网上看到了很多关于使用paoding中文分词的文章,但是测试很久都不行,而且paoding这个分词工具很久没更新了,最新版本是paoding-analysis-2.0.4-beta.zip,于是在想有没有其它的分词工具可以使用,后来找到了IKAnalyzer,仔细看了下,感觉很不错,关键是配置很容易,参照一篇文章中的例子http://blog.sin

2014-01-24 16:41:00 704

转载 nutch1.3集成solr3.4并支持中文

(一)安装nutch1.31.linux环境,分别从nutch、solr官网下载1.3版本和3.4版本压缩包2.分别解压,假定nutch目录为/nutch1.3,solr目录为/apache-solr-3.4.03.进入/nutch-1.3/runtime/local目录,vibin/nutch,设置JDK1.6路径NUTCH_JAVA_HOME=/usr/

2014-01-24 11:39:28 590

转载 用于Lucene的各中文分词比较

对几种中文分析器,从分词准确性和效率两方面进行比较。分析器依次为:StandardAnalyzer、ChineseAnalyzer、CJKAnalyzer、IK_CAnalyzer、MIK_CAnalyzer、MMAnalyzer(JE分词)、PaodingAnalyzer。单纯的中文分词的实现一般为按字索引或者按词索引。按字索引顾名思义,就是按单个字建立索引。按词索引就是按词喽,根据词库中的

2014-01-24 09:34:52 1387

原创 swift 杀毒 和ClamAV集成

This article will guide you through the installation of ClamAV on CentOS. Once installed, we will also configure a daily scan on our CentOS server.ClamAV is an open source (GPL) antivirus engine des

2014-01-20 09:51:17 688

转载 Openstack Swift Quotas

wift组件是Openstack的对象存储(Object Storage)解决方案。在早期的版本中,swift对于配额是没有限制的,不能够对不同用户所使用的空间进行限制。后来出现了开源的中间件 swquota(https://github.com/cschwede/swquota)可以对swift做出配额的限制,如今在2013年4月发布的Grizzly版本Openstack中,swift(1.8.

2014-01-06 15:47:25 1530

原创 用curl 进行 swift操作

# create 101 containersfor((i=100; i#authcurl -d '{"auth": {"tenantName": "test", "passwordCredentials":{"username": "tester", "password": "testing"}}}' -H "Content-type: application/json" htt

2013-12-27 16:47:28 2434

原创 nginx安装在用户目录下

1.下载nginx-1.4.4.tar.gz2. tar -xzf nginx-1.4.4.tar.gz3. cd nginx-1.4.44. ./configure --prefix=/application/search/nginx5. make && make install6. /application/search/nginx/sbin/nginx &

2013-12-27 09:17:57 606

原创 Swift和keystone认证服务器结合实现多租户

Swift和keystone认证服务器结合实现多租户       本例所有的操作都是以root权限进行。一、       选择一台计算机认证服务器,设IP地址为:192.168.56.141,然后在此计算机上执行以下操作:1.安装mysqlyum -y install mysql mysql-serverMySQL-python修改 /etc/my.cnf 设置bind-a

2013-12-04 17:25:01 2769 4

转载 OpenStack Swift集群与Keystone的整合使用说明

之前已经介绍了OpenStack Swift集群和Keystone的安装部署,最后来讲一讲Swift集群与Keystone的整合使用吧。 1. 简介  本文档描述了Keystone与Swift集群的整合使用方法,即Swift通过Keystone完成用户的身份认证与权限控制,而不是采用自带的TempAuth。本文档假定如下前提条件:用户已阅读文档《Keystone安装部署流程》和

2013-12-04 09:07:05 914

原创 GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

yum install python-pipLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfileepel/metalink                                                          

2013-11-28 09:30:15 5317

转载 VirtualBox下复制的ubuntu虚拟机无法上网

复制虚拟机后由于VMware重新分配了网卡的mac地址,而ubunut中又把原先的mac地址保存在缓存中,所以导致怎么重启网卡都是不能启用。错误信息:当执行 sudo/etc/init.d/networkingrestart  * Reconfiguring network interfaces...eth0: ERROR while getting interface f

2013-11-27 11:20:00 1931

原创 linux平台下通过nat上网

以下所有的设置都是以root权限执行.一 设置能上网的计算机1. vim /etc/sysctl.conf     设置 net.ipv4.ip_forward = 12. sysctl -p 重新加载配置3.设置nat转发iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 10.10.2.15eth2是能上网的IP,

2013-11-17 13:21:35 607

原创 不能从局域网访问虚拟机的方法

宿主机的IP为:192.168.26.69.现在从宿主机访问虚拟机没有问题.从局域网的其它机器(IP为192.168.14.135),访问虚拟机不行.虚拟机输入ifconfig,输出如下:eth0      Link encap:Ethernet  HWaddr 08:00:27:4b:21:ce            inet addr:192.168.26.83  Bcas

2013-11-01 17:11:29 1719

原创 virtualbox 复制ubuntu操作系统之后不能上网的解决办法

首先删除MAC地址缓存:登录虚拟机,删除网络配置缓存文件。#rm /etc/udev/rules.d/70-persistent-net.rules重启虚拟机

2013-11-01 14:35:34 752

Oracle OCP 认证教材Administration.II.Exam.Guide.Exam.1Z0-053(英文版)

Oracle OCP 认证教材Administration.II.Exam.Guide.Exam.1Z0-053(英文版)

2011-03-28

JavaScript权威指南第五版的原代码

JavaScript 权威指南第五版原代码,欢迎大家下载。

2010-04-20

JavaScript权威指南.chm

JavaScript权威指南第四版书籍(英语版),欢迎大家下载。

2010-04-20

oracle SQL语法大全

很全,找好长时间才找到了。供有兴趣的人下载吧。

2010-03-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除