[root@linux-node3 ~]# yum install -y mongodb-server mongodb npm
[root@linux-node3 ~]# systemctl start mongod
[root@linux-node3 ~]# systemctl enable mongod
> use cmdb
switched to db cmdb
> db.addUser("cmdb", "cmdb");
MySQL 部署(在OpenCMDB中,MySQL用于存放CMDB管理相关数据):
[root@linux-node3 ~]# systemctl start mariadb
[root@linux-node3 ~]# systemctl enable mariadb
MariaDB [(none)]> create database cmdb character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all on cmdb.* to cmdb@localhost identified by 'cmdb';
MariaDB [(none)]> grant all on cmdb.* to cmdb@'%' identified by 'cmdb';
Nginx部署
[root@linux-node3 ~]# yum install -y nginx
[root@linux-node3 ~]# cd /etc/nginx/default.d/
Python 3.5.2安装:
[root@linux-node3 ~]# yum install -y gcc glibc make openssl-devel mariadb-devel
[root@linux-node3 ~]# cd /usr/local/src/
[root@linux-node3 src]# wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
[root@linux-node3 src]# tar zxf Python-3.5.2.tgz && cd Python-3.5.2
[root@linux-node3 Python-3.5.2]# ./configure --prefix=/usr/local/python-3.5.2
[root@linux-node3 Python-3.5.2]# make && make install