【CMDB】iTop 开源cmdb/ITIL软件部署

--测试环境
centos 7.5
安装版本iTop-2.6.1-4463.zip

--官网下载
https://wiki.openitop.org/doku.php

--官方安装手册
https://www.itophub.io/wiki/page?id=latest%3Ainstall%3Ainstalling_itop

--环境要求,摘录自官方安装手册
Software requirements
iTop is based on MySQL and PHP.

Plus of-course a web server: Apache, IIS or any web server supporting PHP.
Graphviz is needed to display the impact analysis graph.
php-gd is optionnal but required to be able to add images with CKEditor and resize automatically images within HTML fields.
Check Encrypted data for what to install to managed EncryptedString attribute
To select a database version, check MariaDB release notes by version and MySQL release notes 5.7
Version requirement are:
Minimum PHP 5.6, recommended?PHP 7.x (7.0, 7.1 or 7.2)
Only the version 2.6.1 and above are compatible with PHP 7.3
Minimum MySQL 5.6 (or MariaDB 10.1), recommended MySQL 5.7 or MariaDB 10.2
iTop does not work on PHP 7.3 and MySQL 8    #不支持PHP7.3和Mysql8

--环境准备
关闭selinux
/usr/sbin/setenforce 0

vi /etc/selinux/config
SELINUX=disabled

PHP需要5.6版本以上,以下的话安装完成后网页无法访问
yum install epel-release
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

rpm -qa |grep php
yum remove php*

yum install -y php56w php56w-pdo php56w-gd php56w-mcrypt php56w-soap php56w-mbstring php56w-ldap 
yum install -y php56w-mysql php56w-imap php56w-xml php56w-cli php56w-opcache php56w-common php56w-intl graphviz

--解压安装包
unzip iTop-2.6.1-4463.zip

--配置启动http
mv web /var/www/html/itop
mkdir -p /var/www/html/itop/{conf,data,log,env-production,env-production-build}
chown -R apache:apache /var/www/html/itop/{conf,data,log,env-production,env-production-build}
cd /var/www/html/itop/
chmod 755 index.php 
systemctl restart httpd

--在数据库中创建db和账号,数据库在另外一台机器
create database itopdb DEFAULT CHARACTER SET utf8;
grant all on itopdb.* to 'itop'@'%' identified by 'itop';
flush privileges ;


--完成后打开站点进行配置
 http://192.168.3.5/itop/setup/
 
--根据配置一部部完成部署即可

安装配置流程参考:

https://blog.csdn.net/kk185800961/article/details/84954918


--部署完成后访问地址
 http://192.168.3.5/itop

 

优点:功能多,部署简单,界面相对好看,可以进行二次开发

缺点:使用较复杂,需要二次开发

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章