预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共12页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

RedHatLinuxAS4下整合安装mysql-5.1.37、apache-2.2.13、php-5.3.0与zendoptions并支持GD库以下所有操作请注意是在root账号权限下执行。一、准备工作:首先查看系统中是否已经安装了GD环境:[root@localhost~]#rpm-qa|grepzlib[root@localhost~]#rpm-qa|greplibpng[root@localhost~]#rpm-qa|grepfreetype[root@localhost~]#rpm-qa|grepjpeg[root@localhost~]#rpm-qa|grepgd如果没有安装的话可以按照下面的步骤手动安装:1.1安装zlib[root@localhost~]#tarzxvfzlib-1.2.2.tar.gz[root@localhost~]#cdzlib-1.2.2[root@localhost~]#./configure[root@localhost~]#make[root@localhost~]#makeinstall1.2安装libpng[root@localhost~]#tarzxvflibpng-1.2.7.tar.tar[root@localhost~]#cdlibpng-1.2.7[root@localhost~]#cdscripts/[root@localhost~]#mvmakefile.linux../makefile[root@localhost~]#cd..[root@localhost~]#make[root@localhost~]#makeinstall注意这里的makefile不是用./configure生成而是直接从scripts/里复制一个。1.3安装freetype[root@localhost~]#tarzxvffreetype-2.1.9.tar.gz[root@localhost~]#cdfreetype-2.1.9[root@localhost~]#./configure[root@localhost~]#make[root@localhost~]#makeinstall[/quote]1.4安装Jpeg[root@localhost~]#tarzxvfjpegsrc.v6b.tar.gz[root@localhost~]#cdjpeg-6b/[root@localhost~]#./configure--enable-shared[root@localhost~]#make[root@localhost~]#maketest[root@localhost~]#makeinstall注意:这里configure一定要带--enable-shared参数不然不会生成共享库1.5安装GD[root@localhost~]#tarzxvfgd-2.0.33.tar.gz[root@localhost~]#cdgd-2.0.33[root@localhost~]#./configure--with-png--with-freetype--with-jpeg[root@localhost~]#makeinstall二、安装mysql2.1解压缩[root@localhost~]#unzipmysql-5.1.37.zip[root@localhost~]#cdmysql-5.1.372.2创建MYSQL用户和组[root@localhostmysql-5.1.37]#groupaddmysql[root@localhostmysql-5.1.37]#useradd-gmysqlmysql2.3编译前配置mysql安装路径为/usr/local/mysql[root@localhostmysql-5.1.37]#./configure--prefix=/usr/local/mysql2.4开始编译[root@localhostmysql-5.1.37]#make2.5安装[root@localhostmysql-5.1.37]#makeinstall2.6数据库初始化相关操作[root@localhostmysql-5.1.37]#cdscripts/[root@localhostscripts]#./mysql_install_db--user=mysql[root@localhosts