如何在 CentOS 7 上安装开源 ITIL 门户 iTOP
iTOP是一个简单的基于Web的开源IT服务管理工具。它有所有的ITIL功能,包括服务台、配置管理、事件管理、问题管理、变更管理和服务管理。iTOP依赖于Apache/IIS、MySQL和PHP,因此它可以运行在任何支持这些软件的操作系统中。因为iTOP是一个Web程序,因此你不必在用户的PC端任何客户端程序。一个简单的浏览器就足够每天的IT环境操作了。
我们要在一台有满足基本需求的LAMP环境的CentOS 7上安装和配置iTOP。
下载 iTOP
iTOP的下载包现在在SourceForge上,我们可以从这获取它的官方链接。
itop download
我们从这里的连接用wget命令获取压缩文件。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">007</span><span class="pun">~]#</span><span class="kwd">wget</span><span class="pln"> http</span><span class="pun">:</span><span class="com">//downloads.sourceforge.net/project/itop/itop/2.1.0/iTop-2.1.0-2127.zip</span>
iTop扩展和网络安装
使用unzip命令解压到apache根目录下的itop文件夹下。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="pun">~]#</span><span class="kwd">ls</span>
<span class="pln">iTop</span><span class="pun">-</span><span class="lit">2.1</span><span class="pun">.</span><span class="lit">0</span><span class="pun">-</span><span class="lit">2127.zip</span>
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="pun">~]#</span><span class="pln"> unzip iTop</span><span class="pun">-</span><span class="lit">2.1</span><span class="pun">.</span><span class="lit">0</span><span class="pun">-</span><span class="lit">2127.zip</span><span class="pun">-</span><span class="pln">d </span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/</span><span class="pln">html</span><span class="pun">/</span><span class="pln">itop</span><span class="pun">/</span>
列出安装包中的内容。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="pun">~]#</span><span class="kwd">ls</span><span class="pun">-</span><span class="pln">lh </span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/</span><span class="pln">html</span><span class="pun">/</span><span class="pln">itop</span><span class="pun">/</span>
<span class="pln">total </span><span class="lit">68K</span>
<span class="pun">-</span><span class="pln">rw</span><span class="pun">-</span><span class="pln">r</span><span class="pun">--</span><span class="pln">r</span><span class="pun">--.</span><span class="lit">1</span><span class="pln"> root root </span><span class="lit">1.4K</span><span class="typ">Dec</span><span class="lit">17</span><span class="lit">2014</span><span class="pln"> INSTALL</span>
<span class="pun">-</span><span class="pln">rw</span><span class="pun">-</span><span class="pln">r</span><span class="pun">--</span><span class="pln">r</span><span class="pun">--.</span><span class="lit">1</span><span class="pln"> root root </span><span class="lit">35K</span><span class="typ">Dec</span><span class="lit">17</span><span class="lit">2014</span><span class="pln"> LICENSE</span>
<span class="pun">-</span><span class="pln">rw</span><span class="pun">-</span><span class="pln">r</span><span class="pun">--</span><span class="pln">r</span><span class="pun">--.</span><span class="lit">1</span><span class="pln"> root root </span><span class="lit">23K</span><span class="typ">Dec</span><span class="lit">17</span><span class="lit">2014</span><span class="pln"> README</span>
<span class="pln">drwxr</span><span class="pun">-</span><span class="pln">xr</span><span class="pun">-</span><span class="pln">x</span><span class="pun">.</span><span class="lit">19</span><span class="pln"> root root </span><span class="lit">4.0K</span><span class="typ">Jul</span><span class="lit">14</span><span class="lit">13</span><span class="pun">:</span><span class="lit">10</span><span class="pln"> web</span>
这些是我们可以安装的扩展。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="lit">2.x</span><span class="pun">]#</span><span class="kwd">ls</span>
<span class="pln">authent</span><span class="pun">-</span><span class="pln">external itop</span><span class="pun">-</span><span class="pln">backup itop</span><span class="pun">-</span><span class="pln">config</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">problem</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">service</span><span class="pun">-</span><span class="pln">mgmt</span><span class="pun">-</span><span class="pln">provider itop</span><span class="pun">-</span><span class="pln">welcome</span><span class="pun">-</span><span class="pln">itil</span>
<span class="pln">authent</span><span class="pun">-</span><span class="pln">ldap itop</span><span class="pun">-</span><span class="pln">bridge</span><span class="pun">-</span><span class="pln">virtualization</span><span class="pun">-</span><span class="pln">storage itop</span><span class="pun">-</span><span class="pln">datacenter</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">profiles</span><span class="pun">-</span><span class="pln">itil itop</span><span class="pun">-</span><span class="pln">sla</span><span class="pun">-</span><span class="pln">computation version</span><span class="pun">.</span><span class="pln">xml</span>
<span class="pln">authent</span><span class="pun">-</span><span class="kwd">local</span><span class="pln"> itop</span><span class="pun">-</span><span class="pln">change</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">endusers</span><span class="pun">-</span><span class="pln">devices itop</span><span class="pun">-</span><span class="pln">request</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">storage</span><span class="pun">-</span><span class="pln">mgmt wizard</span><span class="pun">-</span><span class="pln">icons</span>
<span class="pln">installation</span><span class="pun">.</span><span class="pln">xml itop</span><span class="pun">-</span><span class="pln">change</span><span class="pun">-</span><span class="pln">mgmt</span><span class="pun">-</span><span class="pln">itil itop</span><span class="pun">-</span><span class="pln">incident</span><span class="pun">-</span><span class="pln">mgmt</span><span class="pun">-</span><span class="pln">itil itop</span><span class="pun">-</span><span class="pln">request</span><span class="pun">-</span><span class="pln">mgmt</span><span class="pun">-</span><span class="pln">itil itop</span><span class="pun">-</span><span class="pln">tickets</span>
<span class="pln">itop</span><span class="pun">-</span><span class="pln">attachments itop</span><span class="pun">-</span><span class="pln">config itop</span><span class="pun">-</span><span class="pln">knownerror</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">service</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">virtualization</span><span class="pun">-</span><span class="pln">mgmt</span>
在解压的目录下,使用如下的 cp 命令将不同的数据模型从web 下的 datamodels 目录下复制到 extensions 目录,来迁移需要的扩展。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="lit">2.x</span><span class="pun">]#</span><span class="kwd">pwd</span>
<span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/</span><span class="pln">html</span><span class="pun">/</span><span class="pln">itop</span><span class="pun">/</span><span class="pln">web</span><span class="pun">/</span><span class="pln">datamodels</span><span class="pun">/</span><span class="lit">2.x</span>
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="lit">2.x</span><span class="pun">]#</span><span class="kwd">cp</span><span class="pun">-</span><span class="pln">r itop</span><span class="pun">-</span><span class="pln">request</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">service</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">service</span><span class="pun">-</span><span class="pln">mgmt itop</span><span class="pun">-</span><span class="pln">config itop</span><span class="pun">-</span><span class="pln">change</span><span class="pun">-</span><span class="pln">mgmt </span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/</span><span class="pln">html</span><span class="pun">/</span><span class="pln">itop</span><span class="pun">/</span><span class="pln">web</span><span class="pun">/</span><span class="pln">extensions</span><span class="pun">/</span>
安装 iTop web界面
大多数服务端设置和配置已经完成了。最后我们安装web界面来完成安装。
打开浏览器使用ip地址或者完整域名来访问iTop 的 web目录。
<span class="pln">http</span><span class="pun">:</span><span class="com">//servers_ip_address/itop/web/</span>
你会被重定向到iTOP的web安装页面。让我们按照要求配置,就像在这篇教程中做的那样。
验证先决要求
这一步你就会���到验证完成的欢迎界面。如果你看到了一些警告信息,你需要先安装这些软件来解决这些问题。
mcrypt missing
这一步有一个叫php mcrypt的可选包丢失了。下载下面的rpm包接着尝试安装php mcrypt包。
<span class="pun">[</span><span class="pln">root@centos</span><span class="pun">-</span><span class="lit">7</span><span class="pun">~]#</span><span class="kwd">yum</span><span class="pln"> localinstall php</span><span class="pun">-</span><span class="pln">mcrypt</span><span class="pun">-</span><span class="lit">5.3</span><span class="pun">.</span><span class="lit">3</span><span class="pun">-</span><span class="lit">1.el6.x86</span><span class="pln">_64</span><span class="pun">.</span><span class="pln">rpm libmcrypt</span><span class="pun">-</span><span class="lit">2.5</span><span class="pun">.</span><span class="lit">8</span><span class="pun">-</span><span class="lit">9.el6.x86</span><span class="pln">_64</span><span class="pun">.</span><span class="pln">rpm</span><span class="pun">.</span>
成功安装完php-mcrypt后,我们需要重启apache服务,接着刷新页面,这时验证应该已经OK。
安装或者升级 iTop
现在我们要在没有安装iTOP的服务器上选择全新安装。
Install New iTop
iTop 许可协议
勾选接受 iTOP所有组件的许可协议,并点击“NEXT”。
License Agreement
数据库配置
现在我们输入数据库凭据来配置数据库连接,接着选择如下选择创建新数据库。
DB Connection
管理员账户
这一步中我们会输入它的登录信息来配置管理员账户。
Admin Account
杂项参数
让我们选择额外的参数来选择你是否需要安装一个带有演示内容的数据库或者使用全新的数据库,接着下一步。
Misc Parameters
iTop 配置管理
下面的选项允许你配置在iTOP要管理的元素类型,像CMDB、数据中心设备、存储设备和虚拟化这些东西在iTOP中是必须的。
Conf Management
服务管理
选择一个最能描述你的IT设备和环境之间的关系的选项。因此我们这里选择为服务提供商的服务管理。
Service Management
iTop Tickets 管理
从不同的可用选项我们选择符合ITIL Tickets管理选项来管理不同类型的用户请求和事件。
Ticket Management
改变管理选项
选择不同的ticket类型以便管理可用选项中的IT设备变更。我们选择ITTL变更管理选项。
ITIL Change
iTop 扩展
这一节我们选择额外的扩展来安装或者不选直接跳过。
iTop Extensions
准备开始web安装
现在我们开始准备安装先前先前选择的组件。我们也可以下拉这些安装参数来浏览我们的配置。
确认安装参数后点击安装按钮。
Installation Parameters
让我们等待进度条来完成安装步骤。它也许会花费几分钟来完成安装步骤。
iTop Installation Process
iTop安装完成
我们的iTOP安装已经完成了,只要如下一个简单的手动操作就可以进入到iTOP。
iTop Done
欢迎来到iTop (IT操作门户)
itop welcome note
iTop 面板
你这里可以配置任何东西,服务、计算机、通讯录、位置、合同、网络设备等等。你可以创建你自己的。事实是刚安装的CMDB模块是每一个IT人员的必备模块。
iTop Dashboard
总结
ITOP是一个最棒的开源桌面服务解决方案。我们已经在CentOS 7上成功地安装和配置了。因此,iTOP最强大的一方面是它可以很简单地通过扩展来自定义。如果你在安装中遇到任何问题欢迎评论。
via: http://linoxide.com/tools/setup-itop-centos-7/
作者:Kashif Siddique 译者:geekpi 校对:wxy