最近,将网站的阿里云服务器迁移到阿里云北京机房,记录下CentOS的迁移过程。首次登录云服务器,要先进行用户设置。用户设置首先用passwd命令修改超级管理员root密码。$ passwd根据提示连续输入两次密码,很简单吧。接着,要新建一个普通的管理账号并设置密码,用于日常的系统管理。$ usera...
分类:
其他好文 时间:
2014-07-09 16:00:53
阅读次数:
297
>> 深入浅出node.jsnode.js是c++编写的js运行环境浏览器: 渲染引擎 + js引擎后端的js运行环境node.js用google v8引擎,同时提供很多系统级的API(文件操作 网络编程...)node.js采用事件驱动 异步编程,为网络服务而设计浏览器端的js有各种安全限制nod...
分类:
Web程序 时间:
2014-07-09 15:45:04
阅读次数:
217
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts d...
分类:
其他好文 时间:
2014-07-09 15:35:19
阅读次数:
176
Given a circular linked list, implement an algorithm which returns the node at the beginning of the loop.DEFINITIONCircular linked list: A (corrupt) l...
分类:
其他好文 时间:
2014-07-09 15:24:22
阅读次数:
203
参考资料:红黑树我的实现 1 #define BLACK 1 2 #define RED 0 3 4 struct node 5 { 6 int value; 7 node *left, *right, *parent; 8 bool color; 9 ...
分类:
其他好文 时间:
2014-07-09 13:37:56
阅读次数:
144
Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node.EXAMPLEInput: the node c from the linked...
分类:
其他好文 时间:
2014-07-08 21:58:08
阅读次数:
273
Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a ...
分类:
其他好文 时间:
2014-07-08 21:44:23
阅读次数:
177
Given a circular linked list, implement an algorithm which returns node at the beginning of the loop.DEFINITIONCircular linked list: A (corrupt) linke...
分类:
其他好文 时间:
2014-07-08 17:29:35
阅读次数:
200
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1’s ...
分类:
其他好文 时间:
2014-07-08 13:34:40
阅读次数:
195
那么什么是聪明者,就是打架不出拳,直接用刀砍,或者更牛逼的就开枪!那么如何做一个聪明的前端开发者?很显然,就是用工具代替手工,用自动代替手动!那到底是用什么工具呢,如下:前端开发工具工具有点多,但是都非常简单,或许你已经安装并使用过一些了。git,版本控制系统node,JS运行平台npm,node的...
分类:
其他好文 时间:
2014-07-08 10:20:29
阅读次数:
234