操作系统 发布日期:2024/12/29 浏览次数:1
1:测试光盘
网上下载的CentOS5.0,刻成光盘,测试能够启动,在老黑上测试可以安装,但老黑提示只能用文本安装,当然,他不提示我也用文本形式安装。
2:安装过程
以前的版本这个地方显示的是空硬盘,但这里好像就已经有分区了,这个地方是没有搞明白。我就把默认的都删除
分区我采用最简单的办法,分一个swap分区,320m,根分区5g,创建一个data的分区,占用全部剩下的空间,其实你也可以是根分区是占用全部空间。
这个就选择最小化的安装,什么都不选。声明:我这里还是选了一个FTP Server,方便下一步安装LAMP环境。
上面显示,安装了399个包,占用空间是665m。这个信息,如果你是图形化安装你是看不到的。
3:设置centos
centos5,这个地方进行的改动,不是在安装的过程设置,而是装完系统,第一次启动的时候进行设置。我在这里就把防火墙禁用了。如果这里你不进行设置,进入系统后,可以运行setup命令进行设置,出来的是同样的界面。禁用selinux的防火墙,你还可以通过修改配置文件
vi /etc/sysconfig/selinux
SELINUX=enforcing 改成--> SELINUX=disabled
这样你就可以进入系统。我们可以在这里设置启动的服务,也可以进入系统再设置。可以比较一下停用服务后内存的使用情况
运行ntsysv 或者setup,进行服务配置
只选择9项服务
acpid
anacron
auotfs
cpuspeed
crond
network
sshd
syslog
yum-updatesd
重新启动机器,你就会发现内存占用少了一半。
4:设置ssh
修改/etc/ssh/sshd.config两个地方,运行root帐户登陆和禁止使用dns,这样可以加快客户端登陆,否则ssh会做反向的dns查询。
PermitRootLogin yes
UseDNS no
service sshd restart
5:mount 光驱
其实由于我们的服务已经启动autofs,centos5已经是配置好autofs,
ls /misc/cd
你就可以看到现在光盘里的内容,如果不使用,缺省300秒就会unmount。
6:设置yum
本来打算把yum更新指向cd的,不过反复测试,没有成功。所有只能指向国内的yum,速度也很快
vi /etc/yum.repos.d/CentOS-Base.repo
######################
[base]
name=CentOS-5 - Base
repo=os
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/ ####注意用5不是5.1
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[update]
name=CentOS-5 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5.1/updates/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[addons]
name=CentOS-5 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5.1/addons/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[extras]
name=CentOS-5 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5.1/extras/$basearch/
gpgcheck=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[centosplus]
name=CentOS-5 - Plus
baseurl=http://centos.ustc.edu.cn/centos/5.1/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
[contrib]
name=CentOS-5 - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5.1/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
###################
rpm --import http://centos.ustc.edu.cn/centos/5.1/os/i386/RPM-GPG-KEY-CentOS-5
yum update
7:建立搜索的db
为了以后搜索查找文件快速,使用locate来查找文件,运行命令
updatedb
8:查看log
当你安装完系统后,会在你的root的帐户下产生两个log
你可以用命令来查询自己安装了多少个rpm包
rpm -qa > rpm.txt
我用命令查询发现是装了342个包,和install.log 是一样的。
anaconda-ks.cfg
# Kickstart file automatically generated by anaconda.
install
cdrom
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.1.168 --netmask 255.255.255.0 --gateway 192.168.1.1 --nameserver 192.168.1.1 --hostname centos
rootpw --iscrypted $1$y/t6iO5p$ilVd82kK/VfAmguaRlZ1B1
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Chongqing
bootloader --location=mbr --driveorder=sda
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=sda
#part / --fstype ext3 --size=5000 --asprimary
#part swap --size=320
#part /data01 --fstype ext3 --size=1 --grow --asprimary
%packages
@core
@base
device-mapper-multipath
-sysreport
另外一个就是install.log, 里面是包括所有你安装的包,这次安装是342个包
Installing libgcc - 4.1.2-14.el5.i386
warning: libgcc-4.1.2-14.el5: Header V3 DSA signature: NOKEY, key ID e8562897(警告信息,不是包)
Installing setup - 2.5.58-1.el5.noarch
Installing filesystem - 2.4.0-1.el5.centos.i386
Installing basesystem - 8.0-5.1.1.el5.centos.noarch
Installing tzdata - 2007d-1.el5.noarch
Installing glibc-common - 2.5-18.i386
Installing glibc - 2.5-18.i686
Installing chkconfig - 1.3.30.1-1.i386
Installing zlib - 1.2.3-3.i386
Installing glib2 - 2.12.3-2.fc6.i386
Installing mktemp - 3:1.5-23.2.2.i386
Installing audit-libs - 1.5.5-7.el5.i386
Installing popt - 1.10.2-47.el5.i386
Installing libstdc++ - 4.1.2-14.el5.i386
Installing libusb - 0.1.12-5.1.i386
Installing atk - 1.12.2-1.fc6.i386
Installing bzip2-libs - 1.0.3-3.i386
Installing expat - 1.95.8-8.2.1.i386
Installing db4 - 4.3.29-9.fc6.i386
Installing tcp_wrappers - 7.6-40.4.el5.i386
Installing cyrus-sasl-lib - 2.1.22-4.i386
Installing libICE - 1.0.1-2.1.i386
Installing libSM - 1.0.1-3.1.i386
Installing libattr - 2.4.32-1.1.i386
Installing libacl - 2.2.39-2.1.el5.i386
Installing libgpg-error - 1.4-2.i386
Installing elfutils-libelf - 0.125-3.el5.i386
Installing libgcrypt - 1.2.3-1.i386
Installing beecrypt - 4.1.2-10.1.1.i386
Installing libpng - 2:1.2.10-7.0.2.i386
Installing gdbm - 1.8.0-26.2.1.i386
Installing perl - 4:5.8.8-10.i386
Installing libcap - 1.10-26.i386
Installing libjpeg - 6b-37.i386
Installing libtiff - 3.8.2-7.el5.i386
Installing gnutls - 1.4.1-2.i386
Installing cups-libs - 1:1.2.4-11.14.el5.i386
Installing wireless-tools - 1:28-2.el5.i386
Installing libsysfs - 2.0.0-6.i386
Installing slang - 2.0.6-4.el5.i386
Installing pcsc-lite-libs - 1.3.1-7.i386
Installing hesiod - 3.1.0-8.i386
Installing keyutils-libs - 1.2-1.el5.i386
Installing libXau - 1.0.1-3.1.i386
Installing perl-String-CRC32 - 1.4-2.fc6.i386
Installing pcre - 6.6-1.1.i386
Installing libIDL - 0.8.7-1.fc6.i386
Installing ORBit2 - 2.14.3-4.el5.i386
Installing file - 4.17-9.0.1.el5.i386
Installing dosfstools - 2.11-6.2.el5.i386
Installing pax - 3.4-1.2.2.i386
Installing libevent - 1.1a-3.2.1.i386
Installing checkpolicy - 1.33.1-2.el5.i386
Installing libhugetlbfs-lib - 1.0.1-1.el5.i386
Installing libnl - 1.0-0.10.pre5.4.i386
Installing ethtool - 5-1.el5.i386
Installing mingetty - 1.07-5.2.2.i386
Installing mailx - 8.1.1-44.2.2.i386
Installing bluez-libs - 3.7-1.i386
Installing libvolume_id - 095-14.9.el5.i386
Installing dmidecode - 1:2.7-1.28.2.el5.i386
Installing libXdmcp - 1.0.1-2.1.i386
Installing patch - 2.5.4-29.2.2.i386
Installing libdrm - 2.0.2-1.1.i386
Installing cracklib-dicts - 2.8.9-3.3.i386
Installing nash - 5.1.19.6-19.i386
Installing rmt - 0.4b41-2.fc6.i386
Installing centos-release-notes - 5.1.0-2.i386
Installing termcap - 1:5.5-1.20060701.1.noarch
Installing libtermcap - 2.0.8-46.1.i386
Installing bash - 3.1-16.1.i386
Installing info - 4.8-14.el5.i386
Installing ncurses - 5.5-24.20060715.i386
Installing grep - 2.5.1-54.2.el5.i386
Installing libsepol - 1.15.2-1.el5.i386
Installing sed - 4.1.5-5.fc6.i386
Installing readline - 5.1-1.1.i386
Installing gawk - 3.1.5-14.el5.i386
Installing nspr - 4.6.5-3.el5.i386
Installing nss - 3.11.7-1.3.el5.centos.i386
Installing libxml2 - 2.6.26-2.1.2.i386
Installing freetype - 2.2.1-19.el5.i386
Installing sqlite - 3.3.6-2.i386
Installing procps - 3.2.7-8.1.el5.i386
Installing diffutils - 2.8.1-15.2.2.i386
Installing libidn - 0.6.5-1.1.i386
Installing iproute - 2.6.18-4.el5.i386
Installing iptables - 1.3.5-1.2.1.i386
Installing less - 394-5.el5.i386
Installing gzip - 1.3.5-9.el5.centos.i386
Installing cpio - 2.6-20.i386
Installing binutils - 2.17.50.0.6-5.el5.i386
Installing make - 1:3.81-1.1.i386
Installing iptables-ipv6 - 1.3.5-1.2.1.i386
Installing nss-tools - 3.11.7-1.3.el5.centos.i386
Installing bc - 1.06-21.i386
Installing aspell - 12:0.60.3-7.1.i386
Installing ed - 0.2-38.2.2.i386
Installing time - 1.7-27.2.2.i386
Installing groff - 1.18.1.1-11.1.i386
Installing m4 - 1.4.5-3.el5.1.i386
Installing centos-release - 10:5-1.0.el5.centos.1.i386
Installing iputils - 20020927-43.el5.i386
Installing RedHat-logos - 4.9.99-8.el5.centos.noarch
Installing crontabs - 1.10-8.noarch
Installing bzip2 - 1.0.3-3.i386
Installing procmail - 3.22-17.1.el5.centos.i386
Installing tcl - 8.4.13-3.fc6.i386
Installing desktop-file-utils - 0.10-7.i386
Installing RedHat-menus - 6.7.8-2.el5.noarch
Installing xorg-x11-filesystem - 7.1-2.fc6.noarch
Installing libX11 - 1.0.3-8.0.1.el5.i386
Installing libXext - 1.0.1-2.1.i386
Installing libXrender - 0.9.1-3.1.i386
Installing libXi - 1.0.1-3.1.i386
Installing libXfixes - 4.0.1-2.1.i386
Installing libXcursor - 1.1.7-1.1.i386
Installing libXrandr - 1.1.1-3.1.i386
Installing libXinerama - 1.0.1-2.1.i386
Installing libXres - 1.0.1-3.1.i386
Installing libXxf86vm - 1.0.1-3.1.i386
Installing startup-notification - 0.8-4.1.i386
Installing libXt - 1.0.2-3.1.fc6.i386
Installing anacron - 2.3-45.el5.centos.i386
Installing grub - 0.97-13.i386
Installing aspell-en - 50:6.0-2.1.i386
Installing crash - 4.0-4.6.1.i386
Installing iptstate - 1.4-1.1.2.2.i386
Installing jwhois - 3.2.3-8.el5.i386
Installing ftp - 0.17-33.fc6.i386
Installing nano - 1.3.12-1.1.i386
Installing mtr - 2:0.71-3.1.i386
Installing telnet - 1:0.17-38.el5.i386
Installing talk - 0.17-29.2.2.i386
Installing mgetty - 1.1.33-9.fc6.i386
Installing gpm - 1.20.1-74.1.i386
Installing unzip - 5.52-2.2.1.i386
Installing ibmasm - 3.0-9.i386
Installing cpuspeed - 1:1.2.1-1.48.el5.i386
Installing nc - 1.84-10.fc6.i386
Installing dump - 0.4b41-2.fc6.i386
Installing libhugetlbfs - 1.0.1-1.el5.i386
Installing sysfsutils - 2.0.0-6.i386
Installing numactl - 0.9.8-2.el5.i386
Installing fbset - 2.1-22.i386
Installing acl - 2.2.39-2.1.el5.i386
Installing rsync - 2.6.8-3.1.i386
Installing attr - 2.4.32-1.1.i386
Installing cyrus-sasl-plain - 2.1.22-4.i386
Installing hdparm - 6.6-2.i386
Installing setserial - 2.17-19.2.2.i386
Installing traceroute - 3:2.0.1-2.el5.i386
Installing vconfig - 1.9-2.1.i386
Installing libaio - 0.3.106-3.2.i386
Installing finger - 0.17-32.2.1.1.i386
Installing rdate - 1.4-6.i386
Installing symlinks - 1.2-24.2.2.i386
Installing pam_smb - 1.1.7-7.2.1.i386
Installing dos2unix - 3.1-27.1.i386
Installing zip - 2.31-1.2.2.i386
Installing rsh - 0.17-37.el5.i386
Installing unix2dos - 2.2-26.2.2.i386
Installing tree - 1.5.0-4.i386
Installing pam_passwdqc - 1.0.2-1.2.2.i386
Installing rdist - 1:6.1.5-44.i386
Installing setarch - 2.0-1.1.i386
Installing eject - 2.1.5-4.2.el5.i386
Installing specspo - 13-1.el5.centos.noarch
Installing man-pages - 2.39-10.el5.noarch
Installing words - 3.0-9.noarch
Installing mailcap - 2.1.23-1.fc6.noarch
Installing gnu-efi - 3.0c-1.1.i386
Installing rootfiles - 8.1-1.1.1.noarch
Installing libselinux - 1.33.4-4.el5.i386
Installing shadow-utils - 2:4.0.17-12.el5.i386
Installing device-mapper - 1.02.20-1.el5.i386
Installing e2fsprogs-libs - 1.39-10.el5.i386
Installing findutils - 1:4.2.27-4.1.i386
Installing coreutils - 5.97-12.1.el5.i386
Installing krb5-libs - 1.6.1-17.el5.i386
Installing openssl - 0.9.8b-8.3.el5_0.2.i686
Installing python - 2.4.3-19.el5.i386
Installing openldap - 2.3.27-8.i386
Installing module-init-tools - 3.3-0.pre3.1.34.el5.i386
Installing newt - 0.52.2-9.i386
Installing rpm - 4.4.2-47.el5.i386
Installing fontconfig - 2.4.1-6.el5.i386
Installing cairo - 1.2.4-2.el5.i386
Installing hwdata - 0.211-1.noarch
Installing rhpl - 0.194.1-1.i386
Installing libxml2-python - 2.6.26-2.1.2.i386
Installing dbus - 1.0.0-6.el5.i386
Installing dbus-glib - 0.70-5.i386
Installing kpartx - 0.4.7-12.el5.i386
Installing psmisc - 22.2-5.i386
Installing dbus-python - 0.70-7.el5.i386
Installing pciutils - 2.2.3-4.i386
Installing libsemanage - 1.9.1-3.el5.i386
Installing audit-libs-python - 1.5.5-7.el5.i386
Installing libgssapi - 0.10-2.i386
Installing e2fsprogs - 1.39-10.el5.i386
Installing logrotate - 3.7.4-7.i386
Installing net-tools - 1.60-73.i386
Installing tar - 2:1.15.1-23.0.1.el5.i386
Installing rpm-libs - 4.4.2-47.el5.i386
Installing rpm-python - 4.4.2-47.el5.i386
Installing nfs-utils-lib - 1.0.8-7.2.z2.i386
Installing audit - 1.5.5-7.el5.i386
Installing dmraid - 1.0.0.rc13-4.el5.i386
Installing device-mapper-multipath - 0.4.7-12.el5.i386
Installing libXft - 2.1.10-1.1.i386
Installing pango - 1.14.9-3.el5.centos.i386
Installing gtk2 - 2.10.4-19.el5.i386
Installing GConf2 - 2.14.0-9.el5.i386
Installing libwnck - 2.16.0-4.fc6.i386
Installing notification-daemon - 0.3.5-8.el5.i386
Installing libnotify - 0.4.2-6.el5.i386
Installing bluez-gnome - 0.5-5.fc6.i386
Installing paps - 0.6.6-17.el5.i386
Installing man - 1.6d-1.1.i386
Installing system-config-securitylevel-tui - 1.6.29.1-1.el5.i386
Installing ntsysv - 1.3.30.1-1.i386
Installing m2crypto - 0.16-6.el5.1.i386
Installing python-urlgrabber - 3.1.0-2.noarch
Installing libselinux-python - 1.33.4-4.el5.i386
Installing pygobject2 - 2.12.1-5.el5.i386
Installing yum-metadata-parser - 1.0-8.fc6.i386
Installing python-elementtree - 1.2.6-5.i386
Installing python-sqlite - 1.1.7-1.2.1.i386
Installing cracklib - 2.8.9-3.3.i386
Installing pam - 0.99.6.2-3.26.el5.i386
Installing SysVinit - 2.86-14.i386
Installing initscripts - 8.45.17.EL-1.el5.centos.1.i386
Installing dhclient - 12:3.0.5-7.el5.i386
Installing libuser - 0.54.7-2.el5.2.i386
Installing passwd - 0.73-1.i386
Installing usermode - 1.88-3.el5.i386
Installing authconfig - 5.3.12-2.el5.i386
Installing kbd - 1.12-19.el5.i386
Installing dhcdbd - 2.2-1.el5.i386
Installing sysklogd - 1.4.1-40.el5.i386
Installing vixie-cron - 4:4.1-72.el5.i386
Installing yum - 3.0.5-1.el5.centos.5.noarch
Installing cyrus-sasl - 2.1.22-4.i386
Installing sendmail - 8.13.8-2.el5.i386
Installing mcstrans - 0.2.6-1.el5.i386
Installing cups - 1:1.2.4-11.14.el5.i386
Installing at - 3.1.8-82.fc6.i386
Installing gettext - 0.14.6-4.el5.i386
Installing wpa_supplicant - 1:0.4.8-10.1.fc6.i386
Installing bind-libs - 30:9.3.3-10.el5.i386
Installing curl - 7.15.5-2.el5.i386
Installing libpcap - 14:0.9.4-11.el5.i386
Installing ppp - 2.4.4-1.el5.i386
Installing tcsh - 6.14-12.el5.i386
Installing mtools - 3.9.10-2.fc6.i386
Installing syslinux - 3.11-4.i386
Installing nscd - 2.5-18.i386
Installing cryptsetup-luks - 1.0.3-2.2.el5.i386
Installing lvm2 - 2.02.26-3.el5.i386
Installing MAKEDEV - 3.23-1.2.i386
Installing udev - 095-14.9.el5.i386
Installing util-linux - 2.13-0.45.el5.i386
Installing policycoreutils - 1.33.12-12.el5.i386
Installing mkinitrd - 5.1.19.6-19.i386
Installing openssh - 4.3p2-24.el5.i386
Installing portmap - 4.0-65.2.2.1.i386
Installing ypbind - 3:1.19-8.el5.i386
Installing kernel - 2.6.18-53.el5.i686
Installing selinux-policy - 2.4.6-104.el5.noarch
Installing which - 2.16-7.i386
Installing htmlview - 4.0.0-1.el5.noarch
Installing vim-minimal - 2:7.0.109-3.el5.3.i386
Installing mesa-libGL - 6.5.1-7.5.el5.i386
Installing RedHat-lsb - 3.1-12.3.EL.el5.centos.i386
Installing sudo - 1.6.8p12-10.i386
Installing pinfo - 0.6.9-1.fc6.i386
Installing selinux-policy-targeted - 2.4.6-104.el5.noarch
Installing pcmciautils - 014-5.i386
Installing yp-tools - 2.9-0.1.i386
Installing nfs-utils - 1:1.0.9-24.el5.i386
Installing openssh-clients - 4.3p2-24.el5.i386
Installing openssh-server - 4.3p2-24.el5.i386
Installing mkbootdisk - 1.5.3-2.1.i386
Installing setools - 3.0-3.el5.i386
Installing prelink - 0.3.9-2.1.i386
Installing krb5-workstation - 1.6.1-17.el5.i386
Installing nss_ldap - 253-5.el5.i386
Installing rp-pppoe - 3.5-32.1.i386
Installing gnupg - 1.4.5-13.i386
Installing bind-utils - 30:9.3.3-10.el5.i386
Installing mdadm - 2.5.4-3.el5.i386
Installing yum-updatesd - 3.0.5-1.el5.centos.5.noarch
Installing setuptool - 1.19.2-1.el5.centos.i386
Installing dhcpv6_client - 0.10-33.el5.i386
Installing quota - 1:3.13-1.2.3.2.el5.i386
Installing acpid - 1.0.4-5.i386
Installing irqbalance - 2:0.55-6.el5.i386
Installing microcode_ctl - 1:1.17-1.42.el5.i386
Installing ipsec-tools - 0.6.5-8.el5.i386
Installing rng-utils - 1:2.0-1.14.1.fc6.i386
Installing bluez-utils - 3.7-2.el5.centos.i386
Installing pam_pkcs11 - 0.5.3-23.i386
Installing pam_ccreds - 3-5.i386
Installing pam_krb5 - 2.2.14-1.i386
Installing amtu - 1.0.4-4.i386
Installing conman - 0.1.9.2-8.el5.i386
Installing tmpwatch - 2.9.7-1.1.el5.1.i386
Installing sos - 1.7-9.1.el5.noarch
Installing usbutils - 0.71-2.1.i386
Installing irda-utils - 0.9.17-2.fc6.i386
Installing autofs - 1:5.0.1-0.rc2.55.i386
Installing lftp - 3.5.1-2.fc6.i386
Installing stunnel - 4.15-2.i386
Installing wget - 1.10.2-7.el5.i386
Installing tcpdump - 14:3.9.4-11.el5.i386
Installing pkinit-nss - 0.7.3-1.el5.i386
Installing Deployment_Guide-en-US - 5.1.0-11.el5.centos.1.noarch
Installing psacct - 6.3.2-41.1.i386
Installing readahead - 1:1.3-7.el5.i386
Installing ksh - 20060214-1.4.i386
Installing logwatch - 7.3-5.noarch
Installing parted - 1.8.1-12.el5.i386
Installing libutempter - 1.1.4-3.fc6.i386
Installing mlocate - 0.15-1.el5.i386
Installing lsof - 4.78-3.i386
Installing nss_db - 2.2-35.1.i386
Installing hal - 0.5.8.1-25.el5.i386
Installing pcsc-lite - 1.3.1-7.i386
Installing ifd-egate - 0.05-15.i386
Installing pm-utils - 0.99.3-6.el5.centos.17.i386
Installing ccid - 1.0.1-6.el5.i386
Installing kudzu - 1.2.57.1.15-1.el5.centos.i386
Installing system-config-network-tui - 1.3.99-2.el5.noarch
Installing apmd - 1:3.2.2-5.i386
Installing coolkey - 1.1.0-5.el5.i386
Installing firstboot-tui - 1.4.27.3-1.el5.centos.noarch
Installing NetworkManager - 1:0.6.4-6.el5.i386
Installing oddjob - 0.27-7.i386
Installing smartmontools - 1:5.36-3.1.el5.i386
Installing oddjob-libs - 0.27-7.i386
Installing Deployment_Guide-en-US - 5.1.0-11.el5.centos.1.noarch