IBM-T20 最小化安装服务器CentOS 5.0过程
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
推荐阅读
-
IBM-T20 最小化安装服务器CentOS 5.0过程
-
Centos7.4服务器安装apache及安装过程出现的问题解决方法
-
CentOS 7系统下安装ftp服务器的全过程
-
CentOS 6.5上编译安装Apache服务器的方法(最小化安装)
-
IBM-T20 最小化安装服务器CentOS 5.0过程
-
centos 7.0最小化安装nginx 源代码编译安装 过程都记录下来了 不能访问 这是什么原因?
-
Centos7.4服务器安装apache及安装过程出现的问题解决方法
-
CentOS 70 安装配置LAMP服务器过程 Apache+PHP+MariaDB (MariaDB可以认为就是mysql)
-
使用XShell在腾讯云服务器Centos7上安装JDK过程
-
CentOS 70 安装配置LAMP服务器过程 Apache+PHP+MariaDB (MariaDB可以认为就是mysql)