- 博客(128)
- 资源 (12)
- 收藏
- 关注
原创 将memcached添加到系统服务
#! /bin/sh## chkconfig: - 55 45# description: The memcached daemon is a network memory cache service.# processname: memcached# config: /etc/sysconfig/memcached# pidfile: /var/run/memcached/memca
2014-03-28 00:25:03
2218
原创 SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for furth
2013-12-25 12:10:32
1168
原创 maven-javadoc-plugin 中文乱码
org.apache.maven.plugins maven-javadoc-plugin 2.9.1 true UTF-8 UTF-8 UTF-8 attach-javadocs jar 添加环境变量:JAVA
2013-12-25 10:58:10
4620
原创 Apache + PHP 上传文件时出现Internal Server Error
The server encountered an internal error or misconfi*ration and was unable to complete your request.Please contact the server administrator at admin@example.com to inform them of the time this er
2013-11-13 17:52:13
2736
1
原创 设置Windows为ntp服务器
@echo offecho Windows Registry Editor Version 5.00 > ntp.regecho [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters] > ntp.regecho "LocalNTP"=dword:00000001 > ntp.regecho [
2013-11-12 01:48:29
1377
原创 Starting MySQL… ERROR! The server quit without updating PID file
Linux系统宕机后,MySQL无法启动。可以尝试将 my.cnf 删除即可~~
2013-11-04 11:22:27
942
原创 Centos 6.4 minimal kamailio编译安装
安装websocket模块所需库 yum install libunistring libunistring-devel提示:/usr/bin/ld: cannot find -lmysqlclient解决办法:rpm -ivh MySQL-shared-5.6.14-1.linux_glibc2.5.x86_64.rpm提示:chown: invalid user
2013-10-15 22:36:50
5408
转载 Siremis 安装
Install And Maintain Kamailio v4.0.x Version From GITMain author: Daniel-Constantin Mierla This is a step by step tutorial about how to install and maintain Kamailio SIP Server version 4.0.
2013-10-14 13:03:48
2327
1
原创 service httpd does not support chkconfig
cp /usr/local/apache2/bin/apachectl /etc/rc.d/init.d/httpdchkconfig --add httpd报 service httpd does not support chkconfig 错误出错原因:apachectl 这个脚本文件缺乏 chkconfig 和 description 这两个标签说明。解决方法:
2013-09-25 22:12:19
2148
原创 python version 2.7 required,which was not found in the registry
新建一个register.py 文件,把一下代码贴进去,保存,运行即可## script to register Python 2.0 or later for use with win32all# and other extensions that require Python registry settings## written by Joakim Loew for Secr
2013-09-17 23:24:12
940
原创 添加nginx到windows服务
1.下载rktools并安装2.执行以下命令:"D:\Program Files (x86)\Windows Resource Kits\Tools\instsrv" nginx "D:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe"3.新建nginx.reg,并执行Windows Registry Edito
2013-09-02 22:50:32
1132
原创 PHP 操作 MongoDB SQL对照表
SQL StatementMongo Query Language StatementCREATE TABLE USERS (a Number, b Number)Implicit or use MongoDB::createCollection().INSERT INTO USERS VALUES(1,1)$db->users->insert(arra
2013-08-16 17:04:46
1157
原创 Jetty Struts2 Result ‘Null’ Not Found
OGNL会执行执行安全检测,但是并不被GAE所支持,解决方法是创建一个监听器,将安全检查处理器置空OgnlRuntime.setSecurityManager(null);web.xml添加 com.llx.gps.listener.Struts2ListenerOnGAE package com.llx.gps.listener;import
2013-08-15 02:17:49
1831
原创 Browser.php
<?php/** * File: Browser.php * Author: Chris Schuld (http://chrisschuld.com/) * Last Modified: August 20th, 2010 * @version 1.9 * @package PegasusPHP * * Copyright (C) 2008-2010 Chris Schuld
2013-08-12 16:05:42
1157
原创 No input file specified
1.修改nginx主配置文件nginx.conf默认安装的nginx配置文件中定义fastcgi处是:fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;改成:fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;2.修改
2013-08-01 16:25:58
848
原创 MySQL-5.6.12 Replication
参见MySQL安装master:172.16.1.233slave:172.16.1.2341.修改配置文件mastervim /etc/my.cnf[mysqld] log_bin = mysql-bin log_bin_index = mysql-bin.index sync_binlog = 1 innodb_flush_log_at_trx_
2013-07-31 18:14:14
1122
原创 CentOS 6.4 编译安装 MySQL-5.6
环境:CentOS-6.4-x86_64-minimalmysql-5.6.12.tar.gzyum -y install make gcc-c++ cmake bison-devel ncurses-develgroupadd mysqluseradd -g mysql mysqlcurl -o mysql-5.6.12.tar.gz http://cd
2013-07-30 14:48:46
1461
原创 Nginx集群
配置文件#user nobody;worker_processes 1;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;pid logs/nginx.pid;events { worker_connection
2013-07-26 18:14:30
1531
原创 lvs + keepalived 高可用
1.编译和安装curl -o keepalived-1.2.7.tar.gz http://www.keepalived.org/software/keepalived-1.2.7.tar.gztar xvf keepalived-1.2.7.tar.gzcd keepalived-1.2.7./configuremakemake install2.配置cp /usr/
2013-07-26 18:06:38
1222
原创 php+nginx配置
php+nginx配置参见nginx编译和安装1. 下载curl –o php-5.5.1.tar.gzhttp://ar2.php.net/distributions/php-5.5.1.tar.gz2. 编译和安装tarphp-5.5.1.tar.gzcd php-5.5.1./configure--with-mysql --prefix=/usr/local/
2013-07-25 14:10:13
974
原创 nginx.spec
Name: nginxVersion: 1.5.2Release: 1%{?dist}Summary: Robust, small and high performance HTTP and reverse proxy serverGroup: System Environment/DaemonsLicense: BSDURL: http://nginx.net/Source0
2013-07-24 02:53:58
1807
原创 CentOS-6.4-x86_64-minimal Nginx编译和安装
Nginx编译和安装1. 环境1) CentOS-6.42) gcc-4.4.73) nginx-1.5.24) pcre-8.215) zlib-1.2.86) make2. 准备工作1) 下载pcre-8.21.tar.gzzlib-1.2.8nginx
2013-07-23 16:59:33
1822
原创 必须声明元素类型 "hibernate-mapping"
[2013-05-16 16:25:15,359] ERROR org.hibernate.internal.util.xml.ErrorLogger - HHH000196: Error parsing XML (2) : 必须声明元素类型 "hibernate-mapping"。[2013-05-16 16:25:15,359] ERROR org.hibernate.internal.u
2013-05-16 16:25:51
9454
原创 vbs打开文件对话框
Function SelectFile() Set wShell=CreateObject("WScript.Shell") Set oExec=wShell.Exec("mshta.exe ""about:FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FI
2013-04-27 00:53:37
4413
原创 π
Pi = 3.1415926535 8979323846 2643383279 5028841971 6939937510 : 505820974944 5923078164 0628620899 8628034825 3421170679 : 1008214808651 3282306647 0938446095 5058223172 5359408128 : 150481
2013-04-17 19:03:48
3695
原创 ExtJS时间扩展控件(显示年月日时分秒)
效果如下:Ext.ux.DateTime.js/** * @author baiyang * @date 2013-04-10 23:28:02 */Ext.define('Ext.ux.form.TimePickerField', { extend : 'Ext.form.field.Base', alias : 'widget.timepicker', alter
2013-04-10 23:17:51
7817
5
原创 Html利用锚点标记代替iframe实现页面无刷新加载
在Html中,有时为了实现页面的无刷新加载,相信有不少人会用到iframe标签。尤其是在做后台管理系统的时候,经常会在左边放置一个导航菜单,然后将正文显示在iframe中,类似如下写法:xxx 当然这样做有他的好处,但是有时处理起来还是有诸多的不便,iframe实际上就是一个子页面(肤浅理解,对错?)。例如:在父页面中的js方法,只能通过parent.xxx的形式来访问;有时为了检测用户
2013-04-08 15:44:31
4311
1
原创 Java生成Gif验证码 AnimatedGifEncoder
import java.io.*;import java.awt.*;import java.awt.image.*;/** * Class AnimatedGifEncoder - Encodes a GIF file consisting of one or * more frames. * * Example: * AnimatedGifEncoder e = ne
2013-03-17 12:08:08
2199
原创 SSH框架整合(整合Spring,Hibernate,Struts,c3p0,log4j,mysql)
该工程为搭建好的框架,方便以后使用工程缩略图:lib目录缩略图:下载地址
2013-03-16 03:13:38
1902
原创 error C2440: “类型转换”: 无法从“overloaded-function”转换为“LPTHREAD_START_ROUTINE”
解决方法:static UINT WINAPI ThreadFunc(LPVOID param){ IDialysisConnector* obj = (IDialysisConnector*)param; obj->TheFunctionYouWantToCallInThread(); // call the member function
2013-03-12 23:29:14
10365
原创 VC++获取MD5
md5.h#ifndef MD5_H#define MD5_H#include #include /* Type define */typedef unsigned char byte;typedef unsigned int uint32;using std::string;using std::ifstream;/* MD5 declaration. */cla
2013-03-10 00:43:35
2795
原创 Tomcat启用Gzip压缩功能
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" compression="on" compressionMinSize="1024" noCompressionUserAgents="gozilla,
2013-03-06 23:43:15
964
原创 Ext.util.md5
Ext.util.MD5 = function(s, raw, hexcase, chrsz) { raw = raw || false; hexcase = hexcase || false; chrsz = chrsz || 8; function safe_add(x, y) { var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw
2013-03-05 13:58:22
1872
1
原创 Ext store.loadData()执行后不显示数据
原型如下:loadData( Ext.data.Model[]/Object[] data, [Boolean append] )注意第一个参数是对象类型的,所以在传参的时候,不要将JSON字符串直接传入,而需要传入解析后的对象,即Ext.JSON.decode(json)
2013-02-28 19:16:57
7049
原创 ExtJS 去掉TreePanel左上角的红色小三角
当Tree的节点被编辑后,会在左上角出现一个难看的小三角。解决方法如下:var m = Ext.create('Ext.data.NodeInterface', {}); m = g.createNode(m); m.set('id', members[j].Id); m.set('text', members[j].Name); m.set('leaf', tru
2013-02-28 16:36:46
1322
原创 jQuery MD5插件
(function($) { var rotateLeft = function(lValue, iShiftBits) { return (lValue >> (32 - iShiftBits)); }; var addUnsigned = function(lX, lY) { var lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x8
2013-02-02 11:18:30
1029
原创 csdn代码格式化
对于以上的代码样式,想必大家非常熟悉,下面给出一个参考示例:<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><% String docRoot = System.getProperty("docRoot"); String file = reque
2013-01-27 16:17:17
979
Flex 获取文件MD5值
2012-11-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人