【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

 

優點:功能多,部署簡單,界面相對好看,可以進行二次開發

缺點:使用較複雜,需要二次開發

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