TUP

A Django setup using Nginx and Gunicorn

This is a howto on setting up Django on a Linux (Ubuntu) system using Nginx as a reverse proxy and Gunicorn as a Django service. The conventional way to run Django in prod

2015-07-29 11:32:18

[置顶] Ubuntu安装Django提示 ImportError: No module named setuptools 解决方案

在Ubuntu下安装Django时,会提示说 ImportError: No module named setuptools 。 解决方法如下:        对于系统自带的python2.x版本,使用如下命令:        wge

2015-07-29 11:30:59

[Ruby on Rails] Setup Enviroment

There are three steps. 1. Install Ruby.  It will be easier by using RVM. RVM is a ruby version manager. 1.1 Install RVM: https://rvm.io/rvm/install/   Install RVM wit

2015-07-13 11:28:14

How to setup Ruby and RubyGems on CentOS?

You can install it with default yum install -y ruby ruby-devel rubygems Other way is to compile it by yourself Ruby wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p3

2015-07-13 11:26:08

tomcat无法启动,startup一闪而过,怎么办?

首先,编辑startup,在最后加上一个pause,这样就可以查看错误了: 加上pause后,出现如下错误提示: The JAVA_HOME environment variable is not defined correctlyThis environment variable is needed to run this programNB: JAV

2015-07-13 11:12:28

nginx setup

=========== nginx setup =========== Here\'s how to install nginx -- the stable branch, packaged by the upstream nginx developers/company -- on Ubuntu lucid. See below at the

2015-07-13 11:10:47

memcached session manager SetupAndConfiguration for tomcat

SetupAndConfiguration   This page shows what\'s necessary to get the memcached-session-manager up and running. Featured, Phase-Deploy Updated Jun 15, 2013 by martin

2015-07-13 11:08:31

How to fix Eclipse Tomcat startup timeout in 45 seconds?

命题:怎么修复 Eclipse 里启动 Tomcat 时, 默认启动超时时间为 45 秒的问题?   在 Eclipse 的 J2EE 项目里启动 Tomcat 来调试 Servlet 之类的,断点以后,你会遇到 tomcat 启动 45秒 超时的问题,下面是解决这个问题的方法:   首先找到这个文件,其中 \

2015-07-13 10:45:33

Setup PHPUnit in Laravel 4

1,在composer.json中添加: "require-dev": { "phpunit/phpunit": "3.7.*" }, 2,执行命令,安装phpunit composer update 3,测试 vendor/bin/phpunit 4,添加测

2015-07-10 14:21:45

hibernate中at org.hibernate.tuple.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:372)异常的解决方法

今天写structs+spring+hibernate的时候碰到了这个问题 java.lang.NullPointerException at org.hibernate.tuple.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:372) 这个问题出得很莫名其妙,

2015-07-08 18:39:52

Hibernate错误Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

      今天写一个东西的时候遇到了这样的错误“Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]”具体的错误信息是这样的 java.lang.ExceptionIn

2015-07-08 18:34:28

org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationExc

2015-07-08 18:33:45

Hibernate 异常 Unable to instantiate default tuplizer

. . . . . 今天在做Hibernate和Spring整合,在一张表中多添加了三个字段,它们的类型分别是INT、BIT和DATETIME,然后手动修改了实体类和.hbm.xml,启动单元测试的时候遇到了一个问题,控制台上报出了一大堆异常和堆栈信息,嵌套到最终的一个异常是Unable to instantiate default tuplize

2015-07-08 18:30:17

Python的包管理工具easy_install, setuptools, pip,distribute介绍

easy_install, setuptools, pip,distribute,这几个工具的联系,如下图: Distribute被创建是因为Setuptools包不再维护了。 Pip 是对easy_install的取代,提供了和easy_install相同的查找包的功能,因此可以使用easy_install安装的包也同样可以使用pip进行安

2015-07-07 15:29:11

Tomcat7.0 start Could not find the main class: org.apache.catalina.startup.Bootstrap.

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60) Caused by: java.lang.ClassNotFoundEx

2015-07-02 17:29:49

(linux)python之setuptools、easyinstall、pip安装及连接redis

最近研究python,从0开始研究。看了几天基础开始尝试连接redis,遇到好多问题。在此根据自己的经历总结一下。 一般linux会自带python,版本不一,建议不要删除原有版本,如果没有安装需要首先安装 1、安装python2.7 wget http://python.org/ftp/python/2.7.2/Python-2.7.2.

2015-07-01 17:30:28

Apache multiple domains setup

Running several name-based web sites on a single IP address. Your server has a single IP address, and multiple aliases (CNAMES) point to this machine in DNS. You want t

2015-06-24 11:27:06

windows下安装mongodb扩展出现 PHP Warning: PHP Startup: in Unknown on line 0

系统 windows7 集成环境 xampp 1.8.3 php-mongo.dll下载地址 http://pecl.php.net/package/mongo/1.6.0RC2/windows 选择对应的版本下载 将php-mongo.dll放入php的ext文件夹下 修改php.ini。 但是在安装mongodb扩展的时候 出现了PHP

2015-06-24 11:19:20