CentOS 6.0安装GLPI 0.78+OCS总结

GLPI 是一个信息资源管理器运行在Linux下。你可以用它来给你公司建立一个资产清单(计算机,软件,打印机)数据库。它的增强的功能可以是管理员的日常工作简单化,例如 带有邮件提醒功能的工作跟踪系统等。它最首要的功能包括:1)所有技术资源精确的资产清单。资产的所有属性将被存储在同一个数据中。2)管理流程、维护工 作的历史。这是一个动态的应用,它直接连把需要发出支持请求的用户和技术人员连接起来.

CentOS 6.0安装GLPI 0.78+OCS总结

一些常用的软件下载地址如下:

Server
Client (windows)
GLPI安装包
手动下载以下模块
Digest-SHA1-2.02
Apache-DBI-1.06.tar.gz(Apache 模块)
SOAP-Lite-0.69.tar.gz   (prel 模块)
XML-Entities-1.0000.tar.gz (Prel 模块)

下载在Linux公社的1号FTP服务器里,下载地址:

FTP地址:ftp://www.linuxidc.com

用户名:

密码:

在 2012年LinuxIDC.com\2月\CentOS 6.0安装GLPI 0.78+OCS总结

下载方法见

1.首先在vmware上安装好centos6.0 base基本包系统
 
2. 安装install.sh脚本
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
yum -y install make gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11libxml2-devel gettext-devel pcre-devel mysql mysql-server httpd php php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc mod_perl httpd mysql mysql-server php-mysql perl mod_perl perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP php-mbstring
chkconfig mysqld on
service mysqld start
mysqladmin -uroot password 123456
sh 1&&sh 2&&sh 3&&sh 4&&sh 5&&sh 6
 
[root@localhost glpi]# ls //查看glpi里面的内容如下:
1  3  5  Apache-DBI-1.05.tar.gz   glpi-0.78.tar.gz  OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz  test.txt
2  4  6  Digest-SHA1-2.02.tar.gz  install.sh        SOAP-Lite-0.69.tar.gz                                    XML-Entities-1.0000.tar.gz
[root@localhost glpi]# cat 1//查看1的脚本
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf Digest-SHA1-2.02.tar.gz
cd Digest-SHA1-2.02
perl Makefile.PL
make test
make
make install
[root@localhost glpi]# cat 2//查看2的脚本
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf Apache-DBI-1.05.tar.gz
cd Apache-DBI-1.05
perl Makefile.PL
make test
make
make install
[root@localhost glpi]# cat 3//查看3的脚本
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf SOAP-Lite-0.69.tar.gz
cd SOAP-Lite-0.69
perl Makefile.PL 
make
make test
make install
[root@localhost glpi]# cat 4 //查看4的内容
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf XML-Entities-1.0000.tar.gz
cd XML-Entities
perl Makefile.PL
make
make test
make install
[root@localhost glpi]# cat 5//查看5的内容
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz
cd ocsinventory-server-1.3.2/
sh setup.sh
[root@localhost glpi]# cat 6//查看6的内容
#!/bin/bash
PATH=/root/glpi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH
tar -zxvf glpi-0.78.tar.gz
cp -rf glpi/* /var/www/html/
chmod 777 -R /var/www/html/config/
chmod 777 -R /var/www/html/files/
echo "extension=mbstring.so" >>/etc/php.ini
mysql -uroot -p123456 -e "create database glpi;"
service httpd restart
rm -rf Digest-SHA1-2.02 Apache-DBI-1.05 SOAP-Lite-0.69 XML-Entities ocsinventory-server-1.3.2 glpi

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/559d51fbd26cabe6c61b2855ceff3c43.html