




已阅读5页,还剩62页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
类似应用服务器管理及应用实验指导课程总学时: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系统 2二Linux中硬盘的添加2为linux系统添加新的硬盘,并进行分区的划分和查找3三Linux的基本指令2Linux的文件和目录操作4四Linux 系统下文件的压缩1Linux中文件的打包盒解包,文件的压缩和解压5五权限设定与账号管理2使用vi(vim),设定和修改文件权限,管理用户帐号与组,目录安全维护6六文件的链接、环境变量的设置1软连接文件和硬连接文件,修改环境变量7七例行事务管理2使用at和cron,定期执行例行工作8八以太网配置及相关网络操作2使用网络管理中常用指令9九域名服务器2Linux中启动和配置DNS服务器10十文件传输、远程登陆2Linux中启动和配置FTP服务器,使用telnet远程登录FTP,进行文件传输11十一网络文件系统2Linux中启动和配置NFS服务,实现linux之间的文件共享12十二Windows系统与Linux系统中文件共享2Linux中启动和配置samba服务,实现文件的share级共享和user级共享13十三使用SMTP发送邮件2Linux中配置邮件服务器,实现Windows系统和Linux系统之间的邮件收发14十四www服务器2启动和配置Apache服务器,使用.htaccess文件控制访问权限,配置用户认证和授权15十五MySQL的安装与使用2Linux中启动MySQL数据库服务器,使用SQL创建数据库,进行数据查询16十六DNS服务器的配置2在windows2000环境中对DNS服务器进行配置17十七DHCP服务器的配置2在windows2000环境中对DHCP服务器进行配置18十八IIS服务器的配置2在Windows2000环境中对IIS服务器进行配置19十九IMAIL服务器的配置2在Windows2000环境中对IMAIL服务器进行配置四、实验内容安排实验一 安装、配置Linux系统( 综合性实验 2学时)实验目的1 学会安装Linux系统2 通过登录Linux理解以下内容1) Linux登录ID的要求2) 正确退出或注销Linux系统3 熟悉GNOME, KDE桌面之间的转换4 掌握GNOME, KDE的桌面定制实验内容 1 安装Red Hat Enterpise Linux 5.02 登录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 cylindersUnits = 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 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb doesnt contain a valid partition tablerootlocalhost root# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent wont 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): mCommand 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 partitions 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): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-1044, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): 200 Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 2First cylinder (201-1044, default 201):Using default value 201Last cylinder or +size or +sizeM or +sizeK (201-1044, default 1044): 500 Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 3First cylinder (501-1044, default 501):Using default value 501Last cylinder or +size or +sizeM or +sizeK (501-1044, default 1044): 800 Command (m for help): nCommand action e extended p primary partition (1-4)eSelected partition 4First cylinder (801-1044, default 801):Using default value 801Last cylinder or +size or +sizeM or +sizeK (801-1044, default 1044):Using default value 1044 Command (m for help): nFirst cylinder (801-1044, default 801):Using default value 801Last cylinder or +size or +sizeM or +sizeK (801-1044, default 1044): 900 Command (m for help): nFirst cylinder (901-1044, default 901):Using default value 901Last cylinder or +size or +sizeM or +sizeK (901-1044, default 1044):Using default value 1044 Command (m for help): p Disk /dev/sdb: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 200 1606468+ 83 Linux/dev/sdb2 201 500 2409750 83 Linux/dev/sdb3 501 800 2409750 83 Linux/dev/sdb4 801 1044 1959930 5 Extended/dev/sdb5 801 900 803218+ 83 Linux/dev/sdb6 901 1044 1156648+ 83 Linux工具及准备1 使用Red Hat Enterpise Linux 5.0 的虚拟机系统实验三 Linux的基本指令( 操作性实验 4学时)实验目的1 通过对基本的Linux指令操作,熟悉常用的Linux指令用法及其含义2 学会使用Linux联机帮助3 学会日志文件的创建和使用实验内容1 root登陆,进入/home目录2 /home目录下创建一目录名为command的目录_mkdir_command_3 进入command目录,完成以下操作:cd command1) 在command目录下,创建两个目录: dir1, dir2_command_dir1_dir2_2) 输入dir1目录,在该目录下创建两个文件名为file1, file2的普通文件 cd dir1_touch_file1_file2_3) 完成date file1 操作, 并查看file1中的内容 cat file14) 将file1中的内容复制到file2中_cp_file1_file2_5) 将当前工作目录切换至dir2中_cd_./dir2_6) 查看当前工作目录_pwd_7) 将dir1中的所有文件复制到dir2中,并查找文件名为file1的文件是否在dir2中_cp_-r_dir1/*_dir2_8) 以长文件格式查看dir2中文件的属性,并说明其含义_ls_-l_9) 将dir2中的file1更名为bacfile_mv_file1_bacfile_10) 删除dir2中的file2,删除dir1中的所有文件_rm_file2_11) 删除dir1和dir2,说明区别_rmdir_dir1_rm _-r_dir2_4. 将ls -l 指令伪名为longview, cat指令伪名为display, 并测试_Alias_longview=”ls_-l”_display=cat_5. 要求所有上述操作在script文件中完成,script文件名为lab3_script_lab3_exit_工具/准备工作1. Red Hat EnterpriseLinux 5.0 操作系统实验四 Linux 系统下文件的压缩( 操作性实验 2学时)实验目的1学会使用Linux中文件打包和解包工具2学会使用Linux中常用的文件压缩和解压工具实验内容 完成并记录以下操作1登录Linux系统,打开“终端”2在/home/中创建一文件目录compress在compress目录中创建三个文件:file1, file2, file3, file4.txt.rootlocalhost root# cd /homerootlocalhost home# mkdir compressrootlocalhost home# cd compressrootlocalhost compress# touch file1 file2 file3 file4.txt3将以上三个文件打包,包名为:comp.tarrootlocalhost compress# tar -cvf comp.tar file1 file2 file3 file4.txtfile1file2file34浏览comp.tar中的文件rootlocalhost compress# tar -tvf comp.tar-rw-r-r- root/root 0 2011-09-26 10:52:09 file1-rw-r-r- root/root 0 2011-09-26 10:52:09 file2-rw-r-r- root/root 0 2011-09-26 10:52:09 file35将一新文件file4加入comp.tar中,并将file1从包文件中删除rootlocalhost compress# tar -rvf comp.tar file4.txtfile4.txtrootlocalhost compress# tar -delete -vf comp.tar file1rootlocalhost compress# tar -tvf comp.tar-rw-r-r- root/root 0 2011-09-26 10:52:09 file2-rw-r-r- root/root 0 2011-09-26 10:52:09 file3-rw-r-r- root/root 0 2011-09-26 10:52:09 file4.txt6将comp.tar 压缩成comp.tar.gz文件rootlocalhost compress# gzip comp.tarrootlocalhost compress# lscomp.tar.gz file1 file2 file3 file4.txt7压缩目录compress中除.txt的所有文件,压缩文件名为:compex.ziprootlocalhost compress# cd .rootlocalhost home# zip -r compex.zip /home/compress -x *.txt adding: home/compress/ (stored 0%) adding: home/compress/file1 (stored 0%) adding: home/compress/file2 (stored 0%) adding: home/compress/file3 (stored 0%) adding: home/compress/comp.tar.gz (stored 0%)rootlocalhost home# ls -l总用量 8-rw-r-r- 1 root root 916 9月 26 11:27 compex.zipdrwxr-xr-x 2 root root 4096 9月 26 11:04 compress9解压comp.tar.gz和compex.gz文件rootlocalhost compress# gunzip comp.tar.gzrootlocalhost compress# ls -l总用量 12-rw-r-r- 1 root root 10240 9月 26 11:01 comp.tar-rw-r-r- 1 root root 0 9月 26 10:52 file1-rw-r-r- 1 root root 0 9月 26 10:52 file2-rw-r-r- 1 root root 0 9月 26 10:52 file3-rw-r-r- 1 root root 0 9月 26 10:52 file4.txtrootlocalhost home# unzip compex.zipArchive: compex.zip creating: home/compress/ extracting: home/compress/file1 extracting: home/compress/file2 extracting: home/compress/file3 extracting: home/compress/comp.tar.gz工具/准备工作1. Red Hat EnterpriseLinux 5.0 操作系统实验五 权限设定与账号管理( 操作性实验 4学时)实验目的1 熟悉vi 编辑工具2 掌握文件权限的设定和修改3 掌握用户帐号与组的日常管理1) 创建及维护用户帐号2) 创建及维护组5熟悉目录安全维护实验内容 1以root身份登陆,完成下列操作:1) 使用useradd创建u1, u2用户rootlocalhost root# useradd u22) 设定u1帐号的有效期为04/06/2007rootlocalhost root# useradd -e 2007-06-04 u13) 创建u3用户, 并将其加入到u1组中,观察结果rootlocalhost root# useradd u3rootlocalhost root# gpasswd -M u3 u14) 暂停u2帐号,并测试,观察效果 rootlocalhost root# usermod -L u2rootlocalhost root# grep u2 /etc/passwd /etc/shadow/etc/passwd:u2:x:502:502:/home/u2:/bin/bash/etc/shadow:u2:!$1$mXF7mvB2$raJWmjrfKDoTXNLvQ39b4/:15257:0:99999:7:rootlocalhost root# su - u2u2localhost u2$ exitlogout 恢复u2帐号, 并删除u2 rootlocalhost root# usermod -U u2rootlocalhost root# su - u3u3localhost u3$ su - u2Password:u2localhost u2$ exitrootlocalhost root# userdel u2rootlocalhost root# finger u2finger: u2: no such user.2以root身份登陆,根据下列要求完成功能:新建组students,该组成员包含stu1,stu2,stu3;在根”/”目录下建立一新目录students,该目录下包含三个子目录,分别为与账号同名的stu1,stu2,stu3;写出以上创建组、用户以及共用目录的过程:rootlocalhost root# groupadd studentsrootlocalhost root# useradd stu1rootlocalhost root# useradd stu2rootlocalhost root# useradd stu3rootlocalhost root# gpasswd -a stu3 studentsAdding user stu3 to group studentsrootlocalhost root# gpasswd -a stu2 studentsAdding user stu2 to group studentsrootlocalhost root# gpasswd -a stu1 studentsAdding user stu1 to group studentsrootlocalhost root# grep students /etc/group /etc/gshadow/etc/group:students:x:500:stu3,stu2,stu1/etc/gshadow:students:!:stu3,stu2,stu1rootlocalhost root# mkdir /studentsrootlocalhost root# cd /studentsrootlocalhost students# pwd/studentsrootlocalhost students# mkdir stu1 stu2 stu3rootlocalhost students# cd stu1rootlocalhost stu1# pwd/students/stu1rootlocalhost stu1# cd .rootlocalhost students# lsstu1 stu2 stu3按要求完成以下配置1) 只有students组的成员能够访问students目录rootlocalhost /# chown -R .students /studentsrootlocalhost /# chmod 771 /studentsrootlocalhost /# ls -l总用量 197drwxr-xr-x 2 root root 4096 2012-09-15 bindrwxr-xr-x 4 root root 1024 2012-09-15 bootdrwxr-xr-x 20 root root 118784 10月 11 08:41 devdrwxr-xr-x 60 root root 4096 10月 11 08:56 etcdrwxr-xr-x 5 root root 4096 10月 11 08:52 homedrwxr-xr-x 2 root root 4096 2003-01-25 initrddrwxr-xr-x 9 root root 4096 2012-09-15 libdrwx- 2 root root 16384 2012-09-15 lost+founddrwxr-xr-x 2 root root 4096 2003-01-28 miscdrwxr-xr-x 5 root root 4096 2012-09-14 mntdrwxr-xr-x 2 root root 4096 2003-01-25 optdr-xr-xr-x 81 root root 0 2011-10-11 procdrwxr-x- 14 root root 4096 10月 11 08:44 rootdrwxr-xr-x 2 root root 8192 2012-09-14 sbindrwxrwx-x 5 root students 4096 10月 11 08:59 studentsdrwxrwxrwt 11 root root 4096 10月 11 08:44 tmpdrwxr-xr-x 15 root root 4096 2012-09-15 usrdrwxr-xr-x 20 root root 4096 2012-09-15 var2) stu1对stu1目录有完全权限,对stu2、stu3可以访问,但不能修改。同理对于stu2,stu3用户要求也一样。rootlocalhost /# chown -R stu1 /students/stu1rootlocalhost /# chmod 775 /students/stu1rootlocalhost students# chown -R stu2 /students/stu2rootlocalhost students# chmod 775 /students/stu2rootlocalhost students# chown -R stu3 /students/stu3rootlocalhost students# chmod 775 /students/stu3rootlocalhost students# ls -l总用量 12drwxrwxr-x 2 stu1 students 4096 10月 11 09:15 stu1drwxrwxr-x 2 stu2 students 4096 10月 11 08:59 stu2drwxrwxr-x 2 stu3 students 4096 10月 11 08:59 stu33)设置stick位,使组成员不能互相删除文件,并检查结果Chmod o+t /students 4)使用setgid位使创建的文件或目录的所属组为students_ Chmod g+s /students_3分别为stu1, stu2, stu3用户分配5M磁盘配额,并将最多文件数目限制设为5,并测试。写出配置的基本步骤。工具/准备工作1 Red Hat EnterpriseLinux 5.0 操作系统实验六 文件的链接、环境变量的设置( 操作性实验 2学时)实验目的1. 通过本章实验,学会文件的软硬链接。4 掌握环境变量的修改方法实验内容 1文件链接1) 在/home下创建二个目录dir1, dir2,在dir1中使用vi编辑器编辑一含有内容的文件file1。 2) 在dir2中通过文件link1软链接到dir1中file1,并查看link1中的内容。3) 删除dir1中的文件file1,查看link1的情况。写出观察结果,并解释原因。由于采用软连接的时候是为link1重新分配一个索引结点,所以根据上面的结果看出这个链接文件的链接次数只有一次,当被链接的源文件的被删除时不会对这个链接点造成影响,文件的链接次数不改变。4) 以同样方法在dir1中创建file2。5) 在dir2中通过文件link2硬链接到dir1中file2,并查看link2中的内容。6) 删除dir1中的文件file2,查看link2的情况。写出观察内容,并解释。由于采用的是硬链接,所以就不会为Link2分配新的索引结点,当file2被链接的时候它的使用次数就变成2,当删除file2是它的使用次数就减一次变成1,所以出现上面的结果。2以root身份登陆,在/home目录中创建lab4 目录,完成下列操作:1) 执行 vi envset 进入vi编辑器2) 在编辑器中输入下列信息:echo “This is the test for setting up a file permission”ls ldatewhoecho “End of the test”3) 保存envset 文件,查看该文件的权限,执行./envset, 观察结果,记录并解释结果。由于envset文件的权限时根用户读写不能执行,所以./envset命令不能成功。4) 将envset权限设为用户自己可读写、执行,组用户可读写,其它用户可读、执行。观察文件权限的变化,并记录。5) 再执行./envset, 观察结果,记录并解释结果。3环境变量的修改1)使用以下操作新建两个普通用户,并删除密码adduser user1passwd d user1 adduser usre2 passwd d user2以root用户登陆,分别在下面两个文件中的任何一个文件加入PATH=$PATH:/home/lab4。注销系统,并重新登陆。(1)/etc/profile(2)/etc/bashrc再以user1和user2用户登陆,并分别在该用户的任何目录下执行envset,观察结果,并解释。2)以user2用户登陆,分别在以下两文件中的任意一个文件加入PATH$PATH:/home/ lab4。再分别以user1和user2登陆,并在任何目录执行envset,观察结果,并解释。(1)/.bashrc(2)/.bash_profile 工具及准备1 Red Hat EnterpriseLinux 5.0 操作系统实验七 例行事务管理(验证性实验 2学时)实验目的1通实际操作了解系统自动执行工作2学会at和cron的使用,定期执行例行性工作实验内容 1 用at设置指令执行时间, 要求:1)通过标准输入:在2011年4月9日9点向用户邮箱发送以问候信息。_2)通过文件输入下列指令,并存放于文件job中;指令执行时间为2011年4月9日9:05。(注意: 如果at不能发送,用hostname检查主机名是否为localhost.localhostdomain,如果不是,则使用hostname localhost.localhostdoamin将主机名重新设置)Dateecho We have a meeting this aft
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 微项目1 探索数据表格构建说课稿-2025-2026学年初中信息技术泰山版2019第3册-泰山版2019
- 2025聘请副校长合同
- 2025猪肉交易合同模板
- 2025年上海市企业劳动合同范本
- 《2025企业雇佣合同范本》
- 包头事业单位笔试真题2025
- 2023三年级英语上册 Unit 7 Would you like a pie第3课时说课稿 牛津译林版
- 电池厂职业健康防护管理规定
- 2025新进员工劳动合同模板
- 东营事业单位笔试真题2025
- 河南豫信电科所属公司招聘笔试题库2025
- GB/T 45345-2025金属及其他无机覆盖层工程用直流磁控溅射银镀层镀层附着力的测量
- 无人机教员聘用协议书
- 药物非临床研究质量管理规范
- 脑科生理病理图谱解读
- 全国青少年科技辅导员专业水平认证笔试考题
- (行业)常用表面处理工艺详解(行业讲座教学培训课件)
- 《STEMI再灌注治疗策略》课件
- 配电网安健环设施标准
- 2025年物产中大集团股份有限公司招聘笔试参考题库含答案解析
- 家校合作下的学生心理问题预防与干预
评论
0/150
提交评论