- 博客(38)
- 资源 (4)
- 收藏
- 关注
原创 解决git提交问题error: The requested URL returned error: 403 Forbidden while accessing
git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https” 解决方法: 编辑.git目录下的config文件即可。vim .git/config#修改对于的配置#原来的url = https://github.com/elitecodegr
2014-05-30 21:01:06 9590
原创 git提交代码的常用操作
1 从github导出项目并提交更新代码 克隆一个github项目:git remote add origin https://github.com/elitecodegroovy/PhoenixC.git 添加文件,提交注释。git add README.mdgit commit -m "first commit" 最后,提交代码。git push
2014-05-30 20:53:13 1383
原创 解决yum升级的问题“There was a problem importing one of the Python modules”
yum命令升级的时候,报出这个错误。There was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: No module named yumPlease install a package which provides t
2014-05-30 09:16:30 16316
原创 删除CentOS / RHEL的库和配置文件(Repositories and configuraiton files)
1 删除库配置文件 以root权限运行下面的命令:# cd /etc/yum.repos.d/ 列出所有库(repo)#lsCentOS-Base.repo epel.repo mirrors-rpmforge-testingCentOS-Debuginfo.repo epel-testing.repo rpmf
2014-05-29 17:13:16 3707
原创 在Linux下安装C/C++开发工具包的最佳方式
如果你使用的是 Fedora, Red Hat, CentOS, 或者 Scientific Linux 系统,使用下面的命令安装GNU的C/C++开发包和编译器。# yum groupinstall 'Development Tools' 如果你使用的是Debian 或者 UbuntuLinux系统,你可以使用下面的这个命令来安装C/C++编译器。#sudo
2014-05-29 13:20:46 5924
原创 CentOS 安装jdk1.8.0_05
CentOS上安装JDK 8, 具体步骤如下:1 下载JDK 8 到Oracle官网上下载最新的JDK 8 版本,地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 选择rpm文件的JDK,以便于最简洁安装。2 安装
2014-05-27 11:21:25 2786
原创 解决log4j.xml问题http//jakarta.apache.org/log4j/ uri is not registered
在Eclipse中,配置log4j.xml出现“http //jakarta.apache.org/log4j/ uri is not registered”的错误信息。原始的log4j.xml配置文件: 解决方法,具体修改如下所示。
2014-05-26 17:37:14 19861 3
原创 扩展Web应用程序(上)
1.8 扩展Web应用程序1.8.1 性能 对于开发者而言,他们主要关注程序的响应时间和延展性。 响应时间也是衡量一个应用程序的效率的指标之一。如果一个请求到响应时间超出了良好的感知范围,我们就可以认为这个程序的性能很糟糕。一般而言,最好能够在一两秒内得到想要的页面。延展性,说了是添加了更多的硬件设备,应用程序能够线性地承受更多的请求。添加硬件的方式有两
2014-05-20 23:23:31 1861
原创 Linux Virtual Server技术
1 LVS简介 Linux VirtualServer是一个高扩展和高可用性服务器,在一个真正服务器的集群中构建而成,包含Linux操作系统中的负载均衡。 服务器的架构对于终端用户而言是完全透明的,在与用户交互过程中,用户感觉它好像是一台高性能的服务器。它的拓扑机构如下所示。 真正的服务器和负载均衡可能是通过要么高速LAN网或者通过分散的WAN网进行
2014-05-20 13:52:35 1944
原创 联想G480安装CentOS有线驱动
最近,在联想的G480 32位的机子上安装了CentOS 6.5。发现,有线网络始终是无法使用。必须安装必要的驱动,搜集了资料,安装步骤如下: 1. 必备的软件 安装前,需要下列的软件依赖包.sudo yum install gcc gcc-c++ kernel-headers kernel-devel autoconf automake libtool c
2014-05-15 16:04:21 1913
原创 错误Access Restriction: The Type BASE64Encoder 的解决
在Eclipse中,出现“Access Restriction: The Type BASE64Encoder Is Not Accessible Due To Restriction”错误。 解决方法: 点击Window-->Preferences-->Java-->Compiler-->Errors/Warns,设置Deprecated And Restri
2014-05-14 09:12:54 1997
原创 安装Apache Httpd 2.4.9
安装准备,安装依赖包。yum install gccyum install makeyum install openssl-develyum install pcre-devel 下载Httpd 2.4.9http://httpd.apache.org/download.cgi 下载Apr和Apr-util包http://apr.apache.org/download
2014-05-14 00:03:19 3048
原创 JBoss VS Tomcat
JBoss (JBoss 已经重新命名了,新版的称之为WildFly)提供了完全Java企业版协议栈( JavaEnterprise Edition (JEE) stack),企业级的Java Bean以及其它有用的功能特性。而JBoss和Tomcat都包含Servelt Engine 和Web Server服务。Tomcat相对于JBoss而言,比较轻量级的Web服务器,它没有太多的资源和Jav
2014-05-13 15:13:51 5291
原创 JBoss AS 7 的应用服务特性
1.1 JBoss AS 7 新特性 在2011年7月12号,JBoss 发布了它的 JBoss AS 7.0.0。这个版本的JBoss AS有几个重大的提高,尤其是在管理模块上。你会发现,这个JBoss AS 7 与以前的发布版本有非常大的不同,目录结构上有重大调整。在下面几个方面有重大的提升: l 应用服务器作为管理域(Managed
2014-05-13 15:13:28 1229
原创 一流的企业福利是这样的吗?
看到一则企业的福利待遇,具体细节如下:1、13薪+年底红包+年终奖+期权2、+五险一金+IHOME无息贷款+蒲公英计划3、+阿里巴巴西溪园区的办公环境(有健身房,体育馆 我经常去跑步、健身、打球)4、+8G+SSD+双显的电脑配置;还可以申请苹果笔记本!5、+5000块钱一把的椅子6、+每年的outing7、+和谐友爱开放融洽的团队氛+和谐友爱开放融洽的团队氛围 科技
2014-05-12 23:22:42 1644
原创 阿里巴巴一则招聘内容的思考
无意中,看到阿里巴巴一则招聘广告。我认真看了一下,觉得阿里巴巴真的是重视能力和创造力的公司啊。下面是它提供了招聘内容:岗位:高级交互设计师1. 交互设计的经验,或多或少,当然经验丰富者优先。2. 优秀的沟通和协调能力,能准确的挖掘用户需求也能识别需求的有效性,结合商业目标和技术可行性,在有限的项目资源内,给出双赢的解决方案。3. 优秀的多线程任务处理能力和自我管理能力,能促使项目更合理
2014-05-12 23:15:39 1146
原创 Hadoop 2.4.0新特性介绍
在2014年4月7日,Apache发布了Hadoop 2.4.0 。相比于hadoop 2.3.0,这个版本有了一定的改进,突出的变化可以总结为下列几点(官方文档说明):1 支持HDFS访问控制列表(ACL,Access Control Lists) 这个特性解决了在一定情况下,文件权限访问的权限问题。其机制是基于Linux文件访问权限的特征,如果你熟悉Linux的文件访问机
2014-05-12 16:57:24 1880
原创 学习Hadoop生态系统最值得一读的书籍
学习大数据的处理,有必要读一下有关大数据的书籍。这里,我列举了几本书,仅供参考。 1 ZooKeeper: Distributed Process Coordination 这本书针对的是初级或者高级的开发,面向Zookeeper编程的工程师们。如果你的工程中(如HBase)涉及到Zookeeper的应用,有必要了解一下Zookeeper的管理知识和一些基本解
2014-05-11 21:41:24 8664 1
原创 Hadoop集群硬件标准配置
在我们选择硬件的时候,往往需要考虑应用得到的性能和经费开支。为此,我们必须在满足实际需要和经济可行上找到一个完美的平衡。下面,以Hadoop集群应用为了例子,说明需要考虑的要素。 1. I/O绑定的工作负荷。 Hadoop涉及到的I/O操作,主要包括下列几项:索引(Indexing)群化(Grouping)数据导入和导出(Data importing
2014-05-11 21:09:57 6209 1
原创 大数据Lambda架构
1 Lambda架构介绍Lambda架构划分为三层,分别是批处理层,服务层,和加速层。最终实现的效果,可以使用下面的表达式来说明。query = function(alldata)1.1 批处理层批处理层主用由Hadoop来实现,负责数据的存储和产生任意的视图数据。计算视图数据是一个联系操作,因此,当新数据到达时,使用MapReduce迭代地将数据聚集到视图中。 从整个数据集中计算
2014-05-10 19:58:01 16912 1
原创 Twenproxy介绍
Twemproxy is a proxy server that allows you to reduce the number of open connections to yourMemcached or Redis server.What is Twemproxy useful for? It canreduce the number of connections t
2014-05-08 23:44:20 2130
原创 半自动化安装Ganglia
1 半自动化安装Ganglia如果你的服务器是6.4 位,并且是centOS或者red hat linux 5.x以上版本,可以使用下列方式,半自动化安装ganglia监控系统。1.1 前期准备在安装前,需要做一些准备工作,为后续的安装步骤做基础。首先,添加Fedora到系统库中。sudo rpm -Uvh http://dl.fedoraproject.org/pub/epe
2014-05-06 22:38:39 1445
原创 CentOS系统时区设置
在一些分布式应用程序中,往往需要保持系统的时钟的一致性。比如,在Hadoop上搭建的HBase数据库,还有一些集群的应用程序等。 下面介绍如何设置CentOS(也可以是Red Hat Linux)时区设置。 查阅亚洲地区的时区。[app@machine-0 ~]$ ls /usr/share/zoneinfo/Asia 显示结果:Aden
2014-05-06 21:45:36 1339
原创 ganglia UI中图片中的内容显示为长方形空格(问题已经解决)
安装Ganglia-3.6中,遇到以这样一个问题,见下图: 解决问题: 遗漏安装包dejavu-fonts-common , dejavu-lgc-sans-mono-fonts, dejavu-sans-mono-fonts 。下载安装或者直接从库中安装,最简单的方式(centOS, red hat linux ):yum -y install de
2014-05-06 15:13:47 1487
原创 linux下安装mod_evasitive模块(防止单一客户的DOS攻击)
安装步骤如下: 1. 前提条件 已经安装了Apache 2.2.x或以上版本,下载mod_evasitive。下载地址:http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz 2. 安装 按照下列指令安装mod_evasi
2014-05-03 22:10:06 1354
原创 Apache日志记录浏览器的名字
如果你想记录用户所使用的浏览器的名字,辨别是移动客户端还是PC客户端。你可以在Apache日志中记录这个信息,日志格式:%{User-Agent}i
2014-05-02 22:24:32 2117
原创 异常: undefined symbol: lua_setglobal
将Apache 与modsecurity集成后,启动Apache时,报出的异常:“..undefined symbol: lua_setglobal” 后来,发现自己安装了两个lua库。一个事手工安装,一个是centOS工具套件安装的。删除了手工安装的lua后,一切OK。 但是,记得重新编译modsecurity。
2014-05-02 09:04:09 5658 1
原创 出错mlogc.c:32:23: error: curl/curl.h: No such file or directory
出现下列错误:mlogc.c:32:23: error: curl/curl.h: No such file or directorymlogc.c:1091: error: expected ‘)’ before ‘*’ tokenmlogc.c: In function ‘logc_init’: 出错原因:缺少libcurl-dev or libcurl-devel
2014-05-02 08:08:24 22727
原创 异常configure: *** apu library not found.
安装modsecurity时,出现“configure: *** apu library not found.”。 解决方法:yum install apr-util-devel
2014-05-02 07:47:36 2548
原创 错误gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error:
编译Lua时,出现这样的错误:gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.clua.c:67:31: error: 查阅了一下,centOS上需要安装readline-devel ncurses-develyum install readline-devel ncurses-devel
2014-05-01 23:13:38 1501
原创 启动chkconfig配置参数介绍
在init.d目录下,常常会看到脚本文件包含的头部。比如,下面的这个格式。 # chkconfig: 2345 20 80 # description: Saves and restores system entropy pool for \ # higher quality random number generation.
2014-05-01 17:57:11 3422
原创 添加Apcache到Linux系统启动项
当我们纯手工安装Apache后,需要将Apache服务添加到系统服务,并且将其作为系统的启动项。下面,介绍一下具体步骤: 1. 添加启动项的命令$ cp path/to/apachectl /etc/init.d/httpd$ vi /etc/init.d/httpd # chkconfig 2345 20 80# description:XXX$ chkconfig --a
2014-05-01 17:38:59 1466
原创 编译打包Apache源码
如果要编写定制的Apache模块,最总需要编译成Apache包。命令如下:% ./buildconf% ./configure --prefix=/usr/local/apache> --with-layout=Apache --enable-modules=most --enable-mods-shared=all \> --with-mpm=prefork% make#mak
2014-05-01 15:00:44 1235
原创 异常/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h'
出现下列异常: /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h/usr/bin/install: cannot create regular file `/usr/local/jpeg6/include/jconfig.h': No such file or directory
2014-05-01 12:47:31 21531 5
原创 /usr/local/lib/libz.a: could not read symbols: Bad value
64位系统中,安装freetype时,出现这个问题。后来发现,此问题进出现在64位系统中。 修复方法: cd zlib-1.2.3 //进入zlib目录 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 make make install 然后,进入freetyp
2014-05-01 12:08:47 3387
原创 configure: error: ZLib not installed
安装libpng,出现“configure: error: ZLib not installed”。 解决方法: 1. 进入ZLib的安装包,不必加--prefix参数命令: ./configure make && make install 2. 进入libpng解压缩包中,输入: ./configure --prefix=/
2014-05-01 11:49:59 6395 1
Machine Learning With Go
2017-10-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人