RedHatLinux install JDK1.7 + MySQL5.0 + atat7.0.27 process record: tar-zxvfjdk-7u3-linux-i586.tar.gz/unzip gz file rpm-qxxx.rpm query package has installed mvnew. cnew0.c // move the file folder and rename the rm-rftomcat7 // Delete the folder and the files below it
Install JDK 1.7 + MySQL 5.0 + Tomcat 7.0.27 in RedHat Linux:
Tar-zxvf jdk-7u3-linux-i586.tar.gz/unzip gz File
Run the rpm-q xxx. rpm command to check whether the software package is installed.
Mv new. c new0.c // move the file folder and rename it
Rm-rf tomcat7 // Delete the folder and its files and directories
// Install jdk
Sudo su zhangshibo // raise the permission
Sudo su
Rpm-ivh jdk-7u4-linux-i586.rpm // installed on/usr/java/jdk1.7.0 _ 04 by default
// Install Tomcat 7
Step 1:
Tar-zxvf apache-tomcat-7.0.27.tar.gz
Cp-r apache-tomcat-7.0.27/usr/local/tomcat7
Step 2:
Configure the tomcat environment (to ensure jdk installation)
# Vi/etc/profile
Export JAVA_HOME =/usr/local/jdk1.6.0 _ 04
Export TOMCAT_HOME =/usr/local/apach-tomcat-6.0.16
Save and exit
# Source/etc/profile // make the current configuration take effect immediately
Step 3: Start the tomcat server
$/Usr/local/apach-tomcat-6.0.16/bin/startup. sh
The following content appears on the computer:
Using CATALINA_BASE:/usr/local/tomcat7
Using CATALINA_HOME:/usr/local/tomcat7
Using CATALINA_TMPDIR:/usr/local/tomcat7/temp
Using JRE_HOME:/opt/java/jdk1.7.0 _ 04
Using CLASSPATH:/usr/local/tomcat7/bin/bootstrap. jar:/usr/local/tomcat7/bin/tomcat-juli.jar
Step 4: Enter http: // localhost: 8080/in the browser to view the tomcat log.
Tomcat installation ends here.
// Install mysql-5.5.23.tar.gz
# Tar-xzvf mysql-5.5.23.tar.gz
# Music mysql-5.5.23/usr/local/mysql
Rpm-ivh MySQL-server-community-5.0.96-1.rhel4.i386.rpm -- nodeps -- force // default installation directory/usr/share/mysql
// Copy the my-medium.cnf configuration file and change it to my. cnf
# Cp/usr/share/mysql/my-medium.cnf/etc/my. cnf
After the installation is complete, MySQL uses a blank password by default. You can set a password for the root user. Note the case sensitivity.
Mysql> set password for root @ 'localhost' = PASSWORD ('admin ');
// Log on to the mysql root Account
$> Mysql -- user = root -- password = root mysql
// Authorize the root account for remote access
Mysql> grant all privileges on *. * to 'root' @ '% 'identified by 'root ';
// Delete the database
Drop database test;
Create a database
Create dababase test;
// Import the SQL File
# Creating a database
Create database jeecms_2012;
Source/home/zhangshibo/jeecms. SQL;
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10