Building and Installing Node.js
摘要:https://github.com/joyent/node/wiki/Installation
阅读全文
posted @
2011-08-31 16:53
-Anny-
阅读(128)
推荐(0)
Git 和Github初次使用 (转)
摘要:转载请注出处 http://hi.baidu.com/kissdev/blog/item/944aa2fab2817215a8d311f1.html1. GIT相比CVS/SVN,Git 的优势:- 支持离线开发,离线Repository- 强大的分支功能,适合多个独立开发者协作- 速度块更多的细节参见 http://mgcore.com/viewthread.php?tid=15556Git使用指南 http://www.linuxgem.org/user_files/linuxgem/Image/git-tutor.pdf2. GitHubGitHub是一个托管Git (开源或闭源)项目的
阅读全文
posted @
2011-08-23 17:33
-Anny-
阅读(799)
推荐(0)
chmod(转)
摘要:Refer to http://72.235.176.168/qnxman/chmod.htmlchmodchange file modes (POSIX)Syntax:chmod [-R] mode file...Options:-R Recursively change file modes. For each file that names a directory, chmod changes the file mode bits of the directory and all files in the file hierarchy below it.mode Represents t
阅读全文
posted @
2011-08-23 11:10
-Anny-
阅读(399)
推荐(0)
Cannot Boot WEBrick: "WARN TCPServer Error: Address already in use "
摘要:Refer to: http://railsforum.com/viewtopic.php?id=16387我刚刚使用Ctrl+Z 去停止服务,当再次使用rails s启动时, 发现无法启动,提示WARN TCPServer Error: Address already in use,显然是端口被占用在 Ubuntu的console中,使用lsof|grep 3000列出所有包含3000的打开文件的信息,找到ruby 2949 limei 5u IPv4 19590 0t0 TCP *:3000 (LISTEN)然后在console中利用kill -9 2949 杀掉该进程即可PS:lsof(
阅读全文
posted @
2011-08-22 11:10
-Anny-
阅读(430)
推荐(0)
Callback in NodeJS
摘要:Refer to:http://tech.richardrodger.com/2011/04/21/node-js-%E2%80%93-how-to-write-a-for-loop-with-callbacks/http://stackoverflow.com/questions/6789050/node-js-callback-not-workingLet’s also say you have a magical upload function that can do the upload:upload('myfile.ext', function(err){ if( e
阅读全文
posted @
2011-08-19 16:53
-Anny-
阅读(483)
推荐(0)
[转载]Linux系统下超强远程同步备份工具Rsync使用详解
摘要:Refer to: http://yaronspace.cn/blog/index.php/archives/554服务器之 间常常要保持些文件或目录的一致,比如一些大的软件下载网站,它们通常使用多台服务器来提供下载服务。当一台服务器上的文件更新后,其它的服务器也需要更 新,而且 在更新的时候应该是只对新增或是修改过的文件进行更新,否则会造成网络带宽和时间的浪费。rsync就是能有效的保持文件及目录的一致的优秀软件。rsync,remote synchronize顾名思意就知道它是一款实现远程同步功能的软件,它在同步文件的同时,可以保持原来文件的权限、时间、软硬链接等附加信息,而且可以通过ss
阅读全文
posted @
2011-08-17 17:37
-Anny-
阅读(339)
推荐(0)
Intall Apache & php on Ubuntu
摘要:Refer to http://gyfmp5.iteye.com/blog/256141Install SSH Client and Server (for my remote access)sudo apt-get install ssh1. sudo apt-get install apache2在安装期间将会新建一个目录:/var/www,该目录是该服务器中存放文档的根目录。只要在浏览器的地址栏输入http://localhost/或机器的IP地址就能访问放置在此目录中的所有文档。2. sudo apt-get install php5 and sudo apt-get install
阅读全文
posted @
2011-08-17 17:00
-Anny-
阅读(241)
推荐(0)