安裝配置資產管理軟件GLPI


GLPI是法語Gestionnaire libre de parc informatique的縮寫,是一款歷史悠久的資產管理軟件;

GLPI提供功能全面的IT資源管理接口,可以用來建立數據庫全面管理IT的電腦,顯示器,服務器,打印機,網絡設備,電話,甚至硒鼓和墨盒等。提供Helpdesk用戶支持平台;聯系人,合同,合作商,以及文檔的管理;提供資源預定,知識庫的管理等功能。

 

GLPI部署:

環境說明

[root@localhost1 ~]# cat /etc/redhat-release 
CentOS release 6.5 (Final)
[root@localhost1 ~]# uname -a
Linux localhost1 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

  

配置yum源      如果機器為CentOS7.x  則將下的6改為7即可

[root@localhost1 ~]# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.TSL8x9: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...   ########################################### [100%]
1:epel-release ########################################### [100%]
[root@localhost1 ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
warning: /var/tmp/rpm-tmp.cXBiyn: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...   ########################################### [100%]
1:remi-release ########################################### [100%]

  

安裝PHP

[root@localhost1 ~]# yum  -y install  php-imap
[root@localhost1 ~]# yum  -y install  php-ldap
[root@localhost1 ~]# yum -y install  php-gd
[root@localhost1 ~]# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpuni-PHPUnit php-pecl-xdebug php-pecl-xhprof              #需要手動輸入Y,敲回車

  

安裝Apache、MySQL和一些依賴

[root@localhost1 ~]# yum -y install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel mysql mysql-server httpd

  

配置MySQL

[root@localhost1 ~]# service mysqld start
[root@localhost1 ~]# mysql
mysql> use mysql;
mysql> update user set password=PASSWORD("PASSWORD")where user="root";
mysql> FLUSH PRIVILEGES;
mysql> create database GLPI;
mysql> quit
Bye
[root@localhost1 ~]# chkconfig --levels 235 mysqld on

  

配置GLPI

[root@localhost1 ~]# cd /usr/src/
[root@localhost1 src]# curl -O -L https://github.com/glpi-project/glpi/releases/download/9.1.3/glpi-9.1.3.tgz
[root@localhost1 src]# tar xf glpi-9.1.3.tgz -C /var/www/html/
[root@localhost1 src]# chown -R apache:apache /var/www/html/
[root@localhost1 src]# chkconfig --level 2345 httpd on
[root@localhost1 src]# vim /etc/httpd/conf/httpd.conf
 276 ServerName www.example.com:80
 292 DocumentRoot "/var/www/html/glpi"

  

 

進入控制界面

 

刪除安裝文件

 [root@localhost1 src]# rm /var/www/html/glpi/install/install.php 

  

雙機進行修改管理員密碼

 

 

 

 

 到此GLPI已經部署完成

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM