1. 操作系统 CentOS 6.4 x86_64 2.软件版本 Nginx 1.4.2 3.实验拓扑 注,实验拓扑见下文。 4.安装yum源 1 2 3 [root @nginx ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8...
分类:
其他好文 时间:
2015-01-27 23:37:58
阅读次数:
735
1. 安装ctags
root@linux:~# apt-get install ctags
2. 设置内核目录的ctags
root@linux:/study/linux-git/linux-git/linux-3.18.3# ls
arch Documentation include kernel net security
bl...
分类:
系统相关 时间:
2015-01-27 23:35:31
阅读次数:
457
/* Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum...
分类:
其他好文 时间:
2015-01-27 23:09:49
阅读次数:
206
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
求树的一点到另一点的最大路径,利用递归的方法,ans 在 左子树,右子树,root+左+右的最大中产生。
/**
* Definition for binary tree
* struct ...
分类:
其他好文 时间:
2015-01-27 22:01:36
阅读次数:
112
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Note: next() and...
分类:
其他好文 时间:
2015-01-27 21:58:04
阅读次数:
172
一、修改主机名和IP地址:[root@localhost VH-share]# cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4192.168.1.205rusky-o...
分类:
数据库 时间:
2015-01-27 21:44:29
阅读次数:
285
#centos5.x版本不支持动态调整内存,CPU以下在centos6.4上测试通过1.查看虚拟机信息[root@controller2 ~]# virsh dominfo centos6.4_v1| egrep "(memory|CPU)"CPU(s): 2CPU time: 39.3sMax m...
分类:
其他好文 时间:
2015-01-27 21:31:15
阅读次数:
470
类比二叉树先序遍历与图深度优先搜索
在引入图的深度优先搜索之前,为了更加容易理解.先考究一种特殊的图---二叉树的深度优先搜索算法---即二叉树的递归遍历方法.
二叉树的前序遍历算法:
void TreeWalk(node* root)
{
if(root)
{
visit(root);
...
分类:
其他好文 时间:
2015-01-27 20:23:35
阅读次数:
219
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;#脚本文件请求的路径 fastcgi_param QUERY_STRING $query_string; #请求的参数;如?app=123 fa...
分类:
其他好文 时间:
2015-01-27 20:05:48
阅读次数:
176
安卓开启ipv6网络支持 ========== (可在ipv6环境下访问ipv6网络, 如:ipv6.google.com, 或使用ipv6的代理访问ipv4网络) - - - 注 1. __需要root权限__ 2. __只在__ android4.1 环境测试成功 3. 可能需要安装“E...
分类:
移动开发 时间:
2015-01-27 18:42:07
阅读次数:
2386