类似《应用服务器管理及应用》实验指导
课程总学时:32 学分:2
实验学时: 32 实验个数: 19 实验学分: 1 课程性质: 专业限选课、专业任选课 适用专业:网络工程、计算机科学与技
术
教材及参考书:
大纲执笔人: 郭涛,苟仕蓉 大纲审定人: 高悦翔 一、实验课的性质与任务
在网络技术日益发展的今天,许多公司,企业,机关,学校纷纷建立起自己的网络,企图通过网络办公来提高工作效率,同时,对计算机系统的性能、安全也提出了更高的要求。
Linux是一种可以在PC上执行的类UNIX操作系统,使用TCP/IP作为主要的网络通信协议,内建FTP、TELNET、Mail和Apache等各种功能,再加上安全性好,稳定性高,许多ISP都用它来架设服务器。
Windows系统是PC上流行的操作系统,其图形界面的友好和易学易用获得了多数用户和公司的青睐,不少中小型企业或公司都打算使用Windows server来进行单位办公网络的组建。
本实验课程首先从Linux的桌面应用、系统管理、网络管理三个部分着手,在系统地介绍Linux的基础知识、安装和配置、文本编辑工具、用户帐号与组管理、文件与目录系统、用户界面shell的基础上,着重介绍了Linux环境中部分网络服务器,如FTP服务器,WWW服务器,NFS服务器,samba服务器,电子邮件服务器的配置与应用。其次,本实验课程也对Windows系统中对应服务器的配置与应用进行了简介。本门课程注重教学体系的严密性、教学内容的实用性、知识体系的扩展性。通过学习和实验可提高学生的动手能力,使学生具有一定的Linux系统管理技能和windows系统管理技能。
二、实验课程目的与要求
1.实验目的:本课程的目的和任务是使学生全面地了解和掌握Linux系统的基本概念、原理,特别是Linux环境下的服务器假设和Windows环境中的服务器配置与管理,以适应社会对Linux和Windows操作与管理人员的需求。 2.实验要求:
1)实验安排在上机时间进行。
2)实验以前,学生应对实验设计的相关知识点和相关设计技术有所了解
3)每个实验要求写出实验报告(实验报告包括:实验内容、目的、实现方法、调试结果)
三、实验项目及内容提要
《应用服务器管理及应用》实验课程 实验序项号 目编号 1 一 实验类型 实验名称 学时 必做 学基选分本验综设做 数 操证 合 计 作 √ 内容提要 安装、配置Linux系统 2 √ 安装Linux系统 为linux系统添加新的硬盘,并进行分区的划分和查找 Linux的文件和目录操作 Linux中文件的打包盒解包,文件的压缩和解压 使用vi(vim),设定和修改文件权限,管理用户帐号与组,目录安全维护 软连接文件和硬连接文件,修改环境变量 使用at和cron,定期执行例行工作 使用网络管理中常用指令 Linux中启动和配置DNS服务器 Linux中启动和配置FTP服务器,使用telnet远程登录FTP,进行文件传输 Linux中启动和配置NFS服务,实现linux之间的文件共享 Linux中硬2 二 盘的添加 3 三 2 √ √ Linux的基本指令 2 √ √ Linux 系统4 四 下文件的压缩 权限设定与账号管理 1 √ √ 5 五 2 √ √ 文件的链6 六 接、环境变量的设置 7 七 1 √ √ 例行事务管理 以太网配置及相关网络操作 域名服务器 文件传输、远程登陆 2 √ √ 8 八 2 √ √ 9 九 2 √ √ 10 十 2 √ √ 十11 一 网络文件系统 2 √ √ Windows系十统与Linux12 二 系统中文件共享 十三 2 √ √ Linux中启动和配置samba服务,实现文件的share级共享和user级共享 Linux中配置邮件服务器,实现Windows系统和Linux系统之间的邮件收发 启动和配置Apache服务器,使用.htaccess文件控制访问权限,配置用户认证和授权 Linux中启动MySQL数据库服务器,使用SQL创建数据库,进行数据查询 在windows2000环境中对DNS服务器进行配置 在windows2000环境中对DHCP服务器进行配置 在Windows2000环境中对IIS服务器进行配置 在Windows2000环境中对IMAIL服务器进行配置 13 使用SMTP发送邮件 2 √ √ 14 十www服务器 四 2 √ √ 15 十MySQL的安五 装与使用 2 √ √ 十DNS服务器16 六 的配置 十17 七 2 √ √ DHCP服务器的配置 2 √ √ 十IIS服务器18 八 的配置 十IMAIL服务19 九 器的配置 2 √ √ 2 √ √ 四、实验内容安排
实验一 安装、配置Linux系统 ( 综合性实验 2学时)
实验目的
1. 学会安装Linux系统
2. 通过登录Linux理解以下内容
1) Linux登录ID的要求
2) 正确退出或注销Linux系统
3. 熟悉GNOME, KDE桌面之间的转换 4. 掌握GNOME, KDE的桌面定制 实验内容
1. 安装Red Hat Enterpise Linux 5.0 2. 登录Linux
3. 熟悉Linux系统的图形界面 4. 使用GNOME对桌面进行定制
5. 在两种X 系统中进行桌面转换
工具及准备
1. Windows XP 计算机系统
2. Red Hat Enterpise Linux 5.0安装光盘或光盘映像文件 3. Vmware 6.5 软件
实验二 Linux中硬盘的添加 ( 验证性实验 2学时)
实验目的
1. 学会Linux分区 实验内容
1. 登陆进入Linux系统,查看当前系统的分区信息 2. 关闭Linux系统,在虚拟环境下创建一硬盘 3. 再次进入Linux系统,查看当前系统的分区信息
4. 将该硬盘分为3个主分区,1个扩展分区,并在扩展分区中建立2个逻辑分区(有
条件可在自己的硬盘分区上进行)
55 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 914 7237282+ 83 Linux
/dev/sda3 915 1044 1044225 82 Linux swap
Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table [root@localhost root]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): m Command action
a toggle a bootable flag b edit bsd disklabel
c toggle the dos compatibility flag d delete a partition
l list known partition types m print this menu n add a new partition
o create a new empty DOS partition table p print the partition table q quit without saving changes
s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n Command action e extended
p primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-1044, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): 200
Command (m for help): n Command action e extended
p primary partition (1-4) p
Partition number (1-4): 2
First cylinder (201-1044, default 201): Using default value 201
Last cylinder or +size or +sizeM or +sizeK (201-1044, default 1044): 500
Command (m for help): n Command action e extended