
A Principled Technologies test report 11
Red Hat Enterprise Linux 6: Performance advantages with an
open source software stack
parted /dev/sdd mkpart DS2 ext4 75GB 125GB
32. Create an ext4 file system on each of the seven partitions:
for i in $(seq 7); do
mkfs.ext4 /dev/sdd${i}
done
33. Create mount points for these seven file systems:
mkdir /ds2 /mysql
mkdir /mysql/{dat,log}0{1,2,3}
34. To mount these file systems at boot time, add the following lines to /etc/fstab:
/dev/sdd7 /ds2 ext4 defaults,noatime 1 2
/dev/sdd1 /mysql/dat01 ext4 defaults,noatime 1 2
/dev/sdd2 /mysql/dat02 ext4 defaults,noatime 1 2
/dev/sdd3 /mysql/dat03 ext4 defaults,noatime 1 2
/dev/sdd4 /mysql/log01 ext4 defaults,noatime 1 2
/dev/sdd5 /mysql/log02 ext4 defaults,noatime 1 2
/dev/sdd6 /mysql/log03 ext4 defaults,noatime 1 2
35. Mount them for this session as well:
mount /ds2 /mysql/dat* /mysql/log*
36. Next, install the software packages from the Red Hat Enterprise Linux 6.2 DVD for Apache Web Server, PHP, and
MySQL database.
37. Insert the Red Hat Enterprise Linux 6.2 x86_64 installation DVD, and mount it at /mnt:
mount -o ro /dev/cdrom /mnt
38. Create a yum repository file for this temporary package location by creating the file /etc/yum.repos.d/dvd.repo
and adding the following lines:
[Red Hat – DVD]
name=Red Hat Enterprise Linux $releasever - $basearch - dvd
baseurl=file:///mnt/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
skip-if-unavailable=1
39. Import the package-signing keys into RPM:
rpm –import /mnt/server/ RPM-GPG-KEY-redhat-release
rpm –import /mnt/server/ RPM-GPG-KEY-redhat-beta
40. Install the application packages and their dependencies:
yum install @web-server @mysql @mysql-client @php php-mysql unix2dos
Kommentare zu diesen Handbüchern