1安装DNS服务器组建安装bind2启动服务3进入dns主配置文件named.conf4编辑配置文件。(监听的端口注释或写上自己需要监听端口的IP.注释IPv6.允许谁来查询,注释掉,表示所有人都可以)5编辑named.1912.zone文件。申明一个正向区域,一个反向区域。正向区域反向区域6复制dns两个..
分类:
系统相关 时间:
2014-09-19 14:00:06
阅读次数:
321
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-09-19 13:43:05
阅读次数:
194
查看centos内核的版本: 1)[root@localhost ~]# cat /proc/version Linux version 2.6.18-194.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:1...
分类:
其他好文 时间:
2014-09-19 12:20:05
阅读次数:
238
新浪博客太坑了,以前写的全部转移51cto了。1查看服务器是否安装DHCP服务2用yum安装dhcp服务3查看服务的配置文件,里面是空的4复制dhcp的模板到配置文件里5用vim编辑配置文件.在里面申明一个网段,以及IP地址的变化范围6重新启动dhcp服务。/etc/init.d/dhcpdrestart7关闭防火墙..
分类:
系统相关 时间:
2014-09-19 10:17:26
阅读次数:
278
平台:Linux version 2.6.32-220.13.1.el6.x86_64 (mockbuild@c6b6.bsys.dev.centos.org) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Apr ...
分类:
其他好文 时间:
2014-09-19 04:28:14
阅读次数:
438
最近在开发项目中,使用的是ASP.NET MVC
由于之前并没有接触,对于它的传值方式有些陌生,在这里进行初步总结积累学习!
一:使用
ViewData使用:
public ActionResult Index()
{
List colors = new List();
colors.Add("red");
colors.Add("green");
colors.Add...
分类:
Web程序 时间:
2014-09-18 20:44:04
阅读次数:
241
内边距,外边距,边框盒模型--边框(一)盒子模型的边框就是围绕着内容及补白的线,这条线你可以设置它的粗细、样式和颜色(边框三个属性)。如下面代码为div来设置边框粗细为2px、样式为实心的、颜色为红色的边框:div{ border:2px solid red;}上面是border代码的缩写...
分类:
Web程序 时间:
2014-09-18 18:39:14
阅读次数:
240
彩色的贪吃蛇实现,功能强大,有等级模块,道具功能,后面有效果预览,先上代码:
console.h
#include
//颜色定义
#define FWHITE FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE //白色前景
#define FRED FOREGROUND_INTENSIT...
分类:
其他好文 时间:
2014-09-18 13:22:24
阅读次数:
276
[leetcode]Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:
其他好文 时间:
2014-09-18 13:21:43
阅读次数:
164
css选择有十种方式:元素选择器、类选择器、ID选择器、选择器分组、属性选择器、子元素选择器、后代选择器、相邻兄弟元素选择器、伪元素、伪类。元素选择器。文档的元素就是最基本的选择器。如:html {color:black;}、note{font-family:Verdana, Arial;}(xml...
分类:
Web程序 时间:
2014-09-18 11:10:33
阅读次数:
332