CentOS 6.0安装GLPI 0.78总结

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

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
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
#!/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
#!/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
#!/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
#!/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
#!/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
#!/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


3.安装方法直接用ssh上传到/root目录解压tar -zxvf然后sh install.sh 一路回车即可,下面是安装信息。

Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Setting up Install Process
Package 1:make-3.81-19.el6.i686 already installed and latest version
Package gcc-4.4.6-3.el6.i686 already installed and latest version
Package gcc-c++-4.4.6-3.el6.i686 already installed and latest version
Package glibc-devel-2.12-1.47.el6_2.5.i686 already installed and latest version
Package glibc-headers-2.12-1.47.el6_2.5.i686 already installed and latest version
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package automake-1.11.1-1.2.el6.noarch already installed and latest version
Package bzip2-devel-1.0.5-7.el6_0.i686 already installed and latest version
Package zlib-devel-1.2.3-27.el6.i686 already installed and latest version
Package ncurses-devel-5.7-3.20090208.el6.i686 already installed and latest version
Package libjpeg-devel-6b-46.el6.i686 already installed and latest version
Package 2:libpng-devel-1.2.46-1.el6_1.i686 already installed and latest version
Package libtiff-devel-3.9.4-1.el6_0.3.i686 already installed and latest version
Package freetype-devel-2.3.11-6.el6_1.8.i686 already installed and latest version
Package pam-devel-1.1.1-10.el6.i686 already installed and latest version
Package openssl-devel-1.0.0-20.el6_2.1.i686 already installed and latest version
Package libXpm-3.5.8-2.el6.i686 already installed and latest version
No package libX11libxml2-devel available.
Package gettext-devel-0.17-16.el6.i686 already installed and latest version
Package pcre-devel-7.8-3.1.el6.i686 already installed and latest version
Package mysql-5.1.52-1.el6_0.1.i686 already installed and latest version
Package mysql-server-5.1.52-1.el6_0.1.i686 already installed and latest version
Package httpd-2.2.15-15.el6.centos.i686 already installed and latest version
Package php-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-devel-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-gd-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-common-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-mysql-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-devel-5.3.3-3.el6_2.5.i686 already installed and latest version
Package 1:php-pear-1.9.4-4.el6.noarch already installed and latest version
Package php-imap-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-ldap-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-odbc-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-xml-5.3.3-3.el6_2.5.i686 already installed and latest version
Package php-xmlrpc-5.3.3-3.el6_2.5.i686 already installed and latest version
Package mod_perl-2.0.4-10.el6.i686 already installed and latest version
Package httpd-2.2.15-15.el6.centos.i686 already installed and latest version
Package mysql-5.1.52-1.el6_0.1.i686 already installed and latest version
Package mysql-server-5.1.52-1.el6_0.1.i686 already installed and latest version
Package php-mysql-5.3.3-3.el6_2.5.i686 already installed and latest version
Package 4:perl-5.10.1-119.el6_1.1.i686 already installed and latest version
Package mod_perl-2.0.4-10.el6.i686 already installed and latest version
Package perl-XML-Simple-2.18-6.el6.noarch already installed and latest version
Package perl-Compress-Zlib-2.020-119.el6_1.1.i686 already installed and latest version
Package perl-DBI-1.609-4.el6.i686 already installed and latest version
Package perl-DBD-MySQL-4.013-3.el6.i686 already installed and latest version
Package perl-Net-IP-1.25-13.el6.noarch already installed and latest version
Package php-mbstring-5.3.3-3.el6_2.5.i686 already installed and latest version
Nothing to do
Starting mysqld:                                           [  OK  ]
Digest-SHA1-2.02/
Digest-SHA1-2.02/README
Digest-SHA1-2.02/MANIFEST
Digest-SHA1-2.02/fip180-1.html
Digest-SHA1-2.02/SHA1.pm
Digest-SHA1-2.02/typemap
Digest-SHA1-2.02/fip180-1.gif
Digest-SHA1-2.02/t/
Digest-SHA1-2.02/t/badfile.t
Digest-SHA1-2.02/t/sha1.t
Digest-SHA1-2.02/Changes
Digest-SHA1-2.02/Makefile.PL
Digest-SHA1-2.02/SHA1.xs
Checking if your kit is complete...
Looks good
Writing Makefile for Digest::SHA1
cp SHA1.pm blib/lib/Digest/SHA1.pm
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp  -typemap /usr/share/perl5/ExtUtils/typemap -typemap typemap  SHA1.xs > SHA1.xsc && mv SHA1.xsc SHA1.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables   -DVERSION=\"2.02\" -DXS_VERSION=\"2.02\" -fPIC "-I/usr/lib/perl5/CORE"   SHA1.c
Running Mkbootstrap for Digest::SHA1 ()
chmod 644 SHA1.bs
rm -f blib/arch/auto/Digest/SHA1/SHA1.so
gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -L/usr/local/lib SHA1.o  -o blib/arch/auto/Digest/SHA1/SHA1.so        \
                \
         
chmod 755 blib/arch/auto/Digest/SHA1/SHA1.so
cp SHA1.bs blib/arch/auto/Digest/SHA1/SHA1.bs
chmod 644 blib/arch/auto/Digest/SHA1/SHA1.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/badfile.t .. ok
t/sha1.t ..... ok
All tests successful.
Files=2, Tests=7,  0 wallclock secs ( 0.01 usr  0.01 sys +  0.00 cusr  0.01 csys =  0.03 CPU)
Result: PASS
Manifying blib/man3/Digest::SHA1.3pm
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Appending installation info to /usr/lib/perl5/perllocal.pod
Apache-DBI-1.05
Apache-DBI-1.05/lib
Apache-DBI-1.05/Changes
Apache-DBI-1.05/traces.txt
Apache-DBI-1.05/t
Apache-DBI-1.05/MANIFEST
Apache-DBI-1.05/eg
Apache-DBI-1.05/TODO
Apache-DBI-1.05/Makefile.PL
Apache-DBI-1.05/README
Apache-DBI-1.05/META.yml
Apache-DBI-1.05/eg/startup.pl
Apache-DBI-1.05/t/10mysql.t
Apache-DBI-1.05/lib/Apache
Apache-DBI-1.05/lib/Apache/AuthDBI.pm
Apache-DBI-1.05/lib/Apache/DBI.pm
Checking if your kit is complete...
Looks good
Writing Makefile for Apache::DBI
cp lib/Apache/DBI.pm blib/lib/Apache/DBI.pm
cp lib/Apache/AuthDBI.pm blib/lib/Apache/AuthDBI.pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/10mysql.t ..
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

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

转载注明出处:https://www.heiqu.com/22656.html