GLPI是法語Gestionnaire libre de parc informatique的縮寫,是一款歷史悠久的資產管理軟件;php
GLPI提供功能全面的IT資源管理接口,能夠用來創建數據庫全面管理IT的電腦,顯示器,服務器,打印機,網絡設備,電話,甚至硒鼓和墨盒等。提供Helpdesk用戶支持平臺;聯繫人,合同,合做商,以及文檔的管理;提供資源預約,知識庫的管理等功能。html
GLPI部署:mysql
環境說明linux
[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便可c++
[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%]
安裝PHPgit
[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和一些依賴github
[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
配置MySQLsql
[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"
進入控制界面apache
刪除安裝文件
[root@localhost1 src]# rm /var/www/html/glpi/install/install.php
雙機進行修改管理員密碼
到此GLPI已經部署完成