Installation notes for Tomcat + Jdk + Mysql application platform in Linux
Source: Internet
Author: User
Installation notes for the Tomcat + Jdk + Mysql application platform in Linux-Linux Enterprise Application-Linux server application information. For more information, see the following. 1. Required main software:
J2SDK 1.4.0
Tomcat-version 5.0.25
Mysql-4.0.20 Edition
2. Software Installation
1. Install MYSQL
Command list:
Rpm-ivh MySQL-server-4.0.20-0. I 386rpm # Install mysql server
Rpm-ivh MySQL-client-4.0.20-1.i386.rpm # Install mysql client
/Usr/mysql/safe_mysqld & # Start mysql server
Mysql # runs the mysql client and opens the root user's remote access permission. For debugging
Use mysql
Update user set host = '%' where user = 'root' and host <> 'localhost ';
Flush privileges;
Quit
Mysql installation is now complete
Note: Do not select the SQL Server when installing the linux software package. If you accidentally install the software, you must delete all the software from the Add/delete program before installing the software. Otherwise, there will be a lot of conflicts and troubles .!!
In X-window, double-click to decompress the package to/usr/tomcat.
3. Set Environment Variables
Edit the/etc/profile file and add the following at the end of the file:
JAVA_HOME =/usr/java/j2sdk1.4.0 _ 03
Export JAVA_HOME
TOMCAT_HOME =/usr/tomcat
Export TOMCAT _ HOME
Start tomcat
Go to the tomcat/bin directory under the terminal and execute./startup. sh start
In this way, the configuration environment of jsp + mysql in linux is successfully started.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.