? ? 1. Hardware environment:
? ?
? ? hard disk:Memory of 9.2 G; :Net of 128 M; gets stuck:EEpor100
? ?
? ? 2. Software
? ?
? ? operating system:RedHat 6.2
? ?
? ? 3. Optimize RedHat 6.2
? ?
When ? ? is installed, choose
? ? Ftp and Dns
? ?
? ? compiles a document / Etc/hosts
? ?
? ? instead:
? ? 202.104.131.100 Info.langoit.com.cn Info
? ?
? ? compiles a document / Etc/named.conf
? ?
? ? instead:
? ?
? ? / / Generated By Named-bootconf.pl
? ?
? ? Options {
? ? Directory "/var/named";
? ? Forwarders {202.104.131.98;};
? ? Forwards Only;
? ? / / Query-source Address * Port 53;
? ? };
? ?
? ? / /
? ? / / A Caching Only Nameserver Config
? ? / /
? ? Zone " . ? ? Zone " .. In {
? ? Type Hint;
? ? File "named.ca";
? ? };
? ?
? ? Zone "0.0.127.in-addr.arpa" In {
? ? Type Master;
? ? File "named.local";
? ? };
? ?
? ?
? ? compiles a document / Etc/resolv.conf
? ?
? ? instead:
? ? Search Langoit.com.cn
? ? Nameserver 202.104.131.98
? ? Nameserver 202.96.134.133
? ?
? ? optimizes Linux kernel:
? ?
? ? deletes the Rpm that do not have to wrap:
? ?
? ? should stop the course that running above all
? ?
? ? Cd /etc/rc.d/init.d
? ?
? ? . / Sendmail Stop
? ? . / Apmd Stop
? ? . / Kudzu Stop
? ?
? ? Rpm -e- - Nodeps Sendmail Kudzu Nfs-utils
? ?
? ? compiles a document / Usr/src/linux/include/linux/tasks.h
? ?
? ? edits four the tenth (Vi +14) :
? ?
? ? NR_TASKS 5120---%26gt;3072
? ? MIN_TASKS_LEFT_FOR_ROOT 16---%26gt;24
? ?
? ? compiles a document / Usr/src/linux/Makefile
? ?
? ? edits eight the tenth (Vi +18) :
? ?
? ? HOSTCC =gcc
? ?---%26gt;
? ? HOSTCC =egcs
? ?
? ? edits the second ten the five elements (Vi +25) :
? ?
? ? CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH)
? ?---%26gt;
? ? CC =$(CROSS_COMPILE)egcs -D__KERNEL__ -I$(HPATH)
? ?
? ? edits ten the nineth (Vi +90) :
? ?
? ? CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
? ?---%26gt;
? ? CFLAGS = -Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu=
? ? Pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions
? ?
? ? edits nine the tenth (Vi +19) :
? ?
? ? HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
? ?---%26gt;
? ? HOSTCFLAGS =-Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu=
? ? Pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions
? ?
? ? installs a kernel:
? ?
? ? Make Xconfig
? ?
? ? is specific but oneself are installed according to the system
? ?
? ? is in / below Usr/src/linux/ catalog
? ?
? ? Make Dep
? ? Make Clean
? ? Make Bzlilo
? ? Make Modules
? ? Make Modules_install
? ?
? ? 4. Install and optimize Mm, mysql, apache, php, phpMyAdmin, perl, mode_perl
? ?
File of ? ? 1)
? ? Mm: Mm-1.1.3.tar.gz
? ? Mysql: Mysql-3.22.32.tar.gz
? ? Apache: Apache_1.3.12.tar.gz
? ? Php: Php-4.0.0.2.0.5.tar.gz
? ? PhpMyAdmin: PhpMyAdmin_2.0.5.tar.gz
? ? Mode_perl: Mod_perl-1.24.tar.gz
? ? Perl-DBI: DBI-1.14.tar.gz
? ? DBD-Oracle-1.06.tar.gz
? ? Msql-Mysql-modules-1.2214.tar.gz
? ? Data-Dumper-2.101.tar.gz
? ? Data-ShowTable-3.3.tar.gz
? ? Eperl: Eperl-2.2.14.tar.gz
? ? Perl: Perl-5.6.0.tar.gz
? ?
? ? solution controls a file:
? ?
Name of file of ? ? Tar -zxpf
? ?
? ? notices:The following all be compiled beforehand and below the software list that installation is wanting to install
? ?
? ? #) installs Mm
? ? . / Configure \
? ?- - Disable-shared \
? ?- - Prefix=/usr
? ? Make
? ? Make Test
? ? Make Install
? ? Make Clean
? ?
The installation of #) Mysql mixes ? ? configuration
? ?
? ? of #) Mysql compile beforehand
? ?
? ? CC="egcs" \
? ? OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
? ? - March=pentiumpro -fomit-frame-pointer -fno-exceptions" \
? ? . / Configure \
? ?- - Prefix=/mysql \
? ?
? ? #) installs Mysql
? ?
? ? Make
? ? Make Install
? ? Make Clean
? ?
? ? #) configures Mysql
? ?
? ? / Mysql/bin/mysql_install_db
? ?
Database of ? ? initialization
? ? Cp /mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql
? ? Cd /etc/rc.d/rc3.d
? ? Ln -s. . / Init.d/mysql S70mysql
? ?
Mysql of the to load when ? ? system is started
? ?
Of ? ? #) Apache compile beforehand
? ?
? ? CC="egcs" \
? ? OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
? ? - March=pentiumpro -fomit-frame-pointer -fno-exceptions" \
? ? CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
? ? . / Configure \
? ?- - Prefix=/apache \
? ?
Of ? ? #) Php compile beforehand
? ?
? ? CC="egcs" \
? ? OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
? ? - March=pentiumpro -fomit-frame-pointer -fno-exceptions" \
? ? . / Configure \
? ?- - Prefix=/usr \
? ?- - With-apache= . . / Apache_1.3.12 \
? ?- - Enable-safe-mode \
? ?- - With-mm \
? ?- - Enable-inline-optimization \
? ?- - Enable-memory-limit \
? ?- - Enable-track-vars \
? ?- - With-mysql=/mysql \
? ?
? ? #) installs Php
? ?
? ? Make
? ? Make Install
? ? Make Clean
? ?
Of ? ? #) Mode_perl compile beforehand
? ?
? ? Perl Makefile.PL \
? ? EVERYTHING=1 \
? ? APACHE_SRC= . . / Apache_1.3.12/src \
? ? USE_APACI=1 \
? ? DO_HTTPD=1
? ?
? ? #) installs Mod_perl
? ?
? ? Make
? ? Make Install
? ? Make Clean
? ?
? ? #) compiles Apache
? ?
? ? EAPI_MM=SYSTEM \
? ? CC="egcs" \
? ? OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro \
? ? - March=pentiumpro -fomit-frame-pointer -fno-exceptions" \
? ? CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
? ? . / Configure \
? ?- - Prefix=/apache \
? ?- - Activate-module=src/modules/php4/libphp4.a \
? ?- - Enable-module=php4 \
? ?- - Activate-module=src/modules/perl/libperl.a \
? ?- - Enable-module=perl
? ?
? ? #) installs Apache
? ?
? ? Make
? ? Make Install
? ? Make Clean
? ?
? ? Cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
? ? Cd /etc/rc.d/rc3.d
? ? Ln -s. . / Init.d/httpd S80httpd
? ?
Apache of the to load when ? ? system is started
? ?
? ? #) installs Eperl
? ?
? ? Perl Makefile.PL
? ?
? ? Make
? ? Make Test
? ? Make Install
? ? Make Clean
? ? - Frame-pointer -fno-exceptions" \
? ? CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
? ? . / Configure \
? ?- - Prefix=/apache \
? ?- - Activate-module=src/modules/php4/libphp4.a \
? ?- - Enable-module=php4 \
? ?- - Activate-module=src/modules/perl/libperl.a \
? ?- - Enable-module=perl
? ?
? ? #) installs Apache
? ?
? ? Make
? ? Make Install
? ? Make Clean
? ?
? ? Cp /apache/bin/apachectl /etc/rc.d/init.d/httpd
? ? Cd /etc/rc.d/rc3.d
? ? Ln -s. . / Init.d/httpd S80httpd
? ?
Apache of the to load when ? ? system is started
? ?
? ? #) installs Eperl
? ?
? ? Perl Makefile.PL
? ?
? ? Make
? ? Make Test
? ? Make Install
? ? Make Clean
? ?
? ?
? ? Make
? ? Make Test
? ? Make Install
? ? Make Clean
? ? Make Clean
...