1. Install Mysql Server and Client
whether the setting is take effect:
2. Install Jre 1.6
rpm -ivh MySQL-server-community-5.1.50-1.rhel5.x86_64.rpm rpm -ivh MySQL-client-community-5.1.50-1.rhel5.x86_64.rpm //Change pwd $ mysqladmin -u root password NEWPASSWORD $ mysqladmin -u root -p'oldpassword' password newpass //set timeout for threadpool cp /usr/share/mysql/my-huge.cnf /etc/my.cnf //add the following 2 lines in my.cnf [mysqld] port=3306 wait_timeout = 31536000 interactive-timeout = 31536000 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock set-variable=max_allowed_packet=16Mrestart the DB
service mysql restart or /etc/init.d/mysqld restartTo check
whether the setting is take effect:
show variables like '%wait%';backup DB
mysqldump -u [user] -p [password] databasename --routine > filename mysql -u [user] -p databasename < filename
2. Install Jre 1.6
chmod +x jre-6u21-linux-x64-rpm.bin ./jre-6u21-linux-x64-rpm.bin vi ~/.bashrc export JAVA_HOME=/usr/java/jre1.6.0_21 export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export CATALINA_BASE=/usr/local/apache-tomcat-6.0.26 export CATALINA_HOME=/usr/local/apache-tomcat-6.0.26 export LD_LIBRARY_PATH=/usr/lib/fma/lib:$LD_LIBRARY_PATH vi /etc/profile ///etc/profile is run by new login shells. It is run only once, not again each time you open a terminal. export LD_LIBRARY_PATH=/usr/lib/fma/lib:$LD_LIBRARY_PATH3. Install Tomcat
cd /usr/local gunzip –c tomcat.tar.gz | tar xvf - vi tomcat/conf/server.xml //change the port from 8080 to 80 vi tomcat/conf/tomcat-users.xml//add
auto start
vi /etc/rc.local export LD_LIBRARY_PATH=/usr/lib/fma/lib:$LD_LIBRARY_PATH JAVA_HOME=/usr/java/jre1.6.0_21 export JAVA_HOME cd /usr/local/apache-tomcat-6.0.26/bin ./startup.sh //update server date time. # date -s 14:36:00 Fri Nov 26 14:15:00 CST 1999 # date -s 991128 Sun Nov 28 00:00:00 CST 19994.
No comments:
Post a Comment