[size=medium]公司要开发信息发布系统,听说opencms不错,研究一下
[b]一 安装[/b]
去官网下一个安装包,速度好慢啊,下了好久
http://www.opencms.org/en/
[img]http://dl.iteye.com/upload/attachment/0076/0035/5016e1f8-765b-3250-94e5-bc98016c658c.jpg[/img]
安装包里面有安装文档,和开发介绍文档,还有安装包opencms.war
大家可以看安装文档,里面有安装顺序
[list]
[*]Install the Java 2 SDK, version 5 or newer
[*]Install Tomcat
[*]Install MySQL
[*]Deploy the opencms.war file
[*]Install OpenCms using the Setup-Wizard
[*]Now your system is ready
[*]Security issues
[/list]
把opencms.war放到tomcat的webapp目录下面,然后启动tomcat
然后输入http://localhost:8080/opencms/setup
同意协议
[img]http://dl.iteye.com/upload/attachment/0076/0037/d83e129b-3092-3985-b439-2027aa15aee7.jpg[/img]
一些验证
[img]http://dl.iteye.com/upload/attachment/0076/0039/01df5ee8-93eb-3e70-be7b-ac434534900d.jpg[/img]
输入数据库密码
[img]http://dl.iteye.com/upload/attachment/0076/0041/92f0bf34-ec64-3c19-8018-2e8c6ec6a4cd.jpg[/img]
数据库验证,这步碰到点问题,
Important: You will have to increase the MySQL configuration variable max_allowed_packet located in the MySQL configuration file (usually called my.ini). For OpenCms, the limit should be as high as possible, a setting of at least max_allowed_packet=16M is recommended.
但是我在my.ini文件里面没有找到那个变量max_allowed_packet,在其他文件里面倒是找到了,但是改了没用,后来就直接在my.ini最后面加上max_allowed_packet=16M,OK了
[img]http://dl.iteye.com/upload/attachment/0076/0043/974973ea-d400-3534-b47a-5bead977177c.jpg[/img]
创建数据库,如果有了,它会提示先删除在创建
[img]http://dl.iteye.com/upload/attachment/0076/0049/d906973d-53fc-314f-82fe-0f1eb3682e37.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0076/0051/50775e11-180a-3913-80ca-bc3e93a39167.jpg[/img]
输入一些设置
[img]http://dl.iteye.com/upload/attachment/0076/0054/82ec411f-5192-3768-8d5c-cf9e97c62b03.jpg[/img]
导入模块,模块很多啊,得导一会
[img]http://dl.iteye.com/upload/attachment/0076/0056/c22cb913-41cb-37b8-8b11-59ef0674413d.jpg[/img]
安装完成
[img]http://dl.iteye.com/upload/attachment/0076/0065/1b6dd277-33a3-35b3-93a3-5d12a66a581a.jpg[/img]
The Workplace is a complex JavaScript application that makes use of popup windows and cookies.
This means for a browser that needs access to the Workplace:
Enable JavaScript
Allow Popups
Enable Cookies
如果想重新初始化,修改\webapps\opencms\WEB-INF\config\opencms.properties
wizard.enabled=true
[img]http://dl.iteye.com/upload/attachment/0076/0077/9ef190f0-0676-3f69-ae11-e576ab265f78.jpg[/img]
安装成功了,登录系统后台,
http://localhost:8080/opencms/opencms/system/login/
用户名:Admin 密码:admin
[img]http://dl.iteye.com/upload/attachment/0076/0081/d5f735bb-3b9d-3bee-bef1-3eebdd8a9b21.jpg[/img]
前台
[img]http://dl.iteye.com/upload/attachment/0076/2235/7908e13a-9c67-3514-8e57-98c2b2f3943b.jpg[/img]
如果还有问题,可以参考附件是官方的安装文档
[/size]
[b]一 安装[/b]
去官网下一个安装包,速度好慢啊,下了好久
http://www.opencms.org/en/
[img]http://dl.iteye.com/upload/attachment/0076/0035/5016e1f8-765b-3250-94e5-bc98016c658c.jpg[/img]
安装包里面有安装文档,和开发介绍文档,还有安装包opencms.war
大家可以看安装文档,里面有安装顺序
[list]
[*]Install the Java 2 SDK, version 5 or newer
[*]Install Tomcat
[*]Install MySQL
[*]Deploy the opencms.war file
[*]Install OpenCms using the Setup-Wizard
[*]Now your system is ready
[*]Security issues
[/list]
把opencms.war放到tomcat的webapp目录下面,然后启动tomcat
然后输入http://localhost:8080/opencms/setup
同意协议
[img]http://dl.iteye.com/upload/attachment/0076/0037/d83e129b-3092-3985-b439-2027aa15aee7.jpg[/img]
一些验证
[img]http://dl.iteye.com/upload/attachment/0076/0039/01df5ee8-93eb-3e70-be7b-ac434534900d.jpg[/img]
输入数据库密码
[img]http://dl.iteye.com/upload/attachment/0076/0041/92f0bf34-ec64-3c19-8018-2e8c6ec6a4cd.jpg[/img]
数据库验证,这步碰到点问题,
Important: You will have to increase the MySQL configuration variable max_allowed_packet located in the MySQL configuration file (usually called my.ini). For OpenCms, the limit should be as high as possible, a setting of at least max_allowed_packet=16M is recommended.
但是我在my.ini文件里面没有找到那个变量max_allowed_packet,在其他文件里面倒是找到了,但是改了没用,后来就直接在my.ini最后面加上max_allowed_packet=16M,OK了
[img]http://dl.iteye.com/upload/attachment/0076/0043/974973ea-d400-3534-b47a-5bead977177c.jpg[/img]
创建数据库,如果有了,它会提示先删除在创建
[img]http://dl.iteye.com/upload/attachment/0076/0049/d906973d-53fc-314f-82fe-0f1eb3682e37.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0076/0051/50775e11-180a-3913-80ca-bc3e93a39167.jpg[/img]
输入一些设置
[img]http://dl.iteye.com/upload/attachment/0076/0054/82ec411f-5192-3768-8d5c-cf9e97c62b03.jpg[/img]
导入模块,模块很多啊,得导一会
[img]http://dl.iteye.com/upload/attachment/0076/0056/c22cb913-41cb-37b8-8b11-59ef0674413d.jpg[/img]
安装完成
[img]http://dl.iteye.com/upload/attachment/0076/0065/1b6dd277-33a3-35b3-93a3-5d12a66a581a.jpg[/img]
The Workplace is a complex JavaScript application that makes use of popup windows and cookies.
This means for a browser that needs access to the Workplace:
Enable JavaScript
Allow Popups
Enable Cookies
如果想重新初始化,修改\webapps\opencms\WEB-INF\config\opencms.properties
wizard.enabled=true
[img]http://dl.iteye.com/upload/attachment/0076/0077/9ef190f0-0676-3f69-ae11-e576ab265f78.jpg[/img]
安装成功了,登录系统后台,
http://localhost:8080/opencms/opencms/system/login/
用户名:Admin 密码:admin
[img]http://dl.iteye.com/upload/attachment/0076/0081/d5f735bb-3b9d-3bee-bef1-3eebdd8a9b21.jpg[/img]
前台
[img]http://dl.iteye.com/upload/attachment/0076/2235/7908e13a-9c67-3514-8e57-98c2b2f3943b.jpg[/img]
如果还有问题,可以参考附件是官方的安装文档
[/size]