前端Nginx配置:1、安装nginx创建Nginx用户、创建/var/tmp/nginx目录并编译安装useradd-rnginx
mkdir/var/tmp/nginx
tarxfnginx-1.4.7.tar.gz
./configure--prefix=/usr--sbin-path=/usr/sbin/nginx--conf-path=/etc/nginx/nginx.conf--error-log-path=/var/log/nginx/..
分类:
数据库 时间:
2014-05-05 12:18:04
阅读次数:
597
rpm –q gccrpm –q perl确认已安装gcc perl
ncurses-develTsung是用erlang写的需要安装erlang#wget
http://www.erlang.org/download/otp_src_17.0.tar.gz# tar -zxvf otp_src_R...
分类:
其他好文 时间:
2014-05-05 10:59:57
阅读次数:
609
ArraysArrays are zero-indexed, ordered lists of
values. They are a handy way to store a set of related items of the same type
(such as strings), thoug...
分类:
编程语言 时间:
2014-05-04 19:08:29
阅读次数:
533
在VS 2008 中,导入 lua.h 之类的头文件后,编译含有Lua函数的时候,可能会出现如下错误:
1>main.obj : error LNK2019: 无法解析的外部符号_luaL_checkinteger,该符号在函数"int __cdecl add(struct lua_State *)" (?add@@YAHPAUlua_State@@@Z) 中被引用
1>main.ob...
分类:
其他好文 时间:
2014-05-04 18:34:20
阅读次数:
376
实验环境:Mac OSX 10.9.2,Tomcat 7.0.14,JDK 1.6一、制作自签名 CA 证书(根证书)首先我们需要明确自己作为 CA(证书发行机构)的好处。自签名证书并不稀奇,许多企业都在使用自签名证书,但一般意义上的自签名证书和自己作为 CA 发行的自签名证书不一样。自己做CA,可以允许我们用自己的根证书(CA 证书)发行叶证书,这样在安装了根证书的客户端上,这个 CA 的所有叶...
分类:
其他好文 时间:
2014-05-04 18:28:04
阅读次数:
390
vs2010出现fatal error LNK1123 转换到 COFF 期间失败...
分类:
其他好文 时间:
2014-05-04 18:16:49
阅读次数:
275
解决办法:
bean里的int 类型替换成 Integer
.hbm.xml 改为java.lang.Integer...
分类:
其他好文 时间:
2014-05-04 17:56:01
阅读次数:
298
系统背景
电脑型号:Thinkpad X230i
操作系统:win 8.1 中文版 + Ubuntu 13.10 双系统运行
问题描述
在Ubuntu系统下无法打开Win分区,提示以下信息
Unable to Access "WINDOWS"Error mounting /dev/sda3 at /media/dany/Data: Command-line `mount -t "nt...
分类:
数据库 时间:
2014-05-04 17:53:36
阅读次数:
681
查看一个数据库的所有表:SelectTABLE_NAMEFROM数据库名称.INFORMATION_SCHEMA.TABLESWhereTABLE_TYPE=‘BASETABLE‘(select*from表名where条件)查看一张表的表结构:sp_helptable_name(表名)获取的信息比较全sp_columnstable_name(表名)创建数据库:usemastergocreatedatabase..
分类:
数据库 时间:
2014-05-04 17:27:23
阅读次数:
456
enum.php/**
*本类主要是实现枚举的功能
*@paramunknown_type$base_class
*@paramunknown_type$args
*@paramunknown_type$codeArgs
*/
functionenum($base_class,array$args,array$codeArgs){
$class_parts=preg_split(‘/\s+/‘,$base_class);
$base_class_name=array_shift($cl..
分类:
其他好文 时间:
2014-05-04 17:14:55
阅读次数:
279