Home Database Mysql Tutorial apache+php+mysql+imap+ldap+jdk+tomcat的安装_MySQL

apache+php+mysql+imap+ldap+jdk+tomcat的安装_MySQL

Jun 01, 2016 pm 02:12 PM
apache tomcat Install server run

ApacheTomcatJDKLDAPIMAPmysql安装


  以下过程在redhat6.2 7.0下通过。
  使用软件:
  apache_1.3.19.tar.gz
  imap-2000c.tar.Z
  mod_jserv.so..so
  j2sdk-1_3_0_02-linux.bin
  mysql-3.23.33-pc-linux-gnu-i6862.tar.gz
  openldap-2.0.7.tar.gz
  php-4.0.4pl1.tar.gz
  jakarta-tomcat-3.3-m2.tar.gz
  phpMyAdmin_2.1.0.tar.gz
  
  
  以上软件可以在此用FTP下载:
  address:202.104.157.58
  name:hello
  password:hello
  
  
  一、下面以/home/hailang/ 目录为例:
  
  tar zxvf apache_1.3.19.tar.gz
  tar zxvf imap-2000c.tar.Z
  tar zxvf mod_jserv.so..so
  tar zxvf mysql-3.23.33-pc-linux-gnu-i6862.tar.gz
  tar zxvf openldap-2.0.7.tar.gz
  tar zxvf php-4.0.4pl1.tar.gz
  tar zxvf jakarta-tomcat-3.3-m2.tar.gz
  tar zxvf phpMyAdmin_2.1.0.tar.gz
  chmod a+X j2sdk-1_3_0_02-linux.bin 会生JSDK1.3的目录
  二、开始安装
  安装IMAP
  cd imap-2000c
  make slx
  cp imap/imapd /usr/sbin
  cp ipopd/ipop2d /usr/sbin
  cp ipopd/ipop3d /usr/sbin
  三、 安装LDAP
  cd ../openldap-2.0.7
  ./configure --prefix=/home/ldap
  --enable-dns --enable-cldap --enable-ldapd
  --enable-wrappers --enable-phonetic
  --enable-passwd --enable-shell
  make depend
  make
  make test
  su root -c 'make install'
  四、 安装MYSQL
  cd ../mysql.X.X
  ./configure --prefix=/home/mysql
  make
  make install
  scripts/mysql_install_db
  /home/mysql/bin/safa_mysqld &
  /home/mysql/bin/mysqladmin -u username password yourpassword
  自起动:
  cp /home/mysql/share/mysql/mysql.server /etc/rc.d/rc.local/mysql
  运行setup在系统一项中选择mysql
  
  
  五、 安装PHP4
  cd ../apache.1.3.19
  ./configure --prefix=/home/httpd
  cd ../php4.0.4
  ./configure --with-mysql=/home/mysql
  --with-apache=/home/hailang/apache源码
  --with-imap=/home/hailang/imap源码
  --with-ldap=/home/ldap
  --enable-track-vars
  make
  make install
  
  六、 安装apache
  cd ../apache.1.3.19
  ./configure --prefix=/home/httpd
  --activate-module=src/modules/php4/libphp4.a
  --enable-moudle=so(如果不要JSP支持可以不要)
  make
  make install
  cp ../php4.0.4/php.ini-dist /usr/local/lib/php.ini
  将/home/httpd/conf/httpd.conf文件中的
  # And for PHP 4.x, use:
  #AddType application/x-httpd-php .php
  #AddType application/x-httpd-php-source .phps
  改为:
  # And for PHP 4.x, use:
  #AddType application/x-httpd-php .php .php3
  #AddType application/x-httpd-php-source .phps
  将:
  
  DirectoryIndex index.html
  
  改为:
  
  DirectoryIndex index.html index.php index.php3 index.htm
  
  重起apache:
  /home/httpd/bin/apachectl start即可。
  如果出现问题请确定是否有原来安装的apache服务器。
  运行setup选择系统顶将 httpd项不选。重新起动机器。
  
  apache服务器的自起动:
  在/etc/rc.d/rc.local文件中加入:
  /home/httpd/bin/apachectl start
  
  七、安装JDK
  在/home目录下:
  ln -s hailang/jdk1.3 jdk
  ln -s jdk/jre
  
  设置$JAVA_HOME,$CLASSPATH
  vi /etc/profile
  加入:
  JAVA_HOME=/home/jdk
  export JAVA_HOME
  CLASSPATH=/home/jdk/lib:/home/jre/lib
  export CLASSPATH
  PATH=$PATH:/home/jdk/bin:/home/jre/bin
  注意,不能写错,要不出了问题可别找我。
  
  八、安装tomcat
  
  ln -s hailane/tomcat
  运行tomcat服务器
  tomcat/bin/tomcat.sh start
  停止:
  tomcat/bin/tomcat.sh stop
  运行http://localhost:8080
  如果看见了JSP/servlet 的例子页面,并且能运行它的例子程序,那么你的tomcat
  服务器就可以了。有时候可能要多次刷新才可以。就多试几次吧。
  
  九 . 和apache连接
  cp mod_jserv.so /home/httpd/libexec
  在/home/httpd/conf/httpd.conf文件中加入:
  Include /home/tomcat/conf/jserv/tomcat.conf
  作用是apache服务器在启动时候载入tomcat的模块。不过好象不好使,
  每次都的我亲手再次起动tomcat.
  
  重新起动apache。然后运行tomcat服务器。
  http://localhost/ecamples/
  如果你看见了JSP。SERVLET目录 ,那么你成功了。
  
  lucky you
  
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency Apr 30, 2024 pm 12:27 PM

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency

Integration and expansion of golang function concurrency control and third-party libraries Integration and expansion of golang function concurrency control and third-party libraries Apr 25, 2024 am 09:27 AM

Integration and expansion of golang function concurrency control and third-party libraries

The evasive module protects your website from application layer DOS attacks The evasive module protects your website from application layer DOS attacks Apr 30, 2024 pm 05:34 PM

The evasive module protects your website from application layer DOS attacks

How to conduct concurrency testing and debugging in Java concurrent programming? How to conduct concurrency testing and debugging in Java concurrent programming? May 09, 2024 am 09:33 AM

How to conduct concurrency testing and debugging in Java concurrent programming?

How to add a server in eclipse How to add a server in eclipse May 05, 2024 pm 07:27 PM

How to add a server in eclipse

Application of algorithms in the construction of 58 portrait platform Application of algorithms in the construction of 58 portrait platform May 09, 2024 am 09:01 AM

Application of algorithms in the construction of 58 portrait platform

How to deploy and maintain a website using PHP How to deploy and maintain a website using PHP May 03, 2024 am 08:54 AM

How to deploy and maintain a website using PHP

Equipped with AMD EPYC 4004 series processors, ASUS launches a variety of server and workstation products Equipped with AMD EPYC 4004 series processors, ASUS launches a variety of server and workstation products Jul 23, 2024 pm 09:34 PM

Equipped with AMD EPYC 4004 series processors, ASUS launches a variety of server and workstation products

See all articles