欢迎光临
我们一直在努力

OCS Inventory NG Server Ubuntu Install 服务端安装教程

在安装OCS Ng之前需要安装Apache,Mysql,PHP和Perl

1.首先安装Apache

apt-get install apache2 apache2-doc

1.1.打开/etc/apache2/apache2.conf在最后面一行添加以下代码

ServerName $hostname_do_seu_servidor

1.2.在文件/etc/apache2/httpd.conf文件的最后一行添加以下代码支持UTF-8

AddDefaultCharset utf-8

2.安装MYSQL

apt-get install mysql-server

3.安装PHP

apt-get install php5 php5-mysql php5-gd

4.安装Perl

apt-get install libapache2-mod-perl2 libxml-simple-perl libcompress-zlib-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl

5.安装IPDISCOVER组件

apt-get install libc6-dev

6.安装 OCS Server version 2.0.5

6.1.下载 OCS Server version 2.0.5压缩包

wget http://launchpad.net/ocsinventory-server/stable-2.0/2.0.5/+download/OCSNG_UNIX_SERVER-2.0.5.tar.gz

6.2.解压压缩包运行脚本安装。

tar -zxvf OCSNG_UNIX_SERVER-2.0.tar.gz
cd OCSNG_UNIX_SERVER-2.0
./setup.sh

6.3.安装步骤

Do you wish to continue ([y]/n) ?
Which host is running database server [localhost] ?
On which port is running database server [3306] ?
Where is Apache daemon binary [/usr/sbin/apache2] ?
Where is Apache main configuration file [/etc/apache2/apache2.conf] ?
Which user account is running Apache web server [www-data] ?
Which user group is running Apache web server [www-data] ?
Where is Apache Include configuration directory [//etc/apache2/conf.d/] ?
Where is PERL Intrepreter binary [/usr/bin/perl] ?
Do you wish to setup Communication server on this computer ([y]/n)?
Where to put Communication server log directory [/var/log/ocsinventory-server] ?

忽略followinf的错误消息,参考 http://forums.ocsinventory-ng.org/viewtopic.php?id=2845

Checking for XML::Entities PERL module...
*** Warning: PERL module XML::Entities is not installed !
This module is only required by OCS Inventory NG SOAP Web Service.

继续操作

Do you wish to continue ([y]/n] ?
Do you allow Setup renaming Communication Server Apache configuration file to 'z-ocsinventory-server.conf' ([y]/n) ?
Do you wish to setup Administration Server (Web Administration Console) on this computer ([y]/n)?
Do you wish to continue ([y]/n)?
Where to copy Administration Server static files for PHP Web Console [/usr/share/ocsinventory-reports] ?
Where to create writable/cache directories for deployement packages and IPDiscover [/var/lib/ocsinventory-reports] ?

到此服务端已经安装完成

7.配置服务端

7.1.给OCS创建一个虚拟主机。在/etc/apache2/sites-available/default添加以下代码

Alias / "/usr/share/ocsinventory-reports/ocsreports/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

8.重启Apache服务

/etc/init.d/apache2 restart

9.在浏览器配置OCS的WEB管理

http://服务器的IP地址/install.php

9.1.设置完后删除安装文件

rm /usr/share/ocsinventory-reports/ocsreports/install.php

9.2.用管理员用户编辑/etc/apache2/conf.d/z-ocsinventory-server.conf 文件修改以下内容把0给为1

PerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 1

到此服务器已经完全安装配置成功。

用浏览器输入服务器的IP地址,输入用户名密码admin

窗外天空
关注公众号『窗外天空』

获取更多建站运营运维新知!
互联网创业、前沿技术......

赞(0) 打赏
文章名称:《OCS Inventory NG Server Ubuntu Install 服务端安装教程》
文章链接:https://www.nixonli.com/102.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏