OpenCms9 learning notes (2) -- download and install OpenCms9 and opencms9 learning notes

Source: Internet
Author: User
Tags mysql command line

OpenCms9 learning notes (2) -- download and install OpenCms9 and opencms9 learning notes

Reprinted with the source address: http://blog.csdn.net/lastsweetop/article/details/44752007


This article only includes the local installation of OpenCms. The Server installation method will be mentioned in later articles. You can perform local development and upload it to the server at the time of release, which is very simple.

Download

Download the latest version, address http://www.opencms.org/en/download/, download is a compressed package form: opencms.zip, decompress the obtained opencms. war, this is the web terminal installation file.


Environment requirements

1. jdk (1.6.0 _ 65)

2. tomcat (7.0.39)

3. mysql (1, 6.2)


Prepare for jdk Installation

Only jre installation is not enough. jdk installation is required, and jdk 1.6 or 1.7 is required.

Tomcat installation

Tomcat requires version 6.0.x or 7.0.x.

-Djava. awt. headless = true must be added to tomcat startup parameters.

Install mysql

The officially recommended mysql version is 5.0 5.1 5.5 5.6, and I am using 6.2. I have not found any problems for the time being.

You also need to change the max_allowed_packet parameter. If you do not modify the parameter, an error will be reported during installation, prompting that the parameter is too small.

Run in mysql Command Line

set global max_allowed_packet = 32*1024*1024
Then exit the command line, restart the mysql service, and view

show VARIABLES like '%max_allowed_packet%';
Check whether max_allowed_packet is successfully edited.

Deploy the opencms. war File

Copy the oepncms. war file to the webapps directory under tomcat. You must ensure that container a automatically unpacks the *. war file. Otherwise, the file cannot be properly installed.

Install opencms

Install http: // localhost: 8080/opencms/setup /,

Follow the prompts to install it step by step. You can enter the root account password for the Database Password account. After installation, perform security reinforcement. The installation wizard automatically creates an opencms database table in mysql.


After the installation is complete, you can log on. The logon address is http: // localhost: 8080/opencms/system/login/. The default Logon account password is Admin/admin.


Security

The default password used for previous installation. Now some reinforcement is required.

1. Change the Admin password. After logging on to the system, click Preferences in the navigation bar at the top, and then click User Data to view the options for changing the password.

2. Added opencms users.

grant all privileges on opencms.* to opencms@localhost identified by 'opencms';
Grant opencms Database Access Permissions

CREATE USER 'opencms'@'localhost' IDENTIFIED BY 'opencms';
3. Modify the attribute file of opencms and change it to the new opencms account password.

% CATALINA_HOME %/webapps/Open CMS/WEB-INF/config/opencms. properties

After the restart, you can access the service normally.







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.