分页: 9/19 第一页 上页 4 5 6 7 8 9 10 11 12 13 下页 最后页 [ 显示模式: 摘要 | 列表 ]

Tomcat 中通过 JNDI 配置访问数据库 不指定

admin , 2010/03/29 17:34 , 服务器技术 , 评论(0) , 阅读(388) , Via 宝华的博客 原创

1,所需要的jar文件:commons-pool.jar, commons-dbcp.jar
2,server.xml的配置:
  <Resource name="jdbc/hellohibernate" scope="Shareable" auth="Container"
   type="javax.sql.DataSource"/>
   <ResourceParams name="jdbc/hellohibernate">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
         <name>removeAbandoned</name>
         <value>true</value>
        </parameter>
    <parameter>
         <name>logAbandoned</name>
         <value>true</value>
        </parameter>
    <!-- DBCP database connection settings -->
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/test</value>
    </parameter>
    <parameter>
    <name>driverClassName</name><!--<value>com.mysql.jdbc.Driver</value>-->
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>root</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value></value>
    </parameter>
  
    <!-- DBCP connection pooling options -->
    <parameter>
    <name>maxWait</name>
    <value>3000</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>100</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>10</value>
    </parameter>
   </ResourceParams>
  
  3,程序中的调用:
  
  Context ctx = new InitialContext();
        if (ctx == null)
          throw new Exception("Boom - No Context");
  
        DataSource ds =
          (DataSource) ctx.lookup(
          "java:comp/env/jdbc/hellohibernate");
  
        if (ds != null) {
          Connection conn = ds.getConnection();
  
          if (conn != null) {
            foo = "Got Connection " + conn.toString();
            Statement stmt = conn.createStatement();
            ResultSet rst =
              stmt.executeQuery(
              "select username,id from user");
            if (rst.next()) {
              foo = rst.getString(1);
              bar = rst.getInt(2);
            }
            conn.close();
          }

使用tomcat配置数据源以及连接池 不指定

admin , 2010/03/29 17:27 , Java开发 , 评论(0) , 阅读(505) , Via 宝华的博客 原创

1.将数据库驱动程序的JAR文件放在Tomcat的 common/lib 中;

2.在server.xml中设置数据源,以MySQL数据库为例,如下:
在<GlobalNamingResources> </GlobalNamingResources>节点中加入,
      <Resource
      name="jdbc/DBPool"
      type="javax.sql.DataSource"
      password="root"
      driverClassName="com.mysql.jdbc.Driver"
      maxIdle="2"
      maxWait="5000"
      username="root"
      url="jdbc:mysql://127.0.0.1:3306/test"
      maxActive="4"/>
   属性说明:name,数据源名称,通常取”jdbc/XXX”的格式;
            type,”javax.sql.DataSource”;
            password,数据库用户密码;
            driveClassName,数据库驱动;
            maxIdle,最大空闲数,数据库连接的最大空闲时间。超过空闲时间,数据库连
                     接将被标记为不可用,然后被释放。设为0表示无限制。
            MaxActive,连接池的最大数据库连接数。设为0表示无限制。
            maxWait ,最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示
                     无限制。

3.在你的web应用程序的web.xml中设置数据源参考,如下:
  在<web-app></web-app>节点中加入,
  <resource-ref>
    <description>MySQL DB Connection Pool</description>
    <res-ref-name>jdbc/DBPool</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
  子节点说明: description,描述信息;
               res-ref-name,参考数据源名字,同上一步的属性name;
               res-type,资源类型,”javax.sql.DataSource”;
               res-auth,”Container”;
               res-sharing-scope,”Shareable”;

4.在web应用程序的context.xml中设置数据源链接,如下:
  在<Context></Context>节点中加入,
  <ResourceLink
   name="jdbc/DBPool"
   type="javax.sql.DataSource"
   global="jdbc/DBPool"/>
   属性说明:name,同第2步和第3步的属性name值,和子节点res-ref-name值;
             type,同样取”javax.sql.DataSource”;
             global,同name值。

至此,设置完成,下面是如何使用数据库连接池。
1.建立一个连接池类,DBPool.java,用来创建连接池,代码如下:
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;

public class DBPool {
    private static DataSource pool;
    static {
         Context env = null;
          try {
              env = (Context) new InitialContext().lookup("java:comp/env");
              pool = (DataSource)env.lookup("jdbc/DBPool");
              if(pool==null)
                  System.err.println("'DBPool' is an unknown DataSource");
               } catch(NamingException ne) {
                  ne.printStackTrace();
          }
      }
    public static DataSource getPool() {
        return pool;
    }
}

2.在要用到数据库操作的类或jsp页面中,用DBPool.getPool().getConnection(),获得一个Connection对象,就可以进行数据库操作,最后别忘了对Connection对象调用close()方法,注意:这里不会关闭这个Connection,而是将这个Connection放回数据库连接池。

再见 google 不指定

admin , 2010/03/26 13:19 , 心情文摘 , 评论(0) , 阅读(233) , Via 宝华的博客 原创
Tags: ,

什么是Cookie,下载Vista下清除Cookie的工具 不指定

admin , 2010/03/23 14:56 , 软件工具 , 评论(0) , 阅读(466) , Via 宝华的博客 原创
The cookies are small pieces of information (text) that are created by Web sites that you are visiting and are sent to your browser (Internet Explorer, Firefox or any other) along with the Web pages that you are viewing. Some of these cookies are saved to your hard disk and when you visit the same Web page again, your browser sends these cookies back to this Web site.

There are few general goals that are accomplished by the usage of cookies:

To notify the Web site that you have visited it in the past. This information can be used to block some one-time services (for example Web pools, one-time promotional services, etc.).
To remember your user name and password so that you don't need to enter them each time when you visit this Web site.
To remember your personal information that is important to the Web site you are visiting. It can be your name, personal preferences, advertising information, etc.
To show you a different ad each time when you visit the site or similar ads to ones that you have clicked in the past.
As you can see there are plenty of ways for cookies to threaten your privacy. Even if it seems that the purpose of some cookies is innocent they still reveal the fact that you have visited this specific Web site. Furthermore, the Web site can update the cookie every time you visit its pages, adding new usage information. Cookies remain on your computer as long as their creator decides (from few days to many years). Some cookies are automatically deleted when you close your browser (so called session cookies) but others can stay on your PC virtually forever.

You can use Mil Shield to delete the cookies while keeping some of them (some decent and useful Web sites don't work without cookies). As more and more people are becoming aware of the cookies, many Web sites started to use alternative methods to identify their visitors - Flash cookies (local shared objects), UserData records, DOM storage. Each of these methods is very similar to the ordinary cookies. Mil Shield cleans all these traces (selectively if you wish so) and it also cleans the content of index.dat files, history, temporary Internet files and many other tracks.


本博客下载地址:

其他下载地址:

HttpServlet类 不指定

admin , 2010/03/23 10:10 , Java开发 , 评论(0) , 阅读(324) , Via 宝华的博客 原创

13.3  HttpServlet类HttpServlet类是一个抽象类,扩展了GenericServlet类。HttpServlet类用于创建一个适用于Web站点并支持HTTP协议的Servlet。一个HttpServlet的子类必须至少重载以下方法中的一个。
□ doGet()方法,适用于HTTP GET请求。

□ doPost()方法,适用于HTTP POST请求。

□ doPut()方法,适用于HTTP PUT请求。

□ doDelete()方法,适用于HTTP DELETE请求。

□ init()和destroy()方法,管理Servlet生命周期中的资源。

□ getServletInfo()方法,提供Servlet本身的信息。

HttpServlet类中的getServletConfig()、getServletContext()、getServletInfo()、getServletName()、log()等方法和GenericServlet类中的同名方法功能相同,本节不再介绍。

13.3.1  HttpServlet:构造函数
【基本语法】javax.servlet.http.HttpServlet类的构造函数如下:

public HttpServlet ( )

该构造函数什么也不做,因为该类是一个抽象类。

13.3.2  init方法:初始化Servlet
【功能说明】init()方法用于初始化Servlet,参见13.2.2小节。

13.3.3  service方法:处理客户端请求
【功能说明】service()方法用于处理客户端请求。

【基本语法】
protected void service (

    HttpServletRequest request,         //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response        //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException



public void service (

    ServletRequest request,                //  指定HttpServletRequest对象,包含客户端请求

    ServletResponse response               //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

通常情况下不需要重载该方法。

13.3.4  destroy方法:销毁Servlet
【功能说明】destroy()方法用于销毁Servlet,参见13.2.4小节。

13.3.5  doGet方法:处理GET请求
【功能说明】doGet()方法用于处理HTTP的GET请求。

【基本语法】
protected void doGet (

    HttpServletRequest request,                 //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response                //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

重载doGet()方法可以支持HTTP的GET请求,同时自动支持HTTP的HEAD请求。HEAD请求是仅请求头部的GET请求。

在使用PrintWriter对象返回响应之前,最好先设置响应的内容类型和编码方式。如果请求的格式不正确,该方法将返回一个“HTTP BAD REQUEST”错误信息。

【实例演示】
package mil.zcz.jsp.servlet;

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

public class WelcomeServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

        response.setContentType("text/html;charset=GB2312");

        PrintWriter out = response.getWriter();

        String user = request.getParameter("user");

        String msg = "Hi " + user + ", welcome to the servlet's world!";

        out.println(msg);

        out.close();

    }

}

在web.xml中添加以下代码:

<?xml version="1.0" encoding="ISO-8859-1"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

    version="2.4">

  
    <servlet>

        <servlet-name>WelcomeServlet</servlet-name>

        <servlet-class>mil.zcz.jsp.servlet.WelcomeServlet</servlet-class>

    </servlet>

    <servlet-mapping>

        <servlet-name>WelcomeServlet</servlet-name>

        <url-pattern>/Welcome</url-pattern>

    </servlet-mapping>

  
</web-app>

测试JSP页面welcome.jsp的源代码如下:

<html>

<head>

<title>Welcome</title>

</head>

<B>Please input your name:</B></br>

<form method="GET" action="/JSPBook/Welcome">

    <input type="TEXT" name="user" />

    <input type="SUBMIT" value="Submit" />

</form>

示例代码的执行效果如图13.3所示。


图13.3  使用HttpServlet的doGet方法

13.3.6  doPost方法:处理POST请求
【功能说明】doPost()方法用于处理HTTP的POST请求。

【基本语法】
protected void doPost (

    HttpServletRequest request,                 //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response         //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

在使用PrintWriter对象返回响应之前,最好先设置响应的内容类型和编码方式。如果请求的格式不正确,则该方法将返回一个“HTTP BAD REQUEST”错误信息。

【实例演示】
package mil.zcz.jsp.servlet;

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

public class WelcomeServlet extends HttpServlet {

  
    public void doGet(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

        response.setContentType("text/html;charset=GB2312");

        PrintWriter out = response.getWriter();      
        String user = request.getParameter("user");

        String msg = "Hi " + user + ", welcome to the servlet's world!";

        out.println(msg);

        out.close();

    }

  
    public void doPost(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

      
        this.doGet(request, response);           //  调用doGet()方法

      
    }

}

将测试JSP页面welcome.jsp的源代码修改如下:

<B>Please input your name:</B></br>

<form method="POST" action="/JSPBook/Welcome">

    <input type="TEXT" name="user" />

    <input type="SUBMIT" value="Submit" />

</form>

示例代码的执行效果参见13.3.5小节。

13.3.7  doHead方法:处理HEAD请求
【功能说明】doHead()方法由service()方法调用,用于处理HTTP的HEAD请求。

【基本语法】
protected void doHead (

    HttpServletRequest request,            //  指定传递给Servlet的请求对象

    HttpServletResponse response         //  指定Servlet返回给客户端的HTTP头部

)

    throws ServletException, IOException

该方法不向客户端返回任何数据,仅仅返回包含内容长度的头部信息。如果请求的格式不正确,则该方法将返回一个“HTTP BAD REQUEST”错误信息。通常情况下不需要重载该方法。

13.3.8  doPut方法:处理PUT请求
【功能说明】doPut()方法由service()方法调用,用于处理HTTP的PUT请求。

【基本语法】
protected void doPut (

    HttpServletRequest request,                 //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response         //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

该方法允许客户端将文件放置到服务器上,类似于通过FTP发送文件。如果请求的格式不正确,则该方法将返回一个“HTTP BAD REQUEST”错误信息。通常情况下不需要重载该方法。

13.3.9  doDelete方法:处理DELETE请求
【功能说明】doDelete()方法由service()方法调用,用于处理HTTP的DELETE请求。

【基本语法】
protected void doDelete (

    HttpServletRequest request,                  //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response                 //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

该方法允许客户端请求从服务器上移除文档或页面。如果请求的格式不正确,则该方法将返回一个“HTTP BAD REQUEST”错误信息。通常情况下不需要重载该方法。

13.3.10  doTrace方法:处理TRACE请求
【功能说明】doTrace()方法由service()方法调用,用于处理HTTP的TRACE请求。

【基本语法】
protected void doTrace (

    HttpServletRequest request,                  //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response                 //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

该方法将产生一个响应,该响应包含所有在TRACE请求中发送的头部信息。通常情况下不需要重载该方法。

13.3.11  doOptions方法:处理OPTIONS请求
【功能说明】doOptions()方法由service()方法调用,用于处理HTTP的OPTIONS请求。

【基本语法】
protected void doOptions (

    HttpServletRequest request,                  //  指定HttpServletRequest对象,包含客户端请求

    HttpServletResponse response                 //  指定HttpServletResponse对象,包含Servlet的响应

)

    throws ServletException, IOException

该方法自动决定支持哪一种HTTP方法,并返回一个适当的头部。例如,如果Servlet重载了doGet()方法,doOptions()方法将返回以下头部:

Allow: GET, HEAD, TRACE, OPTIONS

通常情况下不需要重载该方法。

13.3.12  getInitParameter方法:获取初始化参数
【功能说明】getInitParameter()方法用于返回初始化参数的值,参见13.2.5小节。

13.3.13  getInitParameterNames方法:获取所有初始化参数名
【功能说明】getInitParameterNames()方法用于返回所有初始化参数的名称集合,参见13.2.6小节。

13.3.14  getLastModified方法:获取最后修改时间
【功能说明】getLastModified()方法用于返回HttpServletRequest对象的最后修改时间。

【基本语法】
protected long getLastModified (

    HttpServletRequest request             //  发送给Servlet的HttpServletRequest对象

)

该方法返回的时间为自GMT 1970年1月1日以来的毫秒数。默认情况下,该方法返回−1,标识最后修改时间未知。

为了支持GET操作,必须重载该方法,使浏览器和代理服务器更加有效地工作,减少装载服务器和网络资源。

【TechWeb消息】3月23日消息 3月23日凌晨,Google退出中国大陆市场,Google.cn网址跳转其搜索引擎香港站。Google公司声明称,公司将会继续保持在中国大陆的研发团队,销售团队里会有专门负责中国大陆用户访问Google.com.hk的事项,同时中国公司员工没有参与这个决策过程。
  Google公司在其正式声明称:“今天开始,包括Google搜索、Google新闻、Google图片,访问Google.cn的用户将被跳转到Google.com.hk,这里也可以提供简体中文的搜索。在香港的用户也依然可以通过Google.com.hk继续享受到无审查的繁体中文的服务。不过由于访问香港服务器的用户会突然增多,也许会有一些服务会暂时下线。”

一些常用的Windows命令 不指定

admin , 2010/03/21 10:38 , 操作系统 , 评论(0) , 阅读(219) , Via 宝华的博客 原创

gpedit.msc-----组策略
sndrec32-----录音机
nslookup----- ip地址侦测器
explorer------ 打开资源管理器
logoff-------注销命令
tsshutdn------60秒倒计时关机命令
lusrmgr.msc----本机用户和组
services.msc---本地服务设置
oobe/msoobe /a---检查xp是否激活
notepad------打开记事本
cleanmgr------垃圾整理
net start messenger--开始信使服务
compmgmt.msc---计算机管理
net stop messenger--停止信使服务
conf-------启动
dvdplay------dvd播放器
charmap------启动字符映射表
diskmgmt.msc---磁盘管理实用程序
calc--------启动计算器
dfrg.msc------磁盘碎片整理程序
chkdsk.exe-----chkdsk磁盘检查
devmgmt.msc--- 设备管理器
regsvr32 /u *.dll---停止dll文件运行
drwtsn32-----系统医生
rononce -p ----15秒关机
dxdiag------检查directx信息
regedt32-----注册表编辑器
msconfig.exe---系统配置实用程序
rsop.msc------组策略结果集
mem.exe-----显示内存使用情况
regedit.exe----注册表
winchat------xp自带局域网聊天
progman------程序管理器
winmsd------系统信息
perfmon.msc----计算机性能监测程序
winver------检查windows版本
sfc /scannow----扫描错误并复原
winver------检查windows版本
wmimgmt.msc---打开windows管理体系结构
wupdmgr-----windows更新程序
w脚本------windows脚本宿主设置
write-------写字板
winmsd------系统信息
wiaacmgr-----扫描仪和照相机向导
winchat-----xp自带局域网聊天
mem.exe-----显示内存使用情况
msconfig.exe---系统配置实用程序
mplayer2-----简易
mspaint------画图板
mstsc------远程桌面连接
mplayer2-----媒体播放机
magnify------放大镜实用程序
mmc-------打开控制台
mobsync-----同步命令
dxdiag------检查directx信息
drwtsn32-----系统医生
devmgmt.msc--- 设备管理器
dfrg.msc------磁盘碎片整理程序
diskmgmt.msc---磁盘管理实用程序
dcomcnfg-----打开系统组件服务
ddeshare------打开dde共享设置
dvdplay------dvd播放器
net stop messenger--停止信使服务
net start messenger--开始信使服务
notepad------打开记事本
nslookup------网络管理的工具向导
ntbackup------系统备份和还原
narrator------屏幕“讲述人”
nyessmgr.msc----移动存储管理器
nyessoprq.msc---移动存储管理员操作请求
netstat -an----(tc)命令检查接口
syncapp------创建一个公文包
sysedit------系统配置编辑器
sigverif------文件签名验证程序
sndrec32-----录音机
shrpubw-----创建共享文件夹
secpol.msc----本地安全策略
syskey------系统加密,一旦加密就不能解开,保护windows xp系统的双重密码
services.msc---本地服务设置
sndvol32-----音量控制程序
sfc.exe------系统文件检查器
sfc /scannow---windows文件保护
tsshutdn------60秒倒计时关机命令
tourstart------xp简介(安装完成后出现的漫游xp程序)
taskmgr------任务管理器
eventvwr-----事件查看器
eudcedit-----造字程序
explorer-----打开资源管理器
packager-----对象包装程序
perfmon.msc----计算机性能监测程序
progman-----程序管理器
regedit.exe----注册表
rsop.msc-----组策略结果集
regedt32-----注册表编辑器
rononce -p ---15秒关机
regsvr32 /u *.dll---停止dll文件运行
regsvr32 /u zipfldr.dll--取消zip支持
cmd.exe-------cmd命令提示符
chkdsk.exe-----chkdsk磁盘检查
ceryesgr.msc----证书管理实用程序
calc--------启动计算器
charmap-------启动字符映射表
cliconfg-------sql server 客户端网络实用程序
clipbrd-------剪贴板查看器
conf--------启动
compmgmt.msc---计算机管理
cleanmgr------垃圾整理
ciadv.msc------索引服务程序
osk--------打开屏幕键盘
odbcad32------odbc数据源管理器
oobe/msoobe /a----检查xp是否激活
lusrmgr.msc----本机用户和组
logoff-------注销命令
iexpress------木马捆绑工具,系统自带
nslookup------ip地址侦测器
fsmgmt.msc-----共享文件夹管理器
utilman-------辅助工具管理器


使用Imail Server构建局域网邮件服务器 不指定

admin , 2010/03/20 10:13 , 网络安全 , 评论(0) , 阅读(480) , Via 宝华的博客 原创
电子邮件是人们在网上最常使用的通信工具之一,它已经成为我们网络生活中不可或缺的一部分,而其在局域网中也是一项很重要的应用。在局域网中构建一个内部EMAIL服务器,不仅可以大大加快内部公文的传送速度,而且还能大大降低通信费用。今天,我就给大家介绍一下如何利用IMAIL SERVER来构建一台内部EMAIL服务器,在它的帮助下我们就可以轻松获得安全、可靠的邮件服务了。

一、IMAIL的安装

IMAIL SERVER是用于WINDOWS NT/2000/XP的INTERNET信息传递服务器。它是一种容易使用、安全且反垃圾邮件的邮件服务器,是局域网内用来进行EMAIL通信并管理收发信息的一种优秀的解决方案。

IMAIL SERVER下载地址:http://down.ddvip.com/view/1150009751430.html

此外还有一些中文版本的IMAIL,我们在这里选择中文版Imail Server V8.01。

1、安装时双击安装文件启动安装程序;

2、单击NEXT按钮,打开Official Host Name对话框,在文本框中输入主机的名称;

3、单击NEXT按钮打开DateBase Options对话框,在对话框中为IMAIL服务器选择所使用的数据;

4、单击NEXT按钮为IMAIL的安装选择路径,默认情况下安装在C:IMAIL;

5、单击NEXT按钮,打开SMTP Relay Option对话框,可以选择默认的No mail relay;

6、单击NEXT按钮,打开Service Start Options对话框,在框中,我们可以选择IMAIL的默认启动服务。默认情况下选择的是IMail SMTP server和IMail Queue Manager Service复选框;

7、单击NEXT按钮,继续安装,安装后又是否新建用户选择。在这里我们可以先不建立等到使用时再建立,而安装完成系统会自动创建一个root用户。

Solaris下网卡的配置 不指定

admin , 2010/03/19 21:41 , 操作系统 , 评论(0) , 阅读(206) , Via 宝华的博客 原创
一、网络地址和掩码
1. /etc/hostname.pcn1

文件的内容是这块主机的名字,如sun1。
#vi /etc/hostname.pcn1
sun1
2. /etc/hosts文件
系统名与IP地址的映射
# vi /etc/hosts
127.0.0.1 localhost loghost
172.16.255.1 pcn1
3. /etc/netmasks文件
在/etc/netmasks文件中写:172.16.255.0(你所在的网段) 255.255.255.0(子网掩码)


二、路由和网关

1. /etc/defaulrouter文件

该文件保存了缺省路由得信息。系统安装时并没有该文件,是用户自己创建的。文件内容是缺省路由的地址。
#vi /etc/defaultrouter
172.16.255.254(你的网关)

三、DNS客户端的设置

1. /etc/resolv.conf文件

记录DNS服务器的地址和域名
关键字:
domainname
nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn

Windows 2003 R2 安装序列号 不指定

admin , 2010/03/19 17:20 , 软件工具 , 评论(0) , 阅读(349) , Via 宝华的博客 原创
中文版:
标准版
V9RX3-3GMKQ-M23KP-FYTQX-KQP8B M7V9W-W8GBT-3R8WT-G24V7-YKKJB
P8TMF-WW9GT-XVQJ4-43V9D-69KJB WP226-BBDF3-WP2R3-HM2CY-82C8B
PQ93W-D2H8Y-VVY2M-H7K99-MTXJB BQ24G-R7CHM-FR9D6-2VRRY-Y2C8B
KKM7F-PB4GC-7DMH2-KKYXB-RG34M B6DCT-R2XG2-3KQPW-XV937-BJ6WB
GTKQM-MQ87D-QGXW6-BDTQ7-4TRYY QH9MW-4T4KW-FBJ97-MPJCF-3C4YY
TGK6W-VFP28-46KGK-8FTFW-9QJMY KHD69-H8BHX-7KC9K-624CT-V3VRM
WDRWF-4PXTG-4CGMJ-4MCC4-G6MFM RWH86-PYQJ7-XMWJG-TRHQF-XM8MY
企业版
MDGJK-PF6YQ-PD8DJ-RFQVM-7WKWG
英文版:
企业版
RHBX7-YVMY6-2QHM8-CHYHR-JMPPB
M4B8J-DQP9R-PY6J4-TJG78-FRCPB
HP6YG-KKQV7-GCV3T-C3WRD-QJBRY
G4W9P-Q2DQC-224X9-RQ7TM-PDGCB
QKQQB-PV8W3-3PBJF-RC4DM-9QRFY
PR86X-KWMQK-6CJVG-RCXFX-WWKWM
PGCFX-RGRGX-VFHRX-WT6TJ-QVFFY
F8QV3-BTYMR-V4GHX-B43FM-DY6CB
MXC6T-JW7WQ-DY7H3-F8JV7-V9XWM
DR7QV-WQDC8-G4DP9-9TY2P-Y9CPB
HWX9H-KVPMC-3W2DJ-P2392-K9G8M
标准版
PCGCG-MP77F-9DBC9-QHW44-TDBRD
KT3YM-JRM8T-JWV6Q-RQMG9-BBT73
PBJM7-PC3FJ-MDF66-G7FX9-DTH4D
KCHH3-W4FT6-DKRVY-MR9R6-2MDH3
J43D2-G6Y7K-R3HPY-673T9-8XMRD
H7DT2-WV3MM-V4RY6-6JM6W-9P673
M67V8-RYXPT-F23TR-M6YBY-47673
WGHD9-C7368-B8MF9-J8FP4-4BDH3
FJ6GG-XR424-6C7JB-HHVMC-RWWYQ
RFHCQ-7GY3J-W336Y-FFYVC-9D3H3
TP2TD-KPYGJ-D82HX-FR82W-KBH4D
VD2BM-TP2KK-CBXDQ-7B7FQ-4M9V3
HGX39-BVTG6-MKMWX-JWRYC-FPFFD
分页: 9/19 第一页 上页 4 5 6 7 8 9 10 11 12 13 下页 最后页 [ 显示模式: 摘要 | 列表 ]