centos7.0+CMDBuild2.5安裝

來源:本站原創 Linux 超過3,611 views圍觀 0條評論

官方安裝手冊 http://www.cmdbuild.org/en/documentazione/manuali/technical-manual
介紹 http://blog.sina.com.cn/s/blog_a77587820101obo7.html
一、架構與準備工作

 

    IP    OS    軟件    數據庫
CMDB Server    192.168.     CentOS 7.     CMDBuild     postgresql-server
CMDB Client    192.168.     Windows 7    IE 8   

  準備工作:

    Tomcat :7.0以上

    JDK: 1.8 以上

二、安裝部署

1、下載Tomcat7和CMDBuild2.4.3。下載鏈接如下:

Tomcat:http://tomcat.apache.org/download-70.cgi

CMDBuild2.4.3:https://sourceforge.net/projects/cmdbuild/files/latest/download

 

[[email protected] ~]# yum -y install java-1.8.0
Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.151-5.b12.el7_4                                                                                                                   

Complete!

2、解壓并復制CMDBuild到Tomcat的對應目錄:

[[email protected] cmdbuild-2.5.0]# pwd
/opt/download/cmdbuild-2.5.0
[[email protected] cmdbuild-2.5.0]# cp cmdbuild-2.5.0.war /opt/
apache-tomcat-7.0.82/ linux_amd64.tar.gz    nessus/               OA日志導入測試.txt
download/             mail/                 oa_log/              
grokdebug/            mysqlcheck/           oa_log2/             
[[email protected] cmdbuild-2.5.0]# cp cmdbuild-2.5.0.war /opt/apache-tomcat-7.0.82/webapps/
[[email protected] cmdbuild-2.5.0]#
[[email protected] cmdbuild-2.5.0]#
[[email protected] cmdbuild-2.5.0]# cp extras/tomcat-libs/6.0\ or\ higher/postgresql-9.4.1207.jar /opt/apache-tomcat-7.0.82/lib/
[[email protected] cmdbuild-2.5.0]#

解壓cmdbuild-2.3.0/extras下面的cmdbuild-distribution-shark-overlay-2.4.3.zip,并將cmdbuild-distribution-shark-overlay-2.4.3復制到tomcat下的webapps目錄并改名為shark:

cd extras/
unzip cmdbuild-distribution-shark-overlay-2.5.0.zip
cp -r cmdbuild-shark-overlay-2.5.0/ /opt/apache-tomcat-7.0.82/webapps/shark

3、安裝數據庫postgresql
[[email protected] bin]# yum install postgresql-server postgresql -y
4、初始化postgresql
[[email protected] bin]# postgresql-setup initdb
Initializing database … OK

[[email protected] bin]# vim /var/lib/pgsql/data/postgresql.conf
末尾添加:
listen_addresses = ‘*’

"/var/lib/pgsql/data/pg_hba.conf" 91L, 4307C 
# IPv4 local connections:
host    all             all             127.0.0.1/32            ident
host    all             all             192.168.142.1/32         md5  —–這個配置有問題

 

[[email protected] bin]# systemctl enable postgresql
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql.service to /usr/lib/systemd/system/postgresql.service.
[[email protected] bin]# systemctl restart postgresql
[[email protected] bin]#
[[email protected] bin]#
[[email protected] bin]# systemctl status postgresql
● postgresql.service – PostgreSQL database server

 

http://192.168.142.138:8090/

———-下面這步有沒有都行。——————
[[email protected] ~]# su – postgres
-bash-4.2$ createuser -s -P shark -Upostgres
Enter password for new role: shark
Enter it again:shark
-bash-4.1$ psql -d cmdbuild -U postgres
psql (8.4.18)
Type "help" for help.
cmdbuild=# \i /data/apache-tomcat-7.0.79/webapps/cmdbuild/WEB-INF/sql/shark_schema/01_shark_user.sql
cmdbuild=# \i /data/apache-tomcat-7.0.79/webapps/cmdbuild/WEB-INF/sql/shark_schema/02_shark_emptydb.sql
cmdbuild=# \dt
                        List of relations
Schema |                Name                 | Type  |  Owner  
——–+————————————-+——-+———-
public | Activity                            | table | postgres
public | Asset                               | table | postgres
public | Building                            | table | postgres
public | Building_history                    | table | postgres
public | Class                               | table | postgres
public | Computer                            | table | postgres
 
 
12、安裝Workflow

[[email protected] ~]#  vim /data/apache-tomcat-7.0.79/webapps/shark/conf/Shark.conf
末尾添加:
orgNaNdbuild.ws.url=http://localhost:8080/cmdbuild/
orgNaNdbuild.ws.username=workflow
orgNaNdbuild.ws.password=admin

13、修改auth.conf

   
[[email protected] ~]#  vim /data/apache-tomcat-7.0.79/webapps/cmdbuild/WEB-INF/conf/auth.conf
末尾添加:
serviceusers.privileged=workflow

14創建數據庫

   
[[email protected] ~]# su – postgres
-bash-4.2$ createuser -s -P shark -Upostgres
Enter password for new role: shark
Enter it again:shar
-bash-4.1$ psql -d cmdbuild -U postgres
psql (8.4.18)
Type "help" for help.
cmdbuild=# \i /data/apache-tomcat-7.0.79/webapps/cmdbuild/WEB-INF/sql/shark_schema/01_shark_user.sql
cmdbuild=# \i /data/apache-tomcat-7.0.79/webapps/cmdbuild/WEB-INF/sql/shark_schema/02_shark_emptydb.sql
cmdbuild=# \dt
———-上面這步有沒有都行。——————
 
vim /var/lib/pgsql/data/pg_hba.conf
host    all             all             0.0.0.0/0            md5
客戶端報錯無法接
postgresql no password supplied

修改配置為
host    all             all             192.168.142.0/24        trust —-方式
解決

登陸進行配置
http://192.168.142.138:8090/cmdbuild/index.jsp
選存在數據庫cmdbulid  填入數據庫連接方式
點擊完成

輸入
admin
admin
進行登陸

文章出自:CCIE那點事 http://www.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3672轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
?
?
萌宠夺宝游戏