安装环境: jdk1.7.0_57,tomcat6,
cmdbuild-2.3.0
1,下载tomcat6和cmdbuild2.3.0,(只能用tomcat6,其他的版本测试都会有问题)
2,复制cmdbuild-2.3.0.war到tomcat下的webapps目录,并改名为cmdbuild.war
3,复制cmdbuild-2.3.0/extras/tomcat-libs/6.0下的postgresql-9.1-901.jdbc4.jar到tomcat下的lib目录
4,解压cmdbuild-2.3.0/extras下面的cmdbuild-distribution-shark-overlay-2.3.0.zip,并将cmdbuild-shark-overlay-2.3.0复制到tomcat下的webapps目录并改名为shark
5,启动tomcat,访问http://localhost:8080/cmdbuild,看看是否启动成功
6,关闭tomcat.
7,安装数据库postgresql.
yum install postgresql-server postgresql -y
8,初始化postgresql
service postgresql initdb
9,
修改配置,让所有地址都可以登陆
vim /var/lib/pgsql/data/postgresql.conf
------------------------------------------------------------------------
listen_addresses = '*'
10,重启postgresql
service postgresql restart
11,新建数据库
# su - postgres
-bash-4.2$ psql
postgres=# create database cmdbuild with owner postgres encoding = 'UTF8';
postgres=# ALTER USER postgres WITH PASSWORD 'postgres';
postgres=# \q
-bash-4.2$ psql -d cmdbuild
cmdbuild=# CREATE LANGUAGE plpgsql;
postgres=# \q
12,导入demo数据库文件
-bash-4.1$ psql -d cmdbuild -f /{完整的tomcat路径}/webapps/cmdbuild/WEB-INF/sql/sample_schemas/demo_schema.sql
13,配置cmdbuild
vim /{完整的tomcat路径}/webapps/cmdbuild/WEB-INF/conf/cmdbuild.conf
---------------------------------------------------------------------
language=en
14,配置数据库连接配置,(注意防火墙)
vim /{完整的tomcat路径}/webapps/cmdbuild/WEB-INF/conf/database.conf
-------------------------------------------------------------------
db.password=postgres
db.url=jdbc\:postgresql\://{IP地址}\:5432/cmdbuild
db.username=postgres
15,安装Workflow
vim /{完整的tomcat路径}/webapps/shark/conf/Shark.conf
--------------------------------------------------------------------
orgNaNdbuild.ws.url=http://localhost:8080/cmdbuild/
orgNaNdbuild.ws.username=workflow
orgNaNdbuild.ws.password=admin
16,修改auth.conf
vim /{完整的tomcat路径}/webapps/cmdbuild/WEB-INF/conf/auth.conf
----------------------------------------------------------------------
serviceusers.privileged=workflow
17,创建数据库
su – postgres
-bash-4.2$ createuser -s -P shark -Upostgres
Enter password for new role: shark
Enter it again:
-bash-4.2$ psql -d cmdbuild -U shark
cmdbuild=# \i /{完整的tomcat路径}/webapps/cmdbuild/WEBINF/sql/shark_schema/01_shark_user.sql
cmdbuild=# \i /{完整的tomcat路径}/webapps/cmdbuild/WEBINF/sql/shark_schema/02_shark_emptydb.sql
cmdbuild=# \dt
18,启动tomcat,登陆http://localhost:8080/cmdbuild
账号:admin
密码:admin