Install a set of OCS inventory-ng environments

Source: Internet
Author: User
Tags php and mysql

Install a set of OCS inventory-ng environments

Official website: http://www.ocsinventory-ng.org/en/

Install the server first

The relevant packages can be downloaded on the official website.

I downloaded it.

Ocsng_unix_server-1.02.3.tar.gz

I use SECURECRT to connect my Linux test machine

Use RZ to upload to the corresponding directory, I installed in the/usr/local/

Then unzip

TAR-ZXVF ocsng_unix_server-2.1.2.tar.gz

CD ocsng_unix_server-2.1.2

SH setup.sh

The preceding database configuration directly defaults to OK

Apache binary File Execution path

Where is Apache daemon binary []?/usr/local/apache2/bin/apachectl

The path to the Apache master configuration file

Where is Apache main configuration file [/usr/local/apache2/conf/httpd.conf]?

After the selection of Perl, users and user groups can specify their own

After the installation is complete, it will display

Setup has created a log file/usr/local/ocsng_unix_server-2.1.2/ocs_server_setup.log. Please, save this file.
If you encounter the error while running OCS Inventory NG Management Server,
We can ask you for show us his content!

DON ' T forget to RESTART APACHE DAEMON!

Enjoy OCS Inventory NG;-)

This will prompt the installation to complete

During the installation process may be error, the lack of Perl module, we download the corresponding components can be

Easy to download via CPAN

PERL-MCPAN-E Shell

Then install the module you want to mount it.

Of course, you can also perl-mcpan-e "install ..."


Installing OCS Inventory-ng also requires PHP and MySQL, and the installation of these two items is also simple

Server we can also use Nginx

I use Nginx, after the installation is complete, copy the PHP front-end to the appropriate directory.

Configuring Nginx Files

Upstream Fcgi-ocsreports {
Server Unix:/dev/shm/php-fpm.sock;
}

server {
server_name Yourip;
Listen 80;

Index index.php;
Root the directory of your PHP project;
Access_log/home/logs/nginx/fcgi.access.log main; Log file directory
Error_log/home/logs/nginx/fcgi.error.log error;

Send_timeout 180;
Fastcgi_connect_timeout 180;
Fastcgi_send_timeout 180;
Fastcgi_read_timeout 180;

Location ~* \.php$ {
Include fcgi.conf;
Fastcgi_index index.php;
Fastcgi_pass Fcgi-ocsreports;
}
}

Then you can go to the OCS Web front-end to configure the database.


After installing Agent,windows agent installation is relatively simple, here is the main explanation of the agent installation under Linux

Also download the corresponding Agent version on the OCS website

Tar decompression

And then Perl makefile.pl

Make

Make install Installation

The following tips to enterDo you want to configure the Agentplease enter ' y ' or ' n '?> [y]where does you want to write the configuration file? 0,/etc/ocsinventory 1,/usr/local/etc/ocsinventory 2,/etc/ocsinventory-agent?> 2 (select profile to store directory)Does want to create the directory/etc/ocsinventory-agent? Please enter ' y ' or ' n '?> [y][info] The config file would be written in/etc/ocsinventory/ocsinventory-agent.cfg,what is The address of your OCS server?> [Ocsinventory-ng] 192.168.50.92 (Enter the IP address of the Ocsinventory-server)Does need credential for the server? (You probably don ' t) Please enter ' y ' or ' n '?> [n]do your want to apply a administrative tag on this machineplease enter ' y ' or ' n '?> [y] (whether the server uses administrative tags) tag?> Viong(displayed in Web Management Control Interface) Ocsinventory Agent Presents:/usr/bin/ocsinventory-agentwhere Do you want the agent to store its files? (You probably don ' t need-change it)?> [/var/lib/ocsinventory-agent]do you want to create the/var/lib/ocsinventory-a Gent directory? Please enter ' y ' or ' n '?> [y]new settings written! Thank for using OCS inventoryshould I Remove the old linux_agentplease enter ' y ' or ' n '?> [n]do you want to use OCS -inventory software deployment feature? Please enter ' y ' or ' n '?> [y]do do want to use Ocs-inventory SNMP scans feature? Please enter ' y ' or ' n '?> [y]do do want to send a inventory of this machine? Please enter ' y ' or ' n '?> [y][info] accountinfo file doesn ' t exist.   I create an empty one. success! See the above information, indicating that the installation was successful [email protected] ocsinventory-agent-2.0rc2]# Ocsinventory-agent–debug .... omitted from ..... omit the .... Omission of the ..... omitting the same as ....???????? ????[Debug] Calling handlers: ' End_handler ' If the error is not prompted to explain the installation ok!

During installation, you may also be prompted for a missing Perl module, which can be installed using CPAN



Install a set of OCS inventory-ng environments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.