These days try to install the WEB+FTP server under the Red Banner Linux desktop version 4.1, has been installed successfully, now my installation process is introduced as follows, to give users with similar needs for reference. The whole installation process is divided into three parts, namely: First, the installation of Tomcat+mysql, the installation of apache+php, three, FTP (VSFTPD) installation. Of these, the first and third parts are independent, but the second part is based on the completion of the first installment.
----------------------------------
The first part installs the Jdk+tomcat+mysql
----------------------------------
This step of the installation requirements is to support JSP, HTML, HTM Web pages, so choose jdk1.5.0+tomcat5.5.4+mysql4.1.7, these are the latest stable version of the current software (not beta), which is now popular, classic configuration. Do not install Apache and support PHP, mainly considering the desktop version of Linux users are basically personal sites, mainly for learning, testing JSP and use, these configurations are more than enough, and more can travel light.
To install Apache and PHP, refer to the second section.
Note that in the following installation, the beginning with the # symbol for the root user in the system terminal operation, the actual operation without entering the # number.
First, download the relevant necessary software, put into a unified directory (such as/tmp/mydown):
1, download JDK1.5.0 installation package (ie JAVA5.0), filename: jdk-1_5_0-linux-i586-rpm.bin
Download Link: http://java.sun.com/j2se/1.5.0/download.jsp
2, download tomcat installation package (support JSP), FileName: jakarta-tomcat-5.5.4.tar.gz
Download Link: http://apache.freelamp.com/jakarta/tomcat-5/v5.5.4/bin/jakarta-tomcat-5.5.4.tar.gz
3, download the MySQL installation package (database software), file name: mysql-standard-4.1.7-pc-linux-i686.tar.gz
Download Link: Http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-standard-4.1.7-pc-linux-i686.tar.gz/from/pick
4, download mysql JDBC driver, filename: mysql-connector-java-3.0.16-ga.tar.gz
Download Link: http://dev.mysql.com/downloads/connector/j/3.0.html
Second, the installation of software
1, the installation of JDK (because the JDK contains JRE, if the original installation lumaqq installed JRE, please uninstall the JRE RPM package, can save 85M space)
(1) Installation:
#cd/tmp/mydown
#./jdk-1_5_0-linux-i586-rpm.bin
So the JDK is installed into the/usr/java/jdk1.5.0 directory.
(2) Edit file/etc/profile, at the end of add:
Export java_home=/usr/java/jdk1.5.0
Export classpath= $CLASSPATH: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar:.
Export path= $PATH: $JAVA _home/bin
(3) To allow the new configuration to take effect, run #source/etc/profile
(4) testing, using a text editor to write a Java program to verify, save in the/tmp/mydown directory, file name: Helloworld.java, enter the following:
public class HelloWorld{
public static void main(String args[]){
System.out.println("Hello,Wrold");
}
}
Then, execute under the terminal:
#cd/tmp/mydwon
#javac Helloworld.java
#java HelloWorld
At this point if the "Hello,world", it means that your Java compilation, the operation of the environment built.