Deployment environment:
OS: CentOS Release 6.6 (Final)
Memory: 512M
mysql:10.24.24.9
jspxcms:10.24.24.16
Software version:
Jdk-7u79-linux-x64.gz
Apache-tomcat-7.0.42.tar.gz
mysql-5.5.32
Jspxcms-6.0.1-release
============================================
1. Go to the directory and upload
# cd/server/tools/
# rz-y
Jdk-7u79-linux-x64.gz
Apache-tomcat-7.0.42.tar.gz
2. Installing jdk1.7
# Tar XF jdk-7u79-linux-x64.gz-c/usr/local/
# ln-s/usr/local/jdk1.7.0_79//USR/LOCAL/JDK
# Chown-r ROOT.ROOT/USR/LOCAL/JDK
3. Configure environment Variables for Java
# Vim/etc/profile
Add at the end
Export JAVA_HOME=/USR/LOCAL/JDK
Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH
Export classpath=. $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib: $JAVA _home/lib/tools.jar
Configuration takes effect
# Source/etc/profile
4. View JDK Version information
# java-version
Java Version "1.7.0_79"
Java (TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot (TM) 64-bit Server VM (build 24.79-b02, Mixed mode)
5. Installing APACHE-TOMCAT7
# cd/server/tools/
# Tar XF apache-tomcat-7.0.42.tar.gz-c/usr/local/
# ln-s/usr/local/apache-tomcat-7.0.42//usr/local/tomcat
# echo ' Export Tomcat_home=/usr/local/tomcat ' >>/etc/profile
# Source/etc/profile
6. Start Tomcat
#/usr/local/tomcat/bin/startup.sh
# ss-lntup|grep Java
7. Installing the JSPXCMS Management system
# cd/usr/local/tomcat/webapps/
# RM-RF root/
# RZ
Jspxcms-6.0.1-release.zip
# Unzip Jspxcms-6.0.1-release.zip
# ls root/
# MV jspxcms-6.0.1-release.zip/server/tools/
8. Add users and authorizations to the remote database (the database and JSPXCMS programs are not on a single server and the remote database is 10.24.24.9)
mysql> create user ' jspxcms ' @ ' localhost ' identified by ' 123456 ';
mysql> create user ' jspxcms ' @ ' 10.24.24.% ' identified by ' 123456 ';
Mysql> Grant all privileges on * * to ' jspxcms ' @ ' localhost ' identified by ' 123456 ' with GRANT option;
Mysql> Grant all privileges on * * to ' jspxcms ' @ ' 10.24.24.% ' identified by ' 123456 ' with GRANT option;
mysql> Show grants for [email protected] ;
Mysql> Show grants for [email protected] ' 10.24.24.% ';
mysql> flush Privileges;
Browser access:
http://10.24.24.16:8080/
9. Enter the Installation interface
Tomcat installation Jspxcms error prompt:
HTTP Status 500-com.mysql.jdbc.exceptions.jdbc4.communicationsexception:communications Lin
Workaround:
MySQL5 the Wait Time (wait_timeout) of its connection by default to 8 hours
Mysql﹥show Global variables like ' wait_timeout ';
Modifying the MY.CNF configuration file
Add a row under the [mysqld] Module
wait_timeout=1814400
Restart MySQL Solution
#/etc/init.d/mysqld Restart
The database is created automatically during installation if the database does not exist
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7F/F6/wKioL1cy76KgMl4XAACrEzOizlU590.png "title=" Clipboard.png "alt=" Wkiol1cy76kgml4xaacrezoizlu590.png "/>
The self-accomplishment-ywliyq of Linux operation and maintenance
This article is from the "Linux operations self-cultivation" blog, please be sure to keep this source http://ywliyq.blog.51cto.com/11433965/1772272
centos6.6 installing JDK1.7+TOMCAT7 Deployment JSPXCMS Content Management System