1. Required main software
J2SDK version 1.4.0
tomcat-5.0.25 version
mysql-4.0.20 version
2. Software installation
1. MYSQL installation
Command list:
rpm -ivh MySQL-server-4.0.20-0.i386rpm #Install mysql server
rpm -ivh MySQL-client-4.0.20-1.i386.rpm #Install mysql client
/usr/mysql/safe_mysqld & #Start mysql server
mysql #Run the mysql client and open the root user's remote access permissions. for debugging
use mysql
update user set host = '%' where user = 'root' and host <> 'localhost';
flush privileges;
quit
At this point, mysql installation is completed
Note: When installing Linux, do not select the sql server when selecting the software package. If it is installed accidentally, you must delete it all from Add and Remove Programs before you can install the above software. Otherwise there will be a lot of conflicts and troubles. ! !
2. Install JDK
Software version: j2sdk-1_4_0-fcs-linux-i386.rpm
Just double-click it. There is no need to select the installation directory, it will be automatically installed in the /usr/jdk/ directory.
3. Install tomcat
Software version: jakarta-tomcat-5.0.25.tar
Just double-click to decompress it to /usr/tomcat under X-window.
3. Environment variable settings
Edit the /etc/profile file and add: at the end of the file:
JAVA_HOME=/usr/java/j2sdk1.4.0_03
export JAVA_HOME
TOMCAT_HOME=/usr/tomcat
exportTOMCAT_HOME
Start tomcat
Enter the tomcat/bin directory in the terminal and execute ./startup.sh start
In this way, the jsp+mysql configuration environment under Linux is successfully started.