Red Hat Enterprise Linux服务器配置实例教程9
- 格式:ppt
- 大小:1.98 MB
- 文档页数:129


第一部分安装以及基本配置 (3)1.1A PACHE的安装及启动(基于RHEL5) (3)1.1.1Apache的安装 (3)1.1.2Apache服务的启动和停止 (3)1.2基本配置 (4)1.2.1apache服务概述: (4)1.2.2Apache基本设置 (4)1.2.2.1主机相关配置(/etc/httpd/httpd.conf) (5)1.2.2.2语言配置 (/etc/httpd/conf/httpd.conf) (6)1.2.2.3权限设置 (7)1.2.3专项配置 (7)1.2.3.1配置本地文件系统共享 (7)1.2.3.2配置虚拟主机 (8)1.2.3.3有关于CGI的配置 (9)1.2.3.4.htaccess认证页面设置 (10)1.2.3.5创建基于SSL加密的apache服务 (11)第一部分安装以及基本配置1.1 Apache的安装及启动(基于RHEL5)1.1.1Apache的安装可以使用两种方式进行安装:1.Yum方式安装2.Rpm方式安装Yum方式安装,在服务器上执行如下命令:# yum groupinstall “Web Server”这将自动安装所有与httpd有依赖关系和默认配置的包。
以下为自动安装的包名:Rpm方式安装, 可以在服务器上执行如下命令来通过RPM安装:# rpm –ivh package_name1.1.2Apache服务的启动和停止启动和停止apache服务:/etc/init.d/httpd start OR service httpd start/etc/init.d/httpd stop OR service httpd stop/etc/init.d/httpd status OR service httpd status1.2基本配置1.2.1apache服务概述:类型:标准SysV管理的服务软件包:httpd, httpd-devel, httpd-manual守护进程:/usr/sbin/httpd默认端口:80 (http), 443 (https)配置文件:/etc/httpd/* , /var/www/*相关软件:system-config-httpd, mod_sslapache在RHEL下的组织结构:/etc/httpd/conf/httpd.conf: apache的主配置文件,基本包括了apache的大多数配置信息./etc/httpd/conf.d/*.conf: 其他功能配置文件,如ssl,perl,php等支持的配置信息./usr/lib/httpd/modules/: apache支持的模块默认都放在这个目录下./var/www/html/: apache预设的"/"目录.http://hostname默认访问的就是这里./var/www/error/: 当主机配置错误或为响应客户端访问出错时,显示在浏览器上的错误信息存放路径./var/www/icons/: 这个目录提供了apache预设的一些图示.通过http://hostname/icons/访问./var/www/cgi-bin/: 预设可以存放一些CGI脚本的目录,通过/cgi-bin/访问./var/log/httpd/: 该路径为apache日志目录,对于大访问量情况,应对该文件系统给予足够空间,并考虑可动态扩容方案./usr/sbin/apachectl: apache的主要执行文件,是bash写的,可以方便启动apache,并主动检测系统上的一些预设参数./usr/sbin/httpd: apache的二进制可执行文件./usr/bin/htpasswd: 设置.htaccess密码口令相关的可执行文件1.2.2Apache基本设置编辑/etc/hosts文件,将主机名称添加到该配置文件中,否则在apache启动的时候可能会报找不到FQDN名称的问题。
RedHat Linux9.0安装指南分类:linux档案2008.1.14 16:57 作者:AmxKing | 评论:0 | 阅读:0 以下安装指南适合于没有raid 卡的情况,若系统中有raid 卡,安装操作系统时请参见raid 卡用户手册。
一、安装前的准备工作参照万全慧眼导航版软件的使用说明,从随机配置的万全慧眼导航版光盘上把安装red hat linux 9.0 所需的scsi 卡驱动程序和网卡驱动程序备份到两张张软盘上,贴标签并注明“scsi 卡驱动程序for li nux 9.0”、“千兆网卡驱动程序for linux 9.0”和“marvell 网卡驱动程序for linux 9.0”。
二、安装步骤1. 将标识有redhat linux 9.0 安装光盘#1 放入光驱,使系统从光驱引导。
2. 光盘启动后,出现redhat linux 9.0 安装程序的欢迎界面,在boot:后键入linux dd,回车。
3. 系统提示“do you have a driver disk?”时,选择“yes”,继续。
如果系统提示“driver disk source”,请选择“fd0”,后回车继续。
4. 系统提示:“insert you driver disk into /dev/fd0 and press ‘ok’ to continue”时,将标有“scsi 卡驱动程序for redhat linux9.0”的软盘插入软驱,选择“ok”继续。
系统提示“do you wish to load any more driver disks?”,请选择“no”,回车继续。
系统提示“cd found”,请根据需要进行选择,本例以“skip”为例,回车继续。
5. 出现“welcome”界面,点击“next”继续。
6. 按照系统提示设置安装语言,点击“next”继续。
本安装指南以选择“english”为例。
7. 按照系统提示设置键盘的类型,点击“next”继续。
LINUX软件安装步骤1.在Vmware 中创建一个Linux 的虚拟机版本是Red Hat Linux ,其中硬盘最少要有2GB 的空间(建议分4GB 其他硬盘,网卡的配置和Windows 虚拟机一样即可)。
2.把Vmware 的光驱制定到对应的镜像文件上,我们这里是linux iso 文件中的第一张盘。
3.启动虚拟机,由光盘进入。
在这个界面中输入linux text 后回车才能进入文本安装界面。
4.提示检测介质。
因为我们使用的是镜像文件,所以可以直接单击Skip 如果使用的是光盘最好还是检测一下比较好。
(在LINUX 文本模式中基本都是使用键盘进行操作,鼠标也支持但是不像在Windos 中那样好用。
用户可以通过Tab键和方向键来切换选项,空格和回车来确定)如果上面选择的是Skip就会直接跳到第8步。
5.开始检测。
如果是使用的光盘CD 需要先插入CD 后在Test 因为我们使用的是镜像文件所以就可以直接Test6.检测完毕。
选择OK7.提示是否检测其他的盘。
如果你为了保险起见可以继续检测,但是时间可能会长一些。
8.选择语言安装过程,在这里选择英语。
(如果选择的不是英语的话,在以后的一些提示显示中会出现乱码看不懂)9.选择键盘类型,在这里选择us 即可。
10.选择鼠标类型,在Linux 这类操作系统中,经常用到三键鼠标,因此,除了选择鼠标类型外,一般还选中下面的“Emulate 3 Buttons?”,这样同时点击鼠标左右键,代表点击中键。
11.选择安装类型。
在这里我们选择第4个Custom(定制)。
12.准备分区。
在这里选择Autopartition 。
13.这里会让用户选择如何处理硬盘上的原始分区。
因为我们是新建的所以选那个都无所谓,但是如果在已经安装好Windows 的系统上进行安装,一般选择第三项。
意思就是使用硬盘当中没有使用的空间来创建相应的分区。
在下面会让用户选择。
要安装到那个硬盘中,在这里只有一个硬盘sda ,所以直接选择即可。
Red Hat Enterprise Linux 8配置和管理虚拟化设置您的主机、创建和管理虚拟机并了解 Red Hat Enterprise Linux 8 中的虚拟化功能Last Updated: 2023-08-03Red Hat Enterprise Linux 8 配置和管理虚拟化设置您的主机、创建和管理虚拟机并了解 Red Hat Enterprise Linux 8 中的虚拟化功能法律通告Copyright © 2023 Red Hat, Inc.The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates.XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries.Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.All other trademarks are the property of their respective owners.摘要要将 Red Hat Enterprise Linux (RHEL)系统用作虚拟化主机,请按照本文档中的说明操作。