中国网络-ITPro俱乐部's Archiver

ldiamond 发表于 2007-12-17 23:58

Windows server 2008 Core简单的配置命令

[size=3][font=宋体]由于CORE全部使用命令方式控制,用贯了窗口操作方式,刚开始时真的很不习惯,在网上收集了一些简单的操作命令[/font][/size]
[size=3][font=宋体]简单命令介绍:[/font][/size]
[font=宋体][size=4][b]1)设置管理员密码。[/b][/size][/font]
[size=3][font=宋体]在命令行窗口键入: [/font][/size]
[size=3][font=宋体]net user administrator *[/font][/size]
[size=3][font=宋体]注意命令中要包括(*)然后按下Enter键,之后再键入管理员密码,这样密码将不会直接暴露在[url=http://product.it168.com/list/b/0107_1.shtml][color=black]屏幕[/color][/url]上,而是用*替代。[/font][/size]
[font=宋体][size=4][b]2)设置静态IP地址。[/b][/size][/font]
[size=3][font=宋体]在手动设置时使用,可以在命令行窗口键入:netsh来进行相关修改,具体可以参考此命令的帮助[/font][/size]
[size=3][font=宋体][/font][/size]
[size=3][font=宋体]Netsh interface ipv4 show interfaces;接着为[url=http://product.it168.com/list/b/0411_1.shtml][color=black]网卡[/color][/url]添加一些备注,如果机器有多个网卡,设置不同的备注。[/font][/size]
[size=3][font=宋体]
然后在命令行窗口键入:netsh interface ipv4 set address name="ID" source=static address=StaticIP mask=SubnetMask gateway=DefaultGateway,其中的ID是上一步中看到的指定的网卡,StaticIP是想要设置的静态IP地址,SubnetMask IP是地址的子网掩码,DefaultGateway 是默认网关。[/font][/size]
[size=3][font=宋体]
继续在命令行窗口,键入: netsh interface ipv4 add dnsserver name="ID" address=DNSIP index=1,其中ID也是上步中指定的网卡,DNSIP是[url=http://product.it168.com/files/0402search.shtml][color=black]DNS[/color][color=black]服务器[/color][/url]的IP地址。重复第4步的操作以设置多个DNS服务器,每次增加index的值就可以了。注意,如果静态IP地址被设置在了一个错误的网卡上,你可以通过下面的命令行来改用DHCP提供IP地址:netsh interface ipv4 set address name="ID" source=dhcp[/font][/size]
[font=宋体][size=4][b]3)加入域。[/b][/size][/font]
[size=3][font=宋体]在命令行窗口键入:[/font][/size]
[size=3][font=宋体]netdom join ComputerName /domain DomainName /userd:UserName /passwordd:*  [/font][/size]
[size=3][font=宋体][/font][/size]
[size=3][font=宋体]注意,这里的ComputerName 是服务器机器名,DomainName 是加入域的域名,UserName是有权限加入域的域用户。然后,键入域用户的密码,注意Netdom rename 可以在Server Core服务器加入域后重命名服务器。如果需要将一个域用户添加到本地管理员组,可以使用下面的命令:Net loca[url=http://corp.it168.com/corp/106_index.shtml][color=black]lg[/color][/url]roup administrators /add DomainName\UserName[/font][/size]
[size=3][font=宋体]
最后,在命令行窗口,键入:Slmgr.vbs –ato,以激活服务器。______呵呵,以后都要这样来激活服务器了[/font][/size]
[font=宋体][size=3][/size][/font]
[font=宋体][size=3]最后提供一些专业的网站供大家参考:[/size][/font]
[font=宋体][size=3][/size][/font]
[font=宋体][size=3]1、这里有最详细的CORE安装及配置指南及各命令参考:[/size][/font]
[font=宋体][size=3][url=http://technet2.microsoft.com/windowsserver2008/en/library/47a23a74-e13c-46de-8d30-ad0afb1eaffc1033.mspx?mfr=true]http://technet2.microsoft.com/windowsserver2008/en/library/47a23a74-e13c-46de-8d30-ad0afb1eaffc1033.mspx?mfr=true[/url][/size][/font]
[font=宋体][size=3][/size][/font]
[font=宋体][size=3]2、官方中文主页,可以参看一下WEBCAST课程,挺好的[/size][/font]
[url=http://www.microsoft.com/china/windowsserver2008/default.mspx]http://www.microsoft.com/china/windowsserver2008/default.mspx[/url]

3、很专业的MS TECHNET论坛或BLOG
[url=http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=582&SiteID=17]http://forums.microsoft.com/TechNet/ShowForum.aspx?ForumID=582&SiteID=17[/url]
[url=http://blogs.technet.com/server_core/default.aspx]http://blogs.technet.com/server_core/default.aspx[/url]

4、国内的论坛
[url=http://www.mstc.com.cn/forum-112-1.html]http://www.mstc.com.cn/forum-112-1.html[/url]
[url=http://www.mcse.org.cn/showforum-64.html]http://www.mcse.org.cn/showforum-64.html[/url]
当然还有本论坛,呵呵

vivelo 发表于 2007-12-18 17:18

2008出来了,要学多点,才能赶的上.

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.