函数可以让我们将一个复杂功能划分成若干模块,让程序结构更加清晰,代码重复利用率更高。像其他编程语言一样,Shell 也支持函数。Shell 函数必须先定义后使用。Shell 函数的定义格式如下:
[function] fun() {
list of commands
[ return value ]
}说明:
可以带function fun() 定义,也可以直接fun(...
分类:
其他好文 时间:
2014-08-20 18:05:19
阅读次数:
217
Question:Simple question: In Tomcat7, what's the difference between using extraResourcePaths and aliases to access an directory outside the applicatio...
分类:
数据库 时间:
2014-08-20 13:49:12
阅读次数:
275
vi/etc/apache2/sites-enabled/000-default#Alias/doc/"/usr/share/doc/"#<Directory"/usr/share/doc/">#OptionsIndexesMultiViewsFollowSymLinks#AllowOverrideNone#Orderdeny,allow#Denyfromall#Allowfrom127.0.0.0/255.0.0.0::1/128#</Directory>重启apache网站..
分类:
其他好文 时间:
2014-08-19 16:55:05
阅读次数:
228
1、打开Apache配置文件httpd.conf,找到1 #LoadModule rewrite_module modules/mod_rewrite.so去掉前面的#搜索AllowOverride,将相应Directory下的AllowOverride设置为All1 AllowOverride A...
分类:
Web程序 时间:
2014-08-19 16:14:14
阅读次数:
192
关系型 Active Record官方文档中指出:
两张表之间的关联是根据外键来的,但是这种外键关联虽然在数据容错方面有益处,但是在性能上是个损伤,所以,一般是不定义外键的.
这种情况下,他们之间的关联又会根据什么来呢?
有A,B两张表,在A与B表中都存在一个字段filedX,并且同时字段fi...
分类:
其他好文 时间:
2014-08-19 16:14:04
阅读次数:
257
1. 启用模块 httpd.conf
LoadModule filter_module modules/mod_filter.so
2. <Directory 的Options配置中增加Includes
Options +Includes
3. 增加 .shtml文档类型,并设置INCLUD...
分类:
其他好文 时间:
2014-08-19 14:11:34
阅读次数:
205
在openerp安装过程中报错:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain so...
分类:
数据库 时间:
2014-08-19 12:26:05
阅读次数:
154
./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory你用的是64位的系统吧?应该是缺少 lib32stdc...
分类:
移动开发 时间:
2014-08-19 07:07:23
阅读次数:
296
1、索引的管理//指定索引库文件存放文件位置FSDirectory directory = FSDirectory.Open(new DirectoryInfo(this.IndexDataDir), new NativeFSLockFactory());//判断索引文件目录是否存在bool isE...
分类:
Web程序 时间:
2014-08-19 00:51:13
阅读次数:
352
一,首先服务端开启监听ServerSocket1->Port=StrToInt(5000); ServerSocket1->Active=true;ServerSocket1控件,响应ServerSocket1Listen事件;二,创建连接 ClientSocket1->Address="127.....
分类:
其他好文 时间:
2014-08-18 16:10:52
阅读次数:
319