Prerequisites: You need to configure the Jdk,eclipse,tomcat (because I install the deployment Tomcat encountered a point of problem, also to write the configuration process clearly), MySQL database (reference http://blog.csdn.net/qishuo_java/ article/details/37721471 Step by step installation, very detailed), my MySQL database password is 123456, my environment is Windows7.
Step 1. Download the jforum:http://jforum.net/download.jsp, download it, and put it in the specified directory to extract it.
Step 2. Download the ant:http://ant.apache.org/bindownload.cgi, unzip it in the specified directory, unzip it into the Control Panel-system and security-system-Advanced system settings-environment variables-add ant_home to System variables
Ant is ready to install.
Step 3.cmd Enter the console and enter the Jforum directory in step 1 to perform the ant
At this point, build succeeds, generate a build folder under the Jforum directory, have the classes folder, cut the Classes folder to Jforum/web-inf, and then place the entire jforum under Tomcat's WebApps directory.
Step 4.Tomcat Download and configuration: http://tomcat.apache.org/download-70.cgi download tomcat
Decompression to the specified directory, as it is used to deploy the Jforum application, you can rename Tomcat to Jforumtomcat, more clearly, after the decompression is complete, go to Control Panel-system and security-system-Advanced system settings-environment variables-System variables add catalina_home, The directory where Tomcat is located. At the end of the path this system variable is added;%catalina_home%\lib; (Note all English symbols), open the console in the Jforumtomcat directory, execute command startup, start the Tomcat service, if no accident, start successfully
At this point in the browser can enter http://localhost:8080/, can successfully enter the first page of Tomcat, indicating that the installation configuration Tpmcat successful.
Step 5. After configuring Tomcat to succeed, put Jforum in the WebApps directory as shown in Step3, and in the browser input http://localhost:8080/jforum/ install.jsp, but reported 404 error, can't find the path, belongs to have not configured well, open Eclipse-preference-server-runtime environment--add, choose the version of Tomcat just installed, Then write the path to the Tomcat
The configuration for Tomcat in Eclipse is configured, and one more step is to remove the files under Tomcat\work\catalina\localhost after Jforum is placed in Tomcat's WebApps. Tomcat\conf\catalina\localhost the file is removed. WebApps also do not store jforum war and other compressed files.
At this point, enter the address: http://localhost:8080/jforum/install.jsp (must be after startup success, do not shut down startup), appears
Indicates that the deployment of Jforum in Tomcat under Windows7 has been successful.
Step 6: How to fill in
First install MySQL database is better, I here is to start to install MySQL database, database user account: root password: 123456, after the system administrator account Admin refers to the installation of the forum after the Jforum Forum administrator, password with their own settings, I also set to 123456, then start installation error no jforum This database, so I again in the MySQL Server execution command: CREATE DATABASE jforum;
Successfully new Jforum database on MySQL, then error
Because MySQL version is inconsistent, change file: Jforum2\web-inf\config\database\mysql\mysql_db_struct.sql
Will be one of the tables after all the "TYPE=INNODB;" Change to "ENGINE=INNODB;" and save. Click the "Modify Status" button in the installation screen to return to the configuration status.
Then re-enter the database and the administrator password, and then continue to install, you can log in to the forum successfully, and then enter the admin and password to access the Administrator page,
Chinese display is also normal, at this time finally complete set up a good jforum test environment, really not easy.
Installing the Configuration Jforum test environment under Windows