06 2011 档案

摘要: 1. 什么是LVM-------------------------------------------------------------------------------------------------------LVM是逻辑盘卷管理(Logical Volume Manager)的简称,它是对磁盘分区进行管理的一种机制, LVM是建立在硬盘和分区之上的一个逻辑层,用来提高磁盘管理的灵活性.通过LVM可将若干个 磁盘分区连接为一个整块的卷组(Volume Group),形成一个存储池.可以在卷组上随意创建逻辑 卷(Logical Volumes),并进一步在逻辑卷上创建文件系统.2.阅读全文
posted @ 2011-06-30 20:41 iTech 阅读(498) | 评论 (0) 编辑
摘要: http://blog.perforce.com/blog/ Perforce Technical Product Overview http://www.perforce.com/perforce/bullet.html Perforce best practices http://www.perforce.com/perforce/papers/bestpractices.html FAQ How to back out changes? http://kb.perforce.com/?article=014 How to back out integration? http://kb.p阅读全文
posted @ 2011-06-30 10:44 iTech 阅读(404) | 评论 (0) 编辑
摘要: RPM Error: Failed dependencies1) ErrorInstalling FDO Provider for Rastererror: Failed dependencies: libpng.so is needed by fdo-raster-3.7.0.806-1.i3862) install libpng # Install libpng by yum $yum install libpng # check libpng is installed $rpm -qa | grep libpng libpng-1.2.10-7.1.el5_5.3 $rpm -q lib阅读全文
posted @ 2011-06-29 10:48 iTech 阅读(1361) | 评论 (0) 编辑
摘要: BuildForge的帮助:http://publib.boulder.ibm.com/infocenter/bldforge/v7r1m2/index.jsp?topic=/com.ibm.rational.buildforge.doc IBM Rational Build Forge: Build and release process managementImprove your build process with IBM Rational Build Forge, Part 1: Create a continuous build and integration environmen阅读全文
posted @ 2011-06-23 12:49 iTech 阅读(392) | 评论 (0) 编辑
摘要: http://rimuhosting.com/howto/profile.jspLinux ShellEnvironment Setup Using /etc/profile.d/*When a user logs in, environment variables are set from various places. That includes:/etc/profile (for all users).Then all the files in the /etc/profile.d directory.Then ~/.bash_profile.Then ~/.bashrc./etc/pr阅读全文
posted @ 2011-06-17 14:15 iTech 阅读(389) | 评论 (0) 编辑
摘要: http://rimuhosting.com/howto/mysqlbackup.jspAutomated MySQL Database BackupVersion 1Want to backup your MySQL databases to another machine on a nightly basis? Then create a /etc/cron.daily/mysqlbackup.sh job like this:mysqldump--compress-uroot-p$pw-h$currenthost--add-drop-table--extended-insert--quo阅读全文
posted @ 2011-06-17 14:15 iTech 阅读(419) | 评论 (0) 编辑
摘要: Troubleshooting Memory Usagehttp://rimuhosting.com/howto/memory.jsp All about Linux swap spacehttp://www.linux.com/news/software/applications/8208-all-about-linux-swap-space完!阅读全文
posted @ 2011-06-17 13:19 iTech 阅读(357) | 评论 (1) 编辑
摘要: 超大文件的copy一 几G或几十G的文件的copy例如需要拷贝exe,iso到远程的机器上,我们可以使用如下的方法: 多线程copy:1) split + copy + cat [split and cat are Linux command, you can get them from UnxUtils]2) zip(into many parts) + copy + unzip [or can use 7z instead of zip]增量copy:3) rsync [incrementally transfer]二 几百G上至上T的文件的copy例如数据库文件等得备份,需要对copy工阅读全文
posted @ 2011-06-10 20:01 iTech 阅读(619) | 评论 (0) 编辑
摘要: 转自: http://www.linuxany.com/archives/1563.htmlPython 动态加载模块的3种方法 1,使用系统函数__import_() stringmodule = __import__('string') 2,使用imp 模块 import impstringmodule = imp.load_module('string',*imp.find_module('string')) 3,使用exec import_string = "import string as stringmodule"阅读全文
posted @ 2011-06-10 18:56 iTech 阅读(745) | 评论 (0) 编辑
摘要: 一 uptimeuptime命令用于查看服务器运行了多长时间以及有多少个用户登录,快速获知服务器的负荷情况。uptime的输出包含一项内容是load average,显示了最近1,5,15分钟的负荷情况。它的值代表等待CPU处理的进程数,如果CPU没有时间处理这些进程,load average值会升高;反之则会降低。load average的最佳值是1,说明每个进程都可以马上处理并且没有CPU cycles被丢失。对于单CPU的机器,1或者2是可以接受的值;而在一个多CPU的系统中这个值应除以物理CPU的个数,假设CPU个数为4,而load average为8或者10,那结果也是在2多点而已。阅读全文
posted @ 2011-06-08 14:17 iTech 阅读(637) | 评论 (0) 编辑
摘要: (CHS)Inversion_of_Control_Containers_and_the_Dependency_Injection_pattern阅读全文
posted @ 2011-06-06 10:09 iTech 阅读(393) | 评论 (0) 编辑
摘要: 原文: http://ramanisandeep.wordpress.com/2010/12/09/linq-to-sql-vs-ado-net-entity-framework/LINQ to SQL和ADO.NET Entity Framework之间的抉择我相信很多的ASP.NET的新手经常会搞不清楚在LINQ to SQL和ADO.NET Entity Framework之间到底应该选择哪个?以下是来自Michael Pizzo的答案供大家参考:LINQ to SQL 和 Entity Framwork 有非常多的相同的地方,但是他们其实有各自的特点可以适用于不同的场合:1) LINQ阅读全文
posted @ 2011-06-05 10:31 iTech 阅读(1053) | 评论 (0) 编辑
摘要: 翻译自: http://blog.gadodia.net/choosing-between-webforms-and-mvc/WebForms和MVC之间的抉择ASP.NET现在已经被广泛的使用,但是有一个问题始终困扰着我们,就是我们应该使用WebFroms还是MVC。下面通过对WebForms和MVC的SWOT(strengths,weaknesses,threats,opportunities)分析来回答这个问题。1)WebForms2)MVC3)基于上面的WebForms和MVC的分析,下面是一个让我们决定WebForms还是MVC的流程图。4) 综述,我认为当在选择WebForms还是阅读全文
posted @ 2011-06-05 08:31 iTech 阅读(2355) | 评论 (15) 编辑
摘要: 经过过少次的困惑哦,终于明白了: public key 要放到ssh server所在的机器的用户下的~/.ssh/authorized_keys中,且此文件的权限必须为700 。private key 是ssh client访问的时候需要的ppk文件。 转自: http://hostingrails.com/HowTo-SSH-SCP-without-a-passwordhttp://technitip.net/putty-ssh-login-without-password-promptLinux/Unix 上 SSHIn the examples that follow please s阅读全文
posted @ 2011-06-04 12:07 iTech 阅读(488) | 评论 (0) 编辑
摘要: 翻译自: http://www.thegeekstuff.com/2010/09/rsync-command-examples/rsync stands for remote sync. rsync is used to perform the backup operation in UNIX / Linux.rsync utility is used to synchronize the files and directories from one location to another in an effective way. Backup location could be on lo.阅读全文
posted @ 2011-06-04 10:49 iTech 阅读(959) | 评论 (0) 编辑