Using the #jfinal community # Building your own community site is just that simple ~ ~

Source: Internet
Author: User
Tags mysql client

Considering that some friends do not develop, they have made a war package, here to share the use of the method

  • Download the war package and Jfinalbbs database script (this has the Baidu Cloud Disk share link below)

  • On the computer to have Tomcat7,jdk7,mysql database, if not, you can go to the following link to download the installation:

      • TOMCAT7-->http://tomcat.apache.org/

      • Jdk7-->http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

      • MySQL-->http://dev.mysql.com/downloads/mysql/

  • Unzip the TOMCAT7, put it on a disk in the system, open find WebApps directory, put Jfbbs.war in

  • Install JDK, configure environment variables, no, you can refer to the documentation: http://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

  • MySQL If the download is the installation package, at the time of installation is prompted to enter the user name password, and the system will default to create a service, the system started automatically started, if the decompression package, the default is no password, as for the password how to modify, I will not, and the system will not create services, You need to manually start the MySQL database, find the MySQL extracted directory, open the Bin folder, find Mysqld.exe Double-click Open, you can

  • Before starting Tomcat, you also need to configure Tomcat, open the Tomcat folder, open the Bin folder, locate the Setclasspath.bat file, right-click Edit, and add the directory of the JDK you just installed in the beginning

  • Set up, don't worry, first import the Jfinalbbs database script into the MySQL database, we recommend using the MySQL Client tool import (because I will not use the terminal)

  • Now it's time to start Tomcat, Directly double-click the bin directory under the Startup.bat file, waiting for Tomcat decompression Jfbbs.war, here need to note: If your database user name is not the root password is not empty, there will be a connection database at startup error, you need to configure the extracted Jfbbs directory in the configuration file To modify the configuration file in Jfbbs directly by shutting down the terminal that started Tomcat

  • Locate the WebApps directory under Tomcat, open jfbbs/web-inf/classes find config.properties Open

    • Modify the database connection information to your own

    • DevMode: Whether it is a development mode (no need to change)

    • Showsql: Whether to display SQL statements in the console (no changes required)

    • Base.url: If you start Tomcat, the access address is: Http://localhost:8080/jfbbs does not need to modify the value of the Base.url, if not, it will be modified to the corresponding address.

    • In the following is the Baidu UE and seven Qiniu storage combination configuration, there are three modes: qiniu/bcs/local

        • Qiniu--Seven cow cloud storage

        • BCS-to-Baidu cloud storage (this I did not test, not recommended)

        • Local storage

    • Choose seven or Baidu storage mode to configure the corresponding Ak,sk,bucket

        • With local, you do not need to configure Ak,sk,bucket

        • If the seven Qiniu storage is used, the "Imageurlprefix" value in the Config.json file under the webapps\jfbbs\static\ueditor\jsp directory must be modified to seven Qiniu access address in addition to the configuration Ak,sk,bucket. , such as: http://dn-jfinalbbs.qbox.me/@

    • Finally is the email configuration, only need to enter your mailbox, password can be used to retrieve the password of the mail

  • OK, start Tomcat again and build your own community site!

  • About Access Address:

      • If Tomcat starts, the access address is: Http://localhost:8080/jfbbs then the background access address is: Http://localhost:8080/jfbbs/adminlogin background Default user name/password: admin/123213

War package, Jfinalbbs Database script: Link: http://pan.baidu.com/s/1qWFms2o Password: 7uqs


Using the #jfinal community # Building your own community site is just that simple ~ ~

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.