NAS网络存储器(转)
摘要:From http://baike.baidu.com/view/5751189.htm英文缩写:NAS,英文全称:Network Attached Storage,即网络附属存储,它是一种将分布、独立的数据整合为大型、集中化管理的数据中心,以便于对不同主机和应用服务器进行访问的技术。 按字面简单说就是连接在网络上, 具备资料存储功能的装置,因此也称为“网络存储器”或者“网络磁盘阵列”。它是一种专用数据存储服务器。它以数据为中心,将存储设备与服务器彻底分离,集中管理数据,从而释放带宽、提高性能、降低总拥有成本、保护投资。其成本远远低于使用服务器存储,而效率却远远高于后者。 NAS 被定义为一.
阅读全文
posted @
2011-09-28 15:24
-Anny-
阅读(537)
推荐(0)
Install Apache 2 from Source on Linux(转)
摘要:From http://www.thegeekstuff.com/2008/07/install-apache-2-from-source-on-linux/All Linux distributions comes with Apache. However, it is recommended to download latest Apache source code, compile and install on Linux. This will make it easier to upgrade Apache on a ongoing basis immediately after a
阅读全文
posted @
2011-09-27 18:04
-Anny-
阅读(308)
推荐(0)
Linux EnvironmentVariables
摘要:Refer to https://help.ubuntu.com/community/EnvironmentVariablesprintenv |grep xxx
阅读全文
posted @
2011-09-23 18:06
-Anny-
阅读(174)
推荐(0)
Ubuntu 防火墙 ufw
摘要:From http://www.cnblogs.com/cnnbboy/archive/2009/02/08/1386280.htmlufw是Ubuntu下一个简易的防火墙配置工具,底层还是调用iptables来处理的,虽然功能较简单,但对桌面型应用来说比较实用,基本常用功能都有,使用也较为容易。 1.安装 sudo apt-get install ufw 2.启用 sudo ufw enable sudo ufw default deny 运行以上两条命令后,开启了防火墙,并在系统启动时自动开启。 关闭所有外部对本机的访问,但本机访问外部正常。 3.开启/禁用 sudo u...
阅读全文
posted @
2011-09-23 17:46
-Anny-
阅读(232)
推荐(0)
mysql导出数据库脚本
摘要:From http://blog.csdn.net/bjtang/article/details/6571760从数据库导出数据库文件: 1.将数据库mydb导出到e:/mysql/mydb.sql文件中: 打开开始->运行->输入cmd 进入命令行模式 c:/>mysqldump -h localhost -u root -p mydb >e:/mysql/mydb.sql 然后输入密码,等待一会导出就成功了,可以到目标文件中检查是否成功。 2.将数据库mydb中的mytable导出到e:/mysql/mytable.sql文件中: c:/>mysqldump
阅读全文
posted @
2011-09-23 17:45
-Anny-
阅读(5622)
推荐(0)
Ubuntu 10.04上安装MongoDB
摘要:healthcheck用到了mongodb,需要安装,暂时把网络上的参考方法摘录如下http://www.linuxidc.com/Linux/2010-08/28068.htmMongoDB是一个可扩展、高性能的下一代数据库。MongoDB中的数据以文档形式存储,这样就能在单个数据对象中表示复杂的关系。文档可能由 以下几 部分组成:独立的基本类型属性、“内嵌文档”或文档数组。这样的灵活性让开发者能以一种易于管理且灵活的方式来对大量的问题进行建模,不必将数据打散到不同的数据表中。在数据不宜被构造成单独文档的情况 下,MongoDB有“DBRef”的概念,这是从文档的一个属性指向另一个文档的指针
阅读全文
posted @
2011-09-23 17:43
-Anny-
阅读(289)
推荐(0)
ubuntu apache 配置 访问php网页弹出php文件下载(转)
摘要:From http://www.php8848.com/wp/zh/942.html如果遇到在浏览器中访问php网页,页面没有显示,而是弹出一个下载php文件的窗口,是因为apache没有配置好,不认识php导致的,请按照以下步骤排错①:重新启动apache,有可能安装了php支持之后没有重启apache服务导致配置无法生效,请重启动apache后清空浏览器缓存后重试。②:如果问题未能解决,请确认是否启用了apache的php5模块,可以用以下命令启用它并重启apache$sudo a2enmod php5$sudo apache2ctl restart如果 $sudo a2enmod php
阅读全文
posted @
2011-09-22 19:43
-Anny-
阅读(1268)
推荐(0)
autoreconf: not found
摘要:在执行shell脚本时, 提示 autoreconf: not found是因为 没有安装 automake, just to do below: sudo apt-get install autoconf automake libtool
阅读全文
posted @
2011-09-22 18:29
-Anny-
阅读(8802)
推荐(0)
no such file to load -- openssl
摘要:Suggestion: Install ruby from source code
阅读全文
posted @
2011-09-22 17:30
-Anny-
阅读(165)
推荐(0)
Error: shasum check failed for /tmp/npm-1316662414557/1316662415993-0.13772299513220787/tmp.tgz
摘要:when using npm install, the error like title happens.Just add sudo before npm install to resolve the issue.
阅读全文
posted @
2011-09-22 13:50
-Anny-
阅读(1784)
推荐(0)
xml2-config not found. Please check your libxml2 installation
摘要:When config php source, there is an error:xml2-config not found. Please check your libxml2 installationIn Synaptic, there is only libxml2 installed, while libxml2-dev is not installed. Just install libxml2-dev.Or we can intall libxml2 using source code, like below:sudo wget ftp://xmlsoft.org/libxml2
阅读全文
posted @
2011-09-21 18:22
-Anny-
阅读(448)
推荐(0)
rsync 备份
摘要:Refer to http://jianlee.ylinux.org/Computer/Server/rsync.html简单使用 单机使用同步目录 A 到目录B,以 A 目录为基准,如果 A 目录没有,B 目录有的会删除。 A 目录有, B 目录没有的,就从 A 拷贝到 B 。示例 ("/data/projects/crepo" 是 A,"./" 是 B):$ rsync -av /data/projects/crepo ./注意!如果带目录 "/data/projects/crepo" 带 "/" 后缀,就备份
阅读全文
posted @
2011-09-21 15:43
-Anny-
阅读(338)
推荐(0)
no such file to load -- zlib when using gem install
摘要:今天在buntu10.10使用源码安装完ruby1.9.2p290和rubygem1.8.10后,想利用gem去安装rails: gem install rails,结果提示 no such file to load -- zlib 错误。zlib is a library implementing the deflate compression method foundin gzip and PKZIP. 解决办法,安装zlib1g 和 zlib1g-dev 包(apt-get install 或者利用Synaptic),然后1.回到ruby源码目录/ext/zlib 下2. ruby ex
阅读全文
posted @
2011-09-21 15:30
-Anny-
阅读(326)
推荐(0)
Workarounds on issues met when 'npm install' libs
摘要:1. Time outJust retry2. Some unmet dependencies after 'npm install'Just npm install XXX #(XXX means lib package name)3. The package version is lower or deprecated in package.jsonModify the version in package.json: e.x. make changes from "zmq": "1.0.1" to "zmq":
阅读全文
posted @
2011-09-16 14:13
-Anny-
阅读(244)
推荐(0)
How to resolve such issue 'no such environment: default' when 'npm install' dependencies
摘要:I met such issue 'no such environment: default' when npm install some libs, such as iconv, hashlib...The workround is to modify /usr/local/lib/node/wafadmin/Build.py like below:def get_env(self): return self.env_of_name(DEFAULT)The original is likedef get_env(self): return self.env_of_name(&
阅读全文
posted @
2011-09-16 11:37
-Anny-
阅读(652)
推荐(0)
查看Ubuntu操作系统位数
摘要:From http://wiki.ubuntu.org.cn/UbuntuSkills#.E6.9F.A5.E7.9C.8B.E7.B3.BB.E7.BB.9F.E6.98.AF32.E4.BD.8D.E8.BF.98.E6.98.AF64.E4.BD.8D 查看系统是32位还是64位 #查看long的位数,返回32或64getconf LONG_BIT#查看文件信息,包含32-bit就是32位,包含64-bit就是64位file /sbin/init
阅读全文
posted @
2011-09-15 14:53
-Anny-
阅读(3032)
推荐(0)
linux 中i386 i686 i486 I586….等等是什么意思(转)
摘要:From http://sb123.org/893代表intel(英特尔)系列的cpu386 几乎适用于所有的 x86 平台,不论是旧的 pentum 或者是新的 pentum-IV 与 K7 系列的 CPU等等,都可以正常的工作!那个 i 指的是 Intel 兼容的 CPU 的意思,至于 386 不用说,就是 CPU 的等级啦!i586 就是 586 等级的计算机,那是哪些呢?包括 pentum 第一代 MMX CPU, AMD 的 K5, K6 系列 CPU ( socket 7 插脚 ) 等等的 CPU 都算是这个等级;i686 在 pentun II 以后的 Intel 系列 CPU
阅读全文
posted @
2011-09-15 14:34
-Anny-
阅读(802)
推荐(0)
EC2 Volumes(转)
摘要:From http://www.virtualmin.com/documentation/cloudmin/vm/ec2-ebsIntroduction to EC2 VolumesEC2 Volumes (called Elastic Block Storage by Amazon) are essentially disk images that can be mounted on any system running on EC2, and continue to exist even if the system they were attached to is deleted. The
阅读全文
posted @
2011-09-13 15:23
-Anny-
阅读(301)
推荐(0)