ldap这种原始的服务器搭建起来比较复杂,同时它也是CE必考的(客户端的搭建)。过段时间再写客户端的搭建、加密、共享、第一章先搭建服务器端。。1、安装openldap-servers软件包2、查看ldap模板文件的存放位置:3、拷贝ldap模板文件到配置文件目录并修改文件名为slapd.conf。4...
分类:
其他好文 时间:
2014-05-10 02:04:27
阅读次数:
402
例1:在python中包装ls命令#!/usr/bin/envpython#pythonwapperforthelscommandimportsubprocesssubprocess.call(["ls","-l"])在Linux中执行该命令[root@pydbpython]#pythonls.py...
分类:
编程语言 时间:
2014-05-10 01:32:55
阅读次数:
377
ASP.NET连接LDAP数据库的有关信息一、封装在DAL层中的获取用户信息的函数//////按照用户Id查找用户信息/////////publicDirectoryEntry
GetUser(string username){string path = System.Configuration.....
分类:
Web程序 时间:
2014-05-09 16:53:59
阅读次数:
418
Given a triangle, find the minimum path sum from
top to bottom. Each step you may move to adjacent numbers on the row below.For
example, given the fol...
分类:
其他好文 时间:
2014-05-08 21:08:25
阅读次数:
407
Question:HowdoIview,modifyandrecreatethenewinitrd.imgonUbuntu,Debian,CentOS,Fedora,Red-Hat,ArchLinux,orSUSEdistributions?1.HowToViewContentOfinitrd.imgfile?initrd.imgisingzipformat.Somoveinitrd.imgtoinitrd.gzasshownbelow.#cp/tftpboot/el5/initrd.img.
#ls
cd..
分类:
其他好文 时间:
2014-05-05 12:31:38
阅读次数:
359
二、配置haproxy实现网站的负载均衡:1、node1和node2都安装httpd,php,php-mysql:[root@node1~]#yum-yinstallhttpdphpphp-mysql[root@node2~]#yum-yinstallhttpdphpphp-mysql2、为node1和node2提供静态和动态网页:[root@node1~]#ls/var/www/html/
index.htmlindex.php
[roo..
分类:
其他好文 时间:
2014-05-05 12:30:42
阅读次数:
614
浪度九州城---首页到产品内容页面的制作过程1、首页制作包含top,foot,以及内容展示的各项列表(list)首先top部分:打开vs2010之后,找到我们需要制作的index.html页面,然后Ctrl+K+D
调整页面代码格式。然后找到上面的class=“top”这个 ,再点击左边 -收缩到 ...
分类:
其他好文 时间:
2014-05-05 09:38:46
阅读次数:
415
Array和List的区别在于前者可以随机访问,而后者只能顺序访问。对于把排好序的array转成BST,可以用top-down的方式,很直观也很自然,时间复杂度是O(n)。而对于List如果采用同样的方式,每次需要顺序遍历到中间节点,时间复杂度变成O(nlogn),如果换一种思路,down-top,...
分类:
其他好文 时间:
2014-05-05 09:34:29
阅读次数:
454
travel the binary tree by level 4 ( from down to top and from left to right every level )
个人信息:就读于燕大本科软件工程专业 目前大三;
本人博客:google搜索“cqs_2012”即可;
个人爱好:酷爱数据结构和算法,希望将来从事算法工作为人民作出自己的贡献;
博客内容:tr...
分类:
其他好文 时间:
2014-05-04 18:22:16
阅读次数:
381
Linux下数字表示文件的操作权限(777,755,..)
Linux下,查看某路径下用(ls -l)查看所有文件的详细属性列表时,会看到文件的操作权限,类似“drwxr-xr-x”的字符串。
这串字符可以分成4段理解,结构为“d + 文件所有者操作权限 + 文件所有者所在组操作权限 + 其余人的操作权限”:
1,第一段:例子中字母“d”,表示文件所在目录
...
分类:
其他好文 时间:
2014-05-04 18:13:34
阅读次数:
643