CMDB--Construction of Cmdbuild using 1

Source: Internet
Author: User
Tags postgresql

With the crazy growth of the business, the amount of resources remaining, when the need to expand resources, as operations, I actually can not answer. As an OPS, we want to have a CMDB to manage the statistics of resources in the pursuit of a devops approach to productivity.

Today, we introduce the cmdbuild of the building, of course, the use of the specific needs of their own business needs to establish a data model. Let's talk about building today, the next blog to say the specific use of the model.

1. Installation Environment

1.1 Environment Preparation

System Centos7
Cpu >=2 Nuclear
Memory >=4g
Disk >= 60G

1.2 Installation Dependencies

    • Database: PostgreSQL 8.4, 9.0 better

    • Web server (Container): Tomcat6 | Tomcat5

    • Java Runtime Environment: it seems to support only 1.6 at this time

2. Configure the database

2.1 Database Initialization

Postgresql-setup Initdb

2.2 Modifying Database access permissions

"Vim /var/lib/pgsql/data/pg_hba.conf Modified: Local   all     postgres                 ident #  Rule Name: local access to database with same name#  description: none# order: 002local   all     all              ident # rule name:  deny access to postgresql user# description: none# order: 003#  host    all     postgres         0.0.0.0/0       reject   # #注意这行意思, is disabled  # rule name: allow access to all users# description: none#  order: 100host    all     all     0.0.0.0/0        md5 # rule name: allow access to ipv6 localhost#  Description: none# Order: 101host    all      all     ::1/128 md5

2.3 Starting the database service

Systemctl Restart PostgreSQL

3. Installing Cmdbuild

3.1 Download the source code

    • Download the Cdmbuild tarball from the CMDB's official website (http://www.cmdbuild.org/en/download) and unzip it

1. Copy the war file (cmdbuild-{version number}.war) to the WebApps folder of Tomcat and rename it to Cmdbuild.war

2. Copy the Cmdbuild-shark.zip file under the extras to WebApps and unzip

3. Copy the Postgres.tar file from the Tomcat-libs folder under Extras to the Tomcat Lib folder

4. In the client's browser, enter Http://{server Address}:{port num}/cmdbuild Follow the prompts to configure

4. Configure Nginx

In fact, the above 3 steps have been implemented Cmdbuild run, but because we are in use, when the concurrent access to a certain number, Tomcat collapsed, so configure an nginx.

       4.1 nginx configuration file

         /etc/nginx/conf.d/cmdbuild.conf          

server {Listen *:80;  server_name region1-mon01v.cloud.bjdt.qihoo.net;  Access_log/var/log/nginx/cmdb.access.log;  Error_log/var/log/nginx/cmdb.error.log;  Location/{Proxy_pass http://127.0.0.1:8080; }}

4.2 Restart Nginx

Systemctl Restart Nginx

Well, the cmdbuild of a spawning environment is built,

This article is from the "Nginx Build Keystone" blog, please be sure to keep this source http://evawalle.blog.51cto.com/9555145/1950391

CMDB--Construction of Cmdbuild using 1

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.