在RedHat 7.2上,假设所有安装程序包都下在/pub下面,源码包都用红色表示,假设在telnet或ssh文本界面下进行如下所有操作。1. Installtarget=_blank>J2SDK 1.41. 下载 J2SDK1.4 的 Linux RPM版本 j2sdk-1_4_0-linux-i386-rpm.bin2. cd /pub3. chmod +x j2sdk-1_4_0-linux-i386-rpm.bin4. ./j2sdk-1_4_0-linux-i386-rpm.bin5. rpm -ivh j2sdk-1_4_0-fcs-linux-i386.rpm6. vi /etc/profile 增加如下内容:JAVA_HOME=/usr/java/j2sdk1.4.0export JAVA_HOMECLASSPATH=/usr/java/j2sdk1.4.0/lib:/usr/java/j2sdk1.4.0/jre/libexport CLASSPATHPATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/binexport PATH7. 重新登录让环境变量生效2. Installtarget=_blank>Tomcat 4.01. 下载Tomcat的linux binary版本,以及 mod_webapp.so2. tar zxvf jakarta-tomcat-4.0.3.tar.gz3. 做 /pub/jakarta-tomcat-4.0.3/conf 目录下面server.xml中的其他相关配置(暂时不做也可以)4. /pub/jakarta-tomcat-4.0.3/bin/startup.sh启动 Tomcat 服务,并且将它加到系统的启动程序中/etc/rc.d/rc.local(用/pub/jakarta-tomcat-4.0.3/bin/shutdown.sh停止Tomcat )3. Installtarget=_blank>MySQL1. groupadd mysql2. useradd -g mysql mysql3. tar zxvf mysql-3.23.49.tar.gz(or, gunzip
4. cd mysql-3.23.495. ./configure –prefix=/usr/local/mysql6. make7. make install8. scripts/mysql_install_db9. chown -R root /usr/local/mysql10. chown -R mysql /usr/local/mysql/var11. chgrp -R mysql /usr/local/mysql12. cp support-files/my-medium.cnf /etc/my.cnf13. cp scripts /usr/local/mysql -R14. cp support-files /usr/local/mysql -R15. cd /usr/local/mysql16. chmod +x support-files/mysql.server17. cp support-files/mysql.server /etc/rc.d/init.d/mysqld同时要设置 /etc/rc.d/init.d/mysqld 开机自动运行:ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S99mysqld18. /etc/rc.d/init.d/mysqld start启动 MySQL19. /usr/local/mysql/bin/mysqladmin -u root passwordew-password设置 MySQL root 口令4. Installtarget=_blank>OpenSSL1. cd /pub2. tar zxvf openssl-0.9.6b.tar.gz3. cd openssl-0.9.6b4. ./config5. make6. make test7. make install5. Installtarget=_blank>mod_ssl1. cd /pub2. tar zxvf mod_ssl-2.8.8-1.3.24.tar.gz3. tar zxvf apache_1.3.24.tar.gz(from www.apache.org)4. cd mod_ssl-2.8.8-1.3.245. ./configure –with-apache=../apache_1.3.246. cd ../apache_1.3.247. ./configure –prefix=/www6. Installhref=”ftp://ftp.cac.washington.edu/imap/” target=_blank>IMAP support1. cd /pub2. tar zxvf imap-2001a.tar.Z3. cd imap-2001a4. make slx (for Linux)5. 修改 /etc/services 注册端口,修改 /etc/inetd.conf 开启服务6. cp c-client/c-client.a /usr/local/lib/libc-client.a7. cp c-client/rfc822.h /usr/local/include8. cp c-client/mail.h /usr/local/include9. cp c-client/linkage.h /usr/local/include7. Installtarget=_blank>CURL support1. cd /pub2. tar zxvf curl-7.9.6.tar.gz3. cd curl-7.9.64. ./configure –with-ssl –with-prefix=/usr/local/curl5. make6. make test7. make install8. Installtarget=_blank>GD support1. Installtarget=_blank>zlib support1. cd /pub2. tar zxvf zlib-1.1.3.tar.gz3. cd zlib-1.1.34. ./configure5. make6. make test7. make install2. Installtarget=_blank>libpng support1. cd /pub2. tar zxvf libpng-1.0.10.tar.gz3. cd libpng-1.0.104. cp scripts/makefile.linux makefile5. vi makefile修改其中ZLIBLIB=/usr/local/libZLIBINC=/usr/local/include参数6. make test7. make install3. Install jpeg-6bsupport1. cd /pub2. tar zxvf jpegsrc.v6b.tar.gz3. cd jpeg-6b4. ./configure5. make6. make test7. make install8. make install-lib4. Install FreeType2.0.1 support1. cd /pub2. tar zxvf freetype-2.0.1.tar.gz3. cd freetype-2.0.14. make setup5. make6. make install5. Install GDsupport1. cd /pub2. tar zxvf gd-1.8.4.tar.gz3. cd gd-1.8.44. vi Makefile修改其中CFLAGS=-O -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPELIBS=-lgd -lpng -lz -ljpeg -lfreetype -lmINCLUDEDIRS=-I. -I/usr/local/include/freetype2 -I/usr/include/X11-I/usr/X11R6/include/X11 -I/usr/local/include5. make6. make install9. Installtarget=_blank>PHP1. cd /pub2. tar zxvf php-4.2.0.tar.gz3. cd php-4.2.04.CFLAGS=-O2 -I/usr/local/ssl/include./configure –with-apache=../apache_1.3.24–enable-memory-limit=yes–with-config-file-path=/usr/local/lib –with-imap –enable-ftp–with-mysql=/usr/local/mysql–enable-sockets –enable-debug=no –enable-track-vars–with-gd=/usr/local–with-jpeg-dir=/usr/local –with-png-dir=/usr/local–with-curl=/usr/local/curl–with-zlib –with-ttf –with-java5. make6. make install7. cp php.ini-dist /usr/local/lib/php.ini8. 修改 /usr/local/lib/php.ini10.Installtarget=_blank>Zend Optimizer (这步可在最后完成)1. cd /pub2. tar zxvf ZendOptimizer-1[1].2.0-PHP_4.1.0-Linux_glibc21-i386.tar.gz3. cd ZendOptimizer-1.2.0-PHP_4.1.0-Linux_glibc21-i3864. mkdir /usr/local/Zend5. mkdir /usr/local/Zend/lib6. ./install.sh11. Installtarget=_blank>Zend Cache (用在等于或低于 PHP 4.0.5版本,要注册码,这步可在最后完成)1. cd /pub2. tar zxvf ZendCache-1[1].1.0b-PHP_4.0.5-Linux_glibc2.1-i386.tar.gz3. cd ZendCache-1.1.0b-PHP_4.0.5-Linux_glibc2.1-i3864. cp data/ZendCache.so /usr/local/Zend/lib5. ( cp zend_cache.dat /usr/local/Zend ) // to registerlicense6. Add the following lines to your php.ini file;do not add any extra spaces or tabs; must after Zend Optimizer configuration:zend_cache.use_cwd=1zend_cache.memory_consumption=16 ; 16MBzend_cache.validate_timestamps=1zend_extension=”/usr/l开发云主机域名ocal/Zend/lib/ZendCache.so”12. Install ZendAccelerator (用在php 4.0.5以上php 4.2.0以下,要注册码哦,这步可在最后完成)1. cd /pub2. tar xvf ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i386.tar3. cd ZendAccelerator-2.0.0-PHP_4.0.5-Linux_glibc21-i3864. ./install.sh13. Install Apache1. cd ../apache_1.3.242.SSL_BASE=/usr/local/ssl ./configure–prefix=/www –enable-module=ssl –enable-module=so–activate-module=src/modules/php4/libphp4.a–enable-rule=SSL_SDBM –enable-module=rewrite3. make4. make certificate5. make install6. 修改 /www/conf/httpd.conf,Options Indexes FollowSymLinks MultiViews -> Options FollowSymLinks MultiViewsDirectoryIndex index.html -> DirectoryIndex index.html index.php3 index.php增加LoadModule webapp_module libexec/mod_webapp.soWebAppConnection warpConnection warp localhost:8008WebAppDeploy examples warpConnection /examples/7. vi /www/conf/mime.types 增加application/x-httpd-php php php38. 拷贝下载的 mod_webapp.so 到 /www/libexec9. 启动Apache/www/bin/apachectl startssl10. vi /etc/rc.d/init.d/httpd (可选)#!/bin/sh. /etc/rc.d/init.d/functionscase “$1” instart)echo -n “Starting httpd with SSL : “/www/bin/apachectl startssl;;stop)echo -n “Shutting down httpd: “/www/bin/apachectl stop;;restart)echo -n “Restarting httpd: “/www/bin/apachectl restart;;status)echo -n “Show httpd status: “/www/bin/apachectl status;;*)echo “Usage: $0 {start|stop|restart|status}”exit 1esacexit 011. ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S99httpd (开机自动运行)14. 最后测试1. 在/www/htdocs/下写个test.php,内容:,2. http://localhost/test.php,看看有没有很多php信息出来,如果有,说明php/mysql等都没有问题了。如果有“withZend Optimizer v1.2.0, Copyright (c) 1998-2001, by Zend Technologies”,说明ZendOptimizer装好了。如果有“with Zend Cache v1.1.0, Copyright (c) 1999-2001, by ZendTechnologies”,说明Zend Cache装好了。同理,看Zend Accelerator装好没有。3. 访问http://localhost/examples/jsp/index.html,有很多jsp的例子,运行看看有没有问题。恭喜你,jsp也可以了
相关推荐: MySQL 8.0.2 新特性 UNDO表空间管理的灵活性提升
作者微开发云主机域名信公众号(持续更新)相关推荐: MySQL的物理存储结构和session生命周期MySQL的物理存储结构 (1).数据的组织形式–索引 (2).数据的row存储 变长字段的存储: 可变长度列在评估字段大小时还要考虑存储列实际长度的字节数。…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。