OCS inventory-NG 服务器及客户端安装配置.doc_第1页
OCS inventory-NG 服务器及客户端安装配置.doc_第2页
OCS inventory-NG 服务器及客户端安装配置.doc_第3页
OCS inventory-NG 服务器及客户端安装配置.doc_第4页
OCS inventory-NG 服务器及客户端安装配置.doc_第5页
免费预览已结束,剩余24页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

OCS inventory-NG 服务器及客户端安装配置OCS inventory-NG 服务器安装 Linux环境:centos5.5(32bit)撰写人:uchen日期:2010/7/8 JinhuaBlog: 目录1设置管理服务器。2在 Linux下运行。2.1要求。2.2安装通讯服务器所需的Perl模块。2.3安装管理控制台所需的PHP模块。2.4安装管理服务器。2.5配置管理服务器。2.6升级管理服务器。3在Windows下运行。3.1安装管理服务器。3.2配置管理服务器。3.3更新组件安全的XAMPP。3.4升级管理服务器。1:设置管理服务器管理服务器是由4个主要部分组成:1. Database server:数据库服务器,存储库存资料 。 2. Communication server:通信服务器,负责处理和代理客户端之间的HTTP通信数据库服务器。 3. Administration console:管理控制台,允许管理员使用自己喜爱的浏览器查询数据库服务器。 4. Deployment server:部署服务器,存储所有软件包部署配置(需要HTTPS的!) 。 这4个基本组件,可以布署在同一台服务器上,也可以为了使负载平衡布署在不同的服务器。如果有10000台客户端服务器,我们建议至少使用2台物理服务器,一台用于数据库服务器+主机通信服务器,另一台存取数据库管理服务器副本+管理控制台服务器 + Deployement服务器。OCS Inventory NG 通讯架构。注:如果您想使用多台计算机当做OCS Inventory NG管理服务器,我们建议您设置在Linux服务器上了。Windows环境下的OCS Inventory NG服务器作为一个综合包,包括所有必需的组件(apache的,用Perl,PHP,的mod_perl,MySQL的)。Database server :数据库服务器,目前只能支持的MySQL 4.1或更高,InnoDB的引擎。Communication server:通信服务器,需要的Apache Web服务器1.3.X/2.X并支持perl模块可写。为什么?因为Perl脚本在Apache启动时被编译,而不是在每次请求。这样的话,性能会更加的优化。通信服务器根据您的分布,会需要一些额外的perl模块支持。Deployment server :具有SSL的服务器Administration console :管理控制台,需要较高版本的PHP,如PHP4.1(或更高)和Apache1.3.X/2.X Web服务器。管理控制台用来完成包的部署,需要PHP中启用ZIP和GD模块。2:在 Linux下运行我们假设你有: MySQL数据库服务器已经正常运行并且通讯侦听端口3306默认的TCP /IP已经启用。 Apache Web服务器已经安装,并且服务器上运行着通信服务器和管理服务器。 PHP和Perl都已安装,并且Apache Web服务器可用作于管理控制台。 Perl和mod_perl都已安装,并且Apache Web服务器可用作于通信服务器。 2.1:要求Apache version 1.3.33 or higher / Apache version 2.0.46 or higher. Mod_perl version 1.29 or higher. Mod_php version 4.3.2 or higher. PHP 4.3.2 or higher, with ZIP and GD support enabled.PERL 5.6 or higher. Perl module XML:Simple version 2.12 or higher. Perl module Compress:Zlib version 1.33 or higher. Perl module DBI version 1.40 or higher. Perl module DBD:Mysql version 2.9004 or higher. Perl module Apache:DBI version 0.93 or higher. Perl module Net:IP version 1.21 or higher. Perl module SOAP:Lite version 0.66 or higher (optional) Perl module XML:Entities version 0.03 or higher Perl module XML:SAX version 0.15 or higher Perl module Apache2:SOAP version 0.73 or higher MySQL version 4.1.0 or higher with InnoDB engine active.Make utility such as GNU make.注: OCS Inventory NG Server 安装的过程中会检查这些组件,如果这些组件不存在,则无法安装。2.2:安装通信服务器所需的Perl模块通信服务器需要安装apache web服务器和perl5脚本语言,以及一些额外的perl5模块(请查看前面的要求)。它是作为处理通过http访问到一个虚拟目录“/ocsinventory”的apache模块。你必须有root权限来设置所需的Perl模块。在Fedora / Redhat的Linux操作系统中,你可以使用“yum”来设置所需模块组成:yum install perl-XML-Simpleyum install perl-Compress-Zlibyum install perl-DBIyum install perl-DBD-MySQLyum install perl-Apache-DBIyum install perl-Net-IPyum install perl-SOAP-Liteyum install perl-XML-Entitiesyum install perl-XML-SAXyum install perl-Apache2-SOAP*在Debian的Linux操作系统中,你可以使用“apt-get”来设置所需模块组成:apt-get install libxml-simple-perlapt-get install libcompress-zlib-perlapt-get install libdbi-perlapt-get install libdbd-mysql-perlapt-get install libapache-dbi-perlapt-get install libnet-ip-perlapt-get install libsoap-lite-perlcpan -i XML:Entities在Gentoo的Linux操作系统中,你可以使用“emerge”,以获得所需的设置模块:emerge dev-perl/XML-Simpleemerge perl-core/IO-Compressemerge dev-perl/Apache-DBIemerge dev-perl/Net-IPemerge dev-perl/SOAP-Liteemerge app-portage/g-cpang-cpan -i XML:Entities如果预编译包不能用于您的部署, 你可以从 下载源代码包,然后编辑安装到你的系统例如:tar xvzf package_name.tar.gzcd package_nameperl Makefile.PLmakemake testmake install您还可以使用CPAN的脚本来安装缺少的模块,例如:cpan -i Compress:Zlib注:如果您不使用系统perl的解释器,而是另一个如XAMPP/LAMPP Perl的解释器,您必须调用XAMPP/LAMPP中的perl的解释器,而不是系统中的,这个在windows下特别注意。通过指定完整路径到您的Perl解释器。例如:/opt/lampp/bin/perl Makefile.PL2.3:安装管理控制台所需PHP模块Web管理控制台需要Apache Web服务器和PHP 4脚本语言,以及一些额外的PHP模块(请查看前面的要求)你必须要有root权限来安装Administration console,并且要安装zip来支持php.在Fedora / Redhat的Linux操作系统中,你可以使用“yum”来安装PHP的ZIP支持:yum install php-pecl-zip如是RedHatEL,可以从这里来下载RPM包安装.Fedora 7.X以及之后的版本,可以使用以下方式安装:yum install php-common在Debian的Linux操作系统中,你可以使用“apt-get”来下载安装:apt-get install libphp-pclzip最好的方法是通过使用PHP的PECL的ZIP包来自动下载安装PHP模块(必须安装php-devel),例如:pear install zip如果你即没有安装pear,又不能连接到internet,你可以从/package/zip下载“zip-1.3.1.tgz”来安装tar xvzf zip-1.3.1.tgzcd zip-1.3.1phpize./configuremakemake install安装GD支持PHP在Fedora / Redhat的Linux操作系统中,你可以使用“yum”来安装:yum install php-gd在Debian的Linux操作系统中,你可以使用“apt-get”来安装:apt-get install php-gd2.4:安装管理服务器你必须要有root权限来安装管理服务器注:请确保Mysql数据库服务器中InnoDB模块已经激活生效,打开f并确保没有”skip-innodb”或这行已经被”#”注释掉下载“OCSNG_UNIX_SERVER-1.02.3.tar.gz”并解压wget /ocsinventory-server/stable-1.02/stable-release-1.02.3/+download/OCSNG_UNIX_SERVER-1.02.3.tar.gztar xvzf OCSNG_UNIX_SERVER-1.02.1.tar.gzcd OCSNG_UNIX_SERVER-1.02.1再运行setup.sh这个shell脚本文件sh setup.sh注意:安装程序时会在同目录下生成一个日志文件“ocs_server_setup.log”。如果您遇到任何错误,请参阅详细的讯息内这个日志错误注意:如果你从OCS Inventory NG 1.01及以前的升级,你必须首先删除任何通信服务器Apache的配置文件。输入“Y”或回车,来确认,然后输入MySQL服务器主机地址,在大多数情况下是localhost。指定 mysql 服务器的运行端口,默认是3306 。如有修改,请根据您的实际修改端口,直接回车即可。指定apache程序的二进制执行文件位置,也就是启动apache服务器的指令路径,通过指定apache程序的二进制执行文件位置,OCS_SERVER安装程序来找到apache的主配置文件, 一般为“/usr/sbin/httpd”。如果你安装的路径不同或采用的是系统自带的apache,请根据自己的情况进行调整。 我们在这边填写上“/usr/local/apache/bin/apachectl”。指定 apache 服务器的主配置文件路径,确认路径是否正确,如果没有错误,直接回车即可,根据实际情况修改。一般为“/etc/apache/conf/apache.conf”或“/etc/httpd/conf/httpd.conf”。我们根据apache的安装路径,这里填写上“/usr/local/apache/conf/httpd.conf”。指定运行 APACHE 的用户,这个可以在APACHE的主配置文件里查看到。一般为“apache”或“www”。我们输入”apache”。指定运行 APACHE 的用户组,这个可以在 APACHE 的主配置文件里查看到。一般为“apache”或“www”。我们输入”apache”。输入或验证路径,包括配置Apache的目录。这个目录是apache存放特定模块的配置文件目录,一般情况下,这个目录是“/etc/httpd/conf.d”或 “/etc/apache/conf.d”。我们这里指定了/usr/local/apache/conf/extra。+-+Checking for Apache Include configuration directory |+-+Setup found Apache Include configuration directory inSetup will put OCS Inventory NG Apache configuration in this directory.Where is Apache Include configuration directory ?/usr/local/apache/conf/extra /指定 apache 保存指定模块配置文件的目录OK, Apache Include configuration directory /usr/local/apache/conf found 注意:通过您的服务器上的软件库,您可以查看mod_perl的版本*在RedHat/ Fedora,Mandriva的linux发行版本中,可以使用”rpm -q mod_perl”查看*在Debian,Ubuntu的linux发行版本中,可以使用”dpkg -I libapache*-mod-perl*”指定 perl 的二进制目录,如果使用系统自带的 perl,直接回车即可,如果你自己安装了perl的话,就指定正确的路径。是否安装通信服务器,当然要啦,输入y这一步,安装程序会提示你验证或输入通信服务器存放日志的目录路径,如果它不存在,这个目录将被创建。这里直接回车,默认就可以。接下来,安装程序要检测所需的perl模块(查看需求) XML:Simple version 2.12 or higher Compress:Zlib version 1.33 or higher DBI version 1.40 or higher DBD:mysql version 2.9004 or higher Apache:DBI version 0.93 or higher Net:IP version 1.21 or higher SOAP:Lite version 0.66 or higher 如果以上的任何一个没有安装,程序都会自动退出,停止安装。如果一切OK,安装程序将安装通讯服务器: Configure Communication server PERL module. Build Communication server PERL module. Install Communication server PERL module into PERL standard library directories. Create Communication server log directory (/var/log/ocsinventory-NG by default). Configure daily log rotation for Communication server (file /etc/logrotate.d/ocsinventory-NG by default) Create Apache configuration file (ocsinventory.conf). If you are using Apache configuration directory, this file will be copied under this directory. Otherwise, you will be prompted to add content of this file to the end of Apache main configuration file. +-+Checking for required Perl Modules |+-+Checking for DBI PERL moduleFound that PERL module DBI is available.Checking for Apache:DBI PERL moduleFound that PERL module Apache:DBI is available.Checking for DBD:mysql PERL moduleFound that PERL module DBD:mysql is available.Checking for Compress:Zlib PERL module.Found that PERL module Compress:Zlib is available.Checking for XML:Simple PERL moduleFound that PERL module XML:Simple is available.Checking for Net:IP PERL moduleFound that PERL module Net:IP is available.+-+Checking for optional Perl Modules |+-+Checking for SOAP:Lite PERL moduleFound that PERL module SOAP:Lite is available.Checking for XML:Entities PERL moduleFound that PERL module XML:Entities is available.+-+OK, looks good 上面是在检查是否已经安装了需要的 perl 模块,所有的测试都是 available,都通过啦,没问题。+-+Configuring Communication server Perl modules |+-+Checking if your kit is completeLooks goodWriting Makefile for Apache:Ocsinventory+-+| OK, looks good | | Preparing Communication server Perl modules |+-+-+| OK, prepare finshed | | Installing Communication server Perl modules |+-+-+| OK, Communication server Perl modules install finished;-)| Creating Communication server log directory |+-+Creating Communication server log directory /var/log/ocsinventory-server.Fixing Communication server log directory files permissions.Configuring logrotate for Communication server.Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NGWriting communication server logrotate to file /etc/logrotate.d/ocsinventory-server+-+| OK, Communication server log directory created |+-+至此,通信服务器已经安装完成,接下来安装程序将提示您设置管理控制台了。输入“Y”或验证设置管理控制台,输入“N”的管理控制台跳过安装。我们这里当然选择“y”,其实默认也是选“y”,直接回车就可以。+-+| Now configuring Apache web server |+-+To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,Setup can name Communication Server Apache configuration filez-ocsinventory-server.conf instead of ocsinventory-server.conf.Do you allow Setup renaming Communication Server Apache configuration fileto z-ocsinventory-server.conf (y/n) ? 直接回车是否允许安装程序重命名通信服务器的apache配置文件到z-ocsinventory-server.conf,输入 y 吧。OK, using z-ocsinventory-server.conf as Communication Server Apache configuration fileRemoving old communication server configuration to file /usr/local/apache/conf/ocsinventory.confWriting communication server configuration to file /usr/local/apache/conf/ocsinventory-server.conf+-+|OK, Communication server setup sucessfully finished | | Please, review /usr/local/apache/conf/ocsinventory-server.conf| to ensure all is good. Then restart Apache daemon.+-+Do you wish to setup Administration Server (Web Administration Console)on this computer (y/n)? y是否安装管理服务器(WEB 管理控制台)?当然要啦,输入y+-+| Checking for Administration Server directories |+-+CAUTION: Setup now install files in accordance with Filesystem HierarchyStandard. So, no file is installed under Apache root document directory(Refer to Apache configuration files to locate it).If youre upgrading from OCS Inventory NG Server 1.01 and previous, YOUMUST REMOVE (or move) directories ocsreports and download from Apacheroot document directory.If you choose to move directory, YOU MUST MOVE download directory toAdministration Server writable/cache directory (by default/var/lib/ocsinventory-server), especialy if you use deployement feature.Do you wish to continue (y/n)? yAssuming directories ocsreports and download removed fromApache root document directory.Where to copy Administration Server static files for PHP Web Console/usr/share/ocsinventory-server ?复制管理服务器的 PHP WEB 控制台的静态文件到哪里?直接回车即可OK, PHP files copied into /usr/share/ocsinventory-server/ocsreports Where to create writable/cache directories for deployement packages andIPDiscover /var/lib/ocsinventory-server ?开发包和 IPDiscover 的可写/缓存指定在什么地方?直接回车即可OK, writable/cache directory is /var/lib/ocsinventory-server +-+|Checking for required Perl Modules |+-+Checking for DBI PERL moduleFound that PERL module DBI is available.Checking for DBD:mysql PERL moduleFound that PERL module DBD:mysql is available.Checking for XML:Simple PERL moduleFound that PERL module XML:Simple is available.Checking for Net:IP PERL moduleFound that PERL module Net:IP is available.+-+|Installing files for Administration server |+-+Creating PHP directory /usr/share/ocsinventory-server/ocsreports.Copying PHP files to /usr/share/ocsinventory-server/ocsreports.Fixing permissions on directory /usr/share/ocsinventory-server/ocsreports.Creating database configuration file /usr/share/ocsinventory-server/ocsreports/dbconfig.inc.php.Creating IPDiscover directory /var/lib/ocsinventory-server/ipd.Fixing permissions on directory /var/lib/ocsinventory-server/ipd.Creating packages directory /var/lib/ocsinventory-server/download.Fixing permissions on directory /var/lib/ocsinventory-server/download.Configuring IPDISCOVER-UTIL Perl script.Installing IPDISCOVER-UTIL Perl script.Fixing permissions on IPDISCOVER-UTIL Perl script.Writing Administration server configuration to file /usr/local/apache/conf/ocsinventory-reports.conf+-+|OK, Administration server installation finished | | |Please, review /usr/local/apache/conf/ocsinventory-reports.conf| to ensure all is good and restart Apache daemon. | | Then, point your browser to http:/server/ocsreports| to configure database server and create/update schema. |+-+Setup has created a log file /usr/local/OCSNG_UNIX_SERVER_1.02_RC2/ocs_server_setup.log. Please, save this file.If you encounter error while running OCS Inventory NG Management server,we can ask you to show us his content !DONT FORGET TO RESTART APACHE DAEMON !Enjoy OCS Inventory NG 到此,OCS Inventory server已经安装完成修改 apache 的配置文件rootmail OCSNG_UNIX_SERVER_1.02_RC2 # vi /usr/local/apache/conf/httpd.conf#在 apache 的主配置文件的末尾添加下面的内容# OCS-NG REPORTSInclude conf/extra/ocsinventory-reports.conf# OCS-NG SERVERInclude conf/extra/z-ocsinventory-server.confro

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论