当前位置: 首页 >> Tag标签为 '文件系统'

vi temporary work file location

在Solaris下,如果/var分区空间用完了,在vi的时候会提示没有剩余空间,导致无法继续编辑。解决办法:

1、增加/var空间

2、修改vi临时文件位置

By default, vi places temporary work files in /var/tmp. You may want to redirect these work files to another location, especially if /var cannot be mounted in case of an error in your system’s file system table (e.g. /etc/vfstab, /etc/fstab).

Read the rest of this entry »

The Z File System(ZFS)-ZFS on FreeBSD

听说ZFS挺强悍的,由于对Sun的系统有恐惧症,并且FreeBSD 8.0上的ZFS文件系统不再是试验性的特性了,所以应该比较完善的具备ZFS的各项功能。 Read the rest of this entry »

对PHPDisk做一点点小的调整

需求:要求公共文件只有已注册帐号才能浏览和下载。无帐号用户拥有提取码仍然可以下载到该下载的文件。

想了许多方法,最终还是觉得这个方法比较快捷:

1、在includes/header.inc.php增加:

if(!$pd_uid && $dont_need_login != 1 ){
 header("Location: ".urr("account","action=login"));
}

2、分别在account.php extract.php viewfile.php文件头部增加

$dont_need_login = 1;