Linux下安PHP,APACHE,MYSQL,PERL方法
点击次数:25 次 发布日期:2008-11-28 05:57:21 作者:源代码网
|
源代码网推荐 源代码网推荐 1.硬件环境: 源代码网推荐 源代码网推荐 硬盘:9.2 G ; 内存:128 M ; 网卡:EEpor100 源代码网推荐 源代码网推荐 2.软件 源代码网推荐 源代码网推荐 操作系统: RedHat 6.2 源代码网推荐 源代码网推荐 3.优化RedHat 6.2 源代码网推荐 源代码网推荐 安装时选择 源代码网推荐 ftp 和 dns 源代码网推荐 源代码网推荐 编辑文件 /etc/hosts 源代码网推荐 源代码网推荐 改为: 源代码网推荐 202.104.131.100 info.langoit.com.cn info 源代码网推荐 源代码网推荐 编辑文件 /etc/named.conf 源代码网推荐 源代码网推荐 改为: 源代码网推荐 源代码网推荐 // 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 "." in { 源代码网推荐 type hint; 源代码网推荐 file "named.ca"; 源代码网推荐 }; 源代码网推荐 源代码网推荐 zone "0.0.127.in-addr.arpa" in { 源代码网推荐 type master; 源代码网推荐 file "named.local"; 源代码网推荐 }; 源代码网推荐 源代码网推荐 源代码网推荐 编辑文件 /etc/resolv.conf 源代码网推荐 源代码网推荐 改为: 源代码网推荐 search langoit.com.cn 源代码网推荐 nameserver 202.104.131.98 源代码网推荐 nameserver 202.96.134.133 源代码网推荐 源代码网推荐 优化linux 内核: 源代码网推荐 源代码网推荐 删除没有的rpm 包: 源代码网推荐 源代码网推荐 首先要停止正在运行的进程 源代码网推荐 源代码网推荐 cd /etc/rc.d/init.d 源代码网推荐 源代码网推荐 ./sendmail stop 源代码网推荐 ./apmd stop 源代码网推荐 ./kudzu stop 源代码网推荐 源代码网推荐 rpm -e --nodeps sendmail kudzu nfs-utils 源代码网推荐 源代码网推荐 编辑文件 /usr/src/linux/include/linux/tasks.h 源代码网推荐 源代码网推荐 编辑第十四行 (vi +14 ) : 源代码网推荐 源代码网推荐 NR_TASKS 5120 ---> 3072 源代码网推荐 MIN_TASKS_LEFT_FOR_ROOT 16 ---> 24 源代码网推荐 源代码网推荐 编辑文件 /usr/src/linux/Makefile 源代码网推荐 源代码网推荐 编辑第十八行 (vi +18 ) : 源代码网推荐 源代码网推荐 HOSTCC =gcc 源代码网推荐 ---> 源代码网推荐 HOSTCC =egcs 源代码网推荐 源代码网推荐 编辑第二十五行 (vi +25 ) : 源代码网推荐 源代码网推荐 CC =$(CROSS_COMPILE)gcc -D__KERNEL__ -I$(HPATH) 源代码网推荐 ---> 源代码网推荐 CC =$(CROSS_COMPILE)egcs -D__KERNEL__ -I$(HPATH) 源代码网推荐 源代码网推荐 编辑第九十行 (vi +90 ) : 源代码网推荐 源代码网推荐 CFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer 源代码网推荐 ---> 源代码网推荐 CFLAGS = -Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu= 源代码网推荐 pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions 源代码网推荐 源代码网推荐 编辑第十九行 (vi +19 ) : 源代码网推荐 源代码网推荐 HOSTCFLAGS =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer 源代码网推荐 ---> 源代码网推荐 HOSTCFLAGS =-Wall -Wstrict-prototypes -O9 -funroll-loops -ffast-math -malign-double -mcpu= 源代码网推荐 pentiumpro -march=pentiumpro -fomit-frame-pointer -fno-exceptions 源代码网推荐 源代码网推荐 设置内核: 源代码网推荐 源代码网推荐 make xconfig 源代码网推荐 源代码网推荐 具体可自己根据系统来设置 源代码网推荐 源代码网推荐 在 /usr/src/linux/ 目录下 源代码网推荐 源代码网推荐 make dep 源代码网推荐 make clean 源代码网推荐 make bzlilo 源代码网推荐 make modules 源代码网推荐 make modules_install 源代码网推荐 源代码网推荐 4.安装和优化mm,mysql,apache,php,phpMyAdmin,perl,mode_perl 源代码网推荐 源代码网推荐 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 源代码网推荐 源代码网推荐 解压文件: 源代码网推荐 源代码网推荐 tar -zxpf 文件名 源代码网推荐 源代码网推荐 注意:以下所有的预编译和安装必须在要安装的软件目录下 源代码网推荐 源代码网推荐 #) 安装mm 源代码网推荐 ./configure 源代码网推荐 --disable-shared 源代码网推荐 --prefix=/usr 源代码网推荐 make 源代码网推荐 make test 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 源代码网推荐 #) mysql的安装和配置 源代码网推荐 源代码网推荐 #) mysql的预编译 源代码网推荐 源代码网推荐 CC="egcs" 源代码网推荐 OPTIM="-O9 -funroll-loops -ffast-math -malign-double -mcpu=pentiumpro 源代码网推荐 -march=pentiumpro -fomit-frame-pointer -fno-exceptions" 源代码网推荐 ./configure 源代码网推荐 --prefix=/mysql 源代码网推荐 源代码网推荐 #) 安装mysql 源代码网推荐 源代码网推荐 make 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 源代码网推荐 #) 配置mysql 源代码网推荐 源代码网推荐 /mysql/bin/mysql_install_db 源代码网推荐 源代码网推荐 初始化数据库 源代码网推荐 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 源代码网推荐 源代码网推荐 #) apache 的预编译 源代码网推荐 源代码网推荐 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 源代码网推荐 源代码网推荐 #) php的预编译 源代码网推荐 源代码网推荐 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 源代码网推荐 源代码网推荐 #) 安装php 源代码网推荐 源代码网推荐 make 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 源代码网推荐 #) mode_perl 的预编译 源代码网推荐 源代码网推荐 perl Makefile.PL 源代码网推荐 EVERYTHING=1 源代码网推荐 APACHE_SRC=../apache_1.3.12/src 源代码网推荐 USE_APACI=1 源代码网推荐 DO_HTTPD=1 源代码网推荐 源代码网推荐 #) 安装mod_perl 源代码网推荐 源代码网推荐 make 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 源代码网推荐 #) 编译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 源代码网推荐 源代码网推荐 #) 安装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 源代码网推荐 源代码网推荐 #) 安装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 源代码网推荐 源代码网推荐 #) 安装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 源代码网推荐 源代码网推荐 #) 安装eperl 源代码网推荐 源代码网推荐 perl Makefile.PL 源代码网推荐 源代码网推荐 make 源代码网推荐 make test 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 源代码网推荐 源代码网推荐 make 源代码网推荐 make test 源代码网推荐 make install 源代码网推荐 make clean 源代码网推荐 make clean 源代码网推荐 源代码网推荐 源代码网推荐 源代码网推荐 源代码网供稿. |
