查看: 2523|回复: 27
|
RedHat Enterprise Linux 【敬请留意】
[复制链接]
|
|
本帖最后由 hackintosh 于 3-9-2010 03:25 PM 编辑
以前写过的是debian 3.1.
今天要重写精华,以RHEL 5.5为主。
这次的题目更加强大。 都是以solution为主
如何安装,我就不说了。 太过浪费时间了
会用vmware workstation 7.1来完成。
vm1
hostname - server1
disk 1 - 30GB
disk 2 - 40GB
disk 3 - 50GB
我的partition layout :-
disk 1 :
/boot 500MB
剩下的29.5GB给LVM。
LVM Group Name - RootGroup
1) RootVol_root = / 17.2GB
2) RootVol_tmp = /tmp 1.5GB
3) RootVol_swap = swap 1.5GB
PS: 我只所以把LV Group名为RootGroup, 以后的人知道我做什么。 一看那个名字,大概了解是什么东西了。
而把LV名为RootVol_root(容易分辨它是mount去/) , RootVol_tmp,(容易分辨它是mount去/tmp) 和 RootVol_swap(容易分辨它是mount去swap)也是是为了容易知道它们是来自 RootGroup
disk 2:-
全部40GB都做去LVM
1)把LV Group名为 HomeGroup
2)HomeVol_home = /home 40GB
disk 3: -
全部50GB都做去LVM
1)把LV Group名为 VarGroup
2)VarVol_var = /var 50GB
我坚持用LVM是因为可以resize FS online。
企业级的系统都应该以这个为标准, 这样子就可以减少system的downtime了。
我一直把这个东西作为best practice
LVM的名字很重要,不然以后接受的人很头疼的。
我发现我上面这个是很多大公司的做法。
要安装的Software Group
- GNOME Desktop Environment (我是为了Vmware的unity才安装的,其实不必安装)
- Applications (这个保持default,不用理会)
- Development -
1) Development Libraries
2) Developent Tools (这两个就够了)
- Server
1) DNS Name Server
2) FTP Server
3) MySQL Database Server
4) Server Configuration Tools
5) Web Server
6) Windows File Server
- Base System (这个保持default,不用理会)
- Languages (这个保持default,不用理会)
然后click next 安装咯
安装完毕过后,reboot。
过后就是create account之类的。
注意:
SELinux = Enforcing (你可以拿走,如果你觉得麻烦。)
Firewall = 全部除了telnet
1) 配置repository server
放你的dvd进入dvd rom(or mount它,如何mount,自己看mount command with option LOOP)
- [root@server1 ~]# cd /media/RHEL_5.5\ i386\ DVD/
- [root@server1 RHEL_5.5 i386 DVD]# ls
- Cluster
- ClusterStorage
- Server
- VT
复制代码
(太长了,其他的给我deleted了。我们主要是要这四个directory而已。)
- [root@server1 RHEL_5.5 i386 DVD]# cp -r Cluster /var/ftp/pub/
复制代码
就copy整个directory过去/var/ftp/pub/
其他的照做不误。
- [root@server1 RHEL_5.5 i386 DVD]#mkdir /var/ftp/pub/rhel
- [root@server1 RHEL_5.5 i386 DVD]# cp -r ClusterStorage/ /var/ftp/pub/rhel/
- [root@server1 RHEL_5.5 i386 DVD]# cp -r Server /var/ftp/pub/rhel/
- [root@server1 RHEL_5.5 i386 DVD]# cp -r VT /var/ftp/pub/rhel/
复制代码
其他的照做不误。
安装createrepo,这个软体是拿来建立repository server的东东。
- [root@server1 RHEL_5.5 i386 DVD]# cd /var/ftp/pub/rhel/Server/
- [root@server1 Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
- warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:createrepo ########################################### [100%]
复制代码
看到warning吗?? 不要叼它的存在 LOL
执行createrepo -v
- [root@server1 pub]# createrepo -v /var/ftp/pub/rhel/
- 1/2455 - ClusterStorage/Global_File_System-zh-CN-5.2-1.noarch.rpm
- 2/2455 - ClusterStorage/kmod-cmirror-xen-0.1.22-3.el5.i686.rpm
- 3/2455 - ClusterStorage/kmod-gnbd-0.1.5-2.el5.i686.rpm
- 4/2455 - ClusterStorage/perl-Config-General-2.40-1.el5.noarch.rpm
- 中间删除了
- 2454/2455 - VT/Virtualization-te-IN-5.2-11.noarch.rpm
- 2455/2455 - VT/Virtualization-zh-TW-5.2-11.noarch.rpm
- Saving Primary metadata
- Saving file lists metadata
- Saving other metadata
复制代码
现在是时候修改yum的repofile了
[root@server1 pub]# cd /etc/yum.repos.d/
[root@server1 yum.repos.d]# cp rhel-debuginfo.repo local.repo
[root@server1 yum.repos.d]# vi local.repo
local.repo的内容
- [localrepo]
- name=local repo for RHEL
- baseurl=ftp://172.16.200.128/pub/rhel
- enabled=1
- gpgcheck=0
复制代码
Start你的vsftpd
- [root@server1 pub]# service vsftpd start
- Starting vsftpd for vsftpd: [ OK ]
复制代码
开启vsftpd,让它自动startup。
- [root@server1 pub]#chkconfig vsftpd on
复制代码
试update看看如何,看大localrepo的出现吗?
- [root@server1 pub]# yum update
- Loaded plugins: rhnplugin, security
- This system is not registered with RHN.
- RHN support will be disabled.
- localrepo | 951 B 00:00
- Skipping security plugin, no data
- Setting up Update Process
- No Packages marked for Update
复制代码
by default是没有安装xen滴。 现在看看xen能否search到。
- [root@server1 pub]# yum search xen
- Loaded plugins: rhnplugin, security
- This system is not registered with RHN.
- RHN support will be disabled.
- ======================================== Matched: xen =======================================
- kernel-xen.i686 : The Linux kernel compiled for Xen VM operations
- kernel-xen-devel.i686 : Development package for building kernel modules to match the kernel.
- kmod-cmirror-xen.i686 : cmirror kernel module(s)
- kmod-gfs-xen.i686 : gfs kernel module(s)
- kmod-gnbd-xen.i686 : gnbd kernel module(s)
- python-virtinst.noarch : Python modules and utilities for installing virtual machines
- virt-manager.i386 : Virtual Machine Manager
- xen.i386 : Xen is a virtual machine monitor
- xen-devel.i386 : Development libraries for Xen tools
- xen-libs.i386 : Libraries for Xen tools
复制代码
不错。
这样子就形成了repo server,通过ftp。
现在把它point去NFS server
修改/etc/exports . /etc/exports的内容如下。
- /var/ftp/pub/rhel *(ro,sync)
复制代码
启动nfs service
- [root@server1 etc]# service nfs start
- Starting NFS services: [ OK ]
- Starting NFS quotas: [ OK ]
- Starting NFS daemon: [ OK ]
- Starting NFS mountd: [ OK ]
复制代码
开启nfs server, 一边server reboot过后它自动启动
- [root@server1 etc]# chkconfig nfs on
- [root@server1 etc]# chkconfig nfs --list
- nfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off
复制代码 |
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:12 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:12 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:12 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:12 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:13 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:13 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:13 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:13 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:15 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2-9-2010 05:15 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 3-9-2010 02:19 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 5-9-2010 09:26 PM
|
显示全部楼层
red hat enterprise 可以download吗? |
|
|
|
|
|
|
|
楼主 |
发表于 5-9-2010 11:26 PM
|
显示全部楼层
red hat enterprise 可以download吗?
quantum^_^ 发表于 5-9-2010 09:26 PM
可以。
问题是你用不到的。 你要如何patches? 呵呵 |
|
|
|
|
|
|
|
发表于 14-9-2010 04:02 PM
|
显示全部楼层
可以。
问题是你用不到的。 你要如何patches? 呵呵
hackintosh 发表于 5-9-2010 11:26 PM
sorry, i am newbie in linux but 我们不可以用manual repo 来patch? |
|
|
|
|
|
|
|
发表于 21-9-2010 09:55 AM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|