For more information about mount usage, see http://blog.haohtml.com/archives/9583. you can use the Centos DVD as the software yum source to install the software. 1. mount CDROM.
Mkdir/mnt/cdrommount-t auto/dev/cdrom/mnt/cdrom
For more information about mount usage, see mount.
Cd/etc/yum. repos. d/
Mv CentOS-Base.repo CentOS-Base.repo.bakvi CentOS-Media.repo
Delete the last two rows of the following three rows
Baseurl = file: // media/CentOS/file: // media/cdrom/file: // media/cdrecorder/
The first line is changed to the path of the attached disk, as follows:
Baseurl = file: // mnt/cdrom/
Then, find this attribute and change the value to 1, so that the enable switch of the local source file is enabled. Enabled = 0
Changed to enabled = 1
Save it. if you use the yum command to install the software, the software will be directly installed from the DVD. Gpgkey = file: // etc/pki/rpm-jpg/RPM-GPG-KEY-CentOS-5 note: Here is the authentication file named RPM-GPG-KEY in the designated disc
# Yum clean all
# Yum makecache
If you want to install LNMP, there is no way to use it. no software is available in the DVD.
Installation tutorial: install lnmp in CentOS (Nginx + PHP + MySQL)
======================= Meaningless separator ============================ =====
Configure yum repository (RedHat)
Vi/etc/yum. repos. d/install. repo (install. repo is custom, but it must end with repo before the system can recognize) [rhel-ClusterStorage] (repository name) name = rhel-ClusterStorage (description) baseurl = file: /// mnt/ClusterStorage (source installation, ftp or http format can also be used) enabled = 1 (whether to enable this repository, 1 is enabled, 0 is not enabled) gpgcheck = 1 (1 indicates detecting gpgkey, 0 indicates not detecting) gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release)