51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx

上传人:小飞机 文档编号:3059567 上传时间:2023-03-10 格式:DOCX 页数:9 大小:39.88KB
返回 下载 相关 举报
51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx_第1页
第1页 / 共9页
51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx_第2页
第2页 / 共9页
51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx_第3页
第3页 / 共9页
51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx_第4页
第4页 / 共9页
51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx_第5页
第5页 / 共9页
亲,该文档总共9页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx》由会员分享,可在线阅读,更多相关《51CTO下载开源资产管理软件OCS%2BGLPI安装配置.docx(9页珍藏版)》请在三一办公上搜索。

1、51CTO下载开源资产管理软件OCS%2BGLPI安装配置开源资产管理软件OCS+GLPI安装配置 一、 环境与所需安装包 系统环境Centos 5.5 OCS中文包下载 Server ftp:/linvinus.ru/ocs/1.3.2/OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz Client (windows) ftp:/linvinus.ru/ocs/windows-agent-1.3/OcsAgentSetup.exe GLPI安装包 手动下载以下模块 Digest-SHA1-2.02 http:/www.ultram

2、onkey.org/download/2.0.1/source/perl-Digest-SHA1/Digest-SHA1-2.02.tar.gz Apache-DBI-1.06.tar.gz(Apache 模块) SOAP-Lite-0.69.tar.gz (prel 模块) XML-Entities-1.0000.tar.gz (Prel 模块) http:/search.cpan.org/CPAN/authors/id/S/SI/SIXTEASE/XML-Entities-1.0000.tar.gz 参考文章和使用到的网址 http:/jerryboy.no- http:/search.c

3、pan.org/ http:/wiki.ocsinventory-ng.org/index.php/Tools:Packager 提示* 需要注意的地方都用红色标出来了 二、安装与配置 配置LAMP环境 #yum install -y httpd mysql mysql-server php-mysql #service mysqld start #service httpd start #chkconfig mysqld on #chkconfig httpd on 安装Digest-SHA1-2.02 # tar -zxvf Digest-SHA1-2.02.tar.gz # cd Dig

4、est-SHA1-2.02 #perl Makefile.PL #make test #make #make install Apache需要手动装的模块:Apache-DBI #tar -zxvf Apache-DBI-1.06.tar.gz #cd Apache-DBI-1.06 #perl Makefile.PL #make test #make #make install 修改mysql root密码, #mysqladmin -u root password 123456 配置开发环境 #yum install -y gcc gcc-c+ glibc-devel glibc-head

5、ers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-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 ph

6、p-odbc php-xml php-xmlrpc mod_perl 配置Perl 环境 #yum install y perl mod_perl #yum install perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP prel需要手动安装的模块:SOAP-Lite 和XML-Entities #tar -zxvf SOAP-Lite-0.69.tar.gz #cd SOAP-Lite-0.69 #perl Makefile.PL #make #make test #make install #ta

7、r -zxvf XML-Entities-0.0307.tar.gz #cd XML-Entities #perl Makefile.PL #make #make test #make install 安装OCSNG #tar-zxvf OCSNG_UNIX_SERVER-1.3.2-linvinus-with-utf8_patch.tar.gz #cd ocsinventory-server-1.3.2/ #sh setup.sh 1,脚本一路回车即可,如有错误请检查所有Perl模块是否都安装好 其中有一个选项需注意: Where to copy Administration Server

8、static files for PHP Web Console /usr/share/ocsinventory-reports ?/var/www/html/ 回车 :选择web文件存放的路径, 2,提示如下信息证明已经安装成功 DONT FORGET TO RESTART APACHE DAEMON ! Enjoy OCS Inventory NG ;-) 3,在地址栏输入 http:/serverip/ocsreports/install.php 进行安装配置 输入mysql用户密码如果本机的mysql地址是localhost, 接下来OCS会创建OCSweb库创建好后回到页面用默认ad

9、min/admin进入. 安装window客户端 1手工安装 客户端运行OcsAgentSetup.exe 安装即可,服务器地址填入OCSNG服务器地址,端口默认是80, 之后在OCS中就可以看到客户端机器的数据了 如没有看到数据,运行Ocs_contact.exe 手工采集 安装OCSNG_LINUX_AGENT客户端 安装所需要的模块 #yum install -y perl-XML-Simple perl-Compress-Zlib perl-Net-IP perl-Net-SSLeay perl-Crypt-SSLeay perl-XML-SAX perl-XML-LibXML 下载O

10、CSNG_LINUX_AGENT # wget # tar zxvf OCSNG_LINUX_AGENT_1.1.2.tar.gz -C /opt/src # cd /opt/src/OCSNG_LINUX_AGENT_1.1.2 # cp ipdiscover /usr/sbin/ipdisconver # perl Makefile.PL /若make的时候提示需要安装或升级某些模块,请根据提示安装升级。 # make # make install Do you want to configure the agent Please enter y or n? y 直接回车 Where do

11、 you want to write the configuration file? 0 - /etc/ocsinventory 1 - /usr/local/etc/ocsinventory 2 - /etc/ocsinventory-agent ? 2 /选择配置文件存放目录 Do you want to create the directory /etc/ocsinventory-agent? Please enter y or n? y 直接回车 info The config file will be written in /etc/ocsinventory/ocsinventory

12、-agent.cfg, What is the address of your ocs server? ocsinventory-ng 172.16.74.82 /输入ocsinventory-server的ip地址 Do you need credential for the server? (You probably dont) Please enter y or n? n 直接回车 /是否需要证书 Do you want to apply an administrative tag on this machine Please enter y or n? y 直接回车 /该服务器是否使用

13、管理标签 tag? Nginx-web /这个会显示在web管理控制界面中 ocsinventory agent presents: /usr/bin/ocsinventory-agent Do yo want to install the cron task in /etc/cron.d Please enter y or n? y 直接回车 /是否添加计划任务 Where do you want the agent to store its files? (You probably dont need to change it)? /var/lib/ocsinventory-agent 直

14、接回车 /选择存放agent文件目录,请根据自己的情况做修改,我们这里选择默认,即存放在/var/lib/ocsinventory-agent目录下 Do you want to create the /var/lib/ocsinventory-agent directory? Please enter y or n? y 直接回车 /是否想要创建/var/lib/ocsinventory-agent目录,当然先y,直接回车 New settings written! Thank you for using OCS Inventory Should I remove the old linux

15、_agent Please enter y or n? n 直接回车 /是否要删除旧版本的linux客户端代理,我们这里选择默认,直接回车 Do you want to use OCS-Inventory software deployment feature? Please enter y or n? y 直接回车 /是否使用软件部署功能,选择y,直接回车 Do you want to send an inventory of this machine? Please enter y or n? y 直接回车 /是否是发送这台计算机的清单,选择y,直接回车 info Accountinfo

16、file doesnt exist. I create an empty one. - Success! /当你看到这里,恭喜你,你已经成功的将该计算机的清单发送到服务器:-) 再登录web管理界面,可以查看到,以下信息: 用红框标出来的,就是刚刚安装agent的客户端,看到tag一栏是显示Nginx-web就是安装过程中的tag? 这里输入的标签内容。 配置OCS+GLPI 准备2个包: 安装: #yum install php-mbstring wget -O json-1.2.1.tgz tar -xf json-1.2.1.tgz cd json-1.2.1 phpize ./conf

17、igure make make install echo extension=json.so /etc/php.ini # 这一句根据自己的环境执行 #service httpd restart 安装GLPI #tar -zxvf glpi-0.78-RC2.tar.gz # cp -a glpi /var/www/html/ # chown -R apache:apache /var/www/html/glpi/ 让GLPI支持中文 0.78版进入glpi安装目录,修改/inc/dbmysql.class.php文件,定位到$this-dbenc 修改latin1为utf8 即可 0.74及

18、以前版本在/inc/ocsng.class.php文件中修改 配置GLPI: 在浏览器输入http:/serverip/glpi 进行配置 1,环境检测 2,选择语言 3,输入数据库帐号 4,创建新的glpi数据库 5,完成 默认的管理用户为glpi/glpi 设置GLPI的OCS方式 1. 点击 -设定-常规-存货清单 2.进入 -设定-OCSNG方式-localhost中,在通用选项中填入mysql帐号 3.在导入选项中都开启,其中use the OCSNG software dictionary 不要开启,会导致不能同步OCS软件库,机器上看不到软件 4.在 General informations 中开启所有选项 5.在 Link里开启所有选项 6.在工具-OCSNG选项中选择添加新计算机的导入. 6.配置域账号登录 7.设置AD

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号