一、定义 我们知道,我们的插件是服务于NVelocity的,在你的项目当中,对于NVelocity的模板应当有一个统一的文件扩展名,以便于VS在打开指定扩展名的文件后,就能起到具体的作用。 如果我没有记错,Castle Monorail MVC 的NVelocity模板一律为.vm文件,本例也以.v...
分类:
其他好文 时间:
2014-08-23 15:19:50
阅读次数:
226
#链接文件硬链接:lnSRCLINKFILE①硬链接不能跨分区[root@VM_168_102_centostmp]#mount
/dev/xvda1on/typeext3(rw,noatime,acl,user_xattr)
procon/proctypeproc(rw)
sysfson/systypesysfs(rw)
devptson/dev/ptstypedevpts(rw,mode=0620,gid=5)
noneon/proc/sys/fs/binfmt_misc..
分类:
系统相关 时间:
2014-08-22 19:49:20
阅读次数:
353
方法一:新建分区使用fdisk工具新建一个分区[root@VM_168_102_centos~]#fdisk/dev/xvdb
DevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFdisklabel
BuildinganewDOSdisklabelwithdiskidentifier0xad066822.
Changeswillremaininmemoryonly,untilyoudecidetowrite..
分类:
其他好文 时间:
2014-08-22 18:06:09
阅读次数:
342
【问题现象】MCS出来的虚拟机无法被删除【环境】VDA:Win7SP1Enterprise32bitDDC:XenDesktop5.6MachineType:Pool-Randomly【问题分析及处理】1.将虚拟机先从桌面组中移除并将其置成维护模式。2.右键删除虚拟机并从ActiveDirectory中删除。界面开始停留在删除vm的进度条中,如下..
分类:
其他好文 时间:
2014-08-22 18:04:09
阅读次数:
571
// 获取当前设备可用内存及所占内存的头文件#import #import // 获取当前设备可用内存(单位:MB)- (double)availableMemory{ vm_statistics_data_t vmStats; mach_msg_type_number_t infoCoun...
分类:
移动开发 时间:
2014-08-22 16:08:58
阅读次数:
208
想把树莓派当一个小型服务器来用,性能可以差一点,但是稳定性必须保证,以下是从网络上找到的提高稳定性的方法。 1)/etc/sysctl.conf当中修改 vm.min_free_kbytes(8192修改成16384) #?rpi?tweaks
vm.swapp...
分类:
其他好文 时间:
2014-08-22 14:41:19
阅读次数:
238
目前,OpenStack中默认采用了security group的方式,用系统的iptables来过滤进入vm的流量。这个本意是为了安全,但是往往给调试和开发带来一些困扰。
因此,临时性的禁用它可以排除因为iptables规则错误问题带来的网络不通等情况。
在H版本中,可以通过修改neutron plugin.ini中的firewall配置来禁用security group。
但在I版本中,...
分类:
其他好文 时间:
2014-08-22 10:51:36
阅读次数:
198
Writingtothiswillcausethekerneltodropcleancaches,dentriesandinodesfrommemory,causingthatmemorytobecomefree.Tofreepagecache:*echo1>/proc/sys/vm/drop_caches默认这种方式处理就可以Tofreedentriesandinodes:*echo2>/proc/sys/vm/drop_cachesTofreepagecache,dent..
分类:
其他好文 时间:
2014-08-21 19:43:35
阅读次数:
130