部署运维IT在线课程

在Centos7.3安装OCSNG2.3.1 Server端

2017-11-22  本文已影响289人  max的vlog
OCSNG

首先给大家介绍下OCSNG,最初接触这个系统是在Eisai。当初没觉得这系统有啥好用的,因为资产管理的工作也不都归我管,我只感觉用这个系统辅助找丢失的电脑还不错。来到RFS后整个这一摊子事全管后才发现这系统确实不错。用到现在我总结功能如下:

以上是我使用到现在用到的功能,还有些我没用过的功能有待各位自己发觉。下面给大家介绍下具体安装方法。
其实OCSNG有windows端的服务端,而且是一键傻瓜式安装,但我安装完后server和agent始终无法通信,也懒得去研究了,所以心一横就在centos上装了个,应该也会比windows端稳定很多。
环境:Vmware workstation&Centos7.3
软件版本:OCSNG2.3.1
首先安装Centos7.3,这就不赘述了。

  [root@localhost ~]# systemctl stop firewalld.service
  [root@localhost ~]# systemctl disable firewalld.service
  Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
  Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
  [root@localhost ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
  [root@localhost ~]# grep SELINUX=disabled /etc/selinux/config
  SELINUX=disabled
  [root@localhost ~]# setenforce 0
  [root@localhost ~]# yum install openssh  vim wget -y
  [root@localhost ~]# yum update
  [root@localhost ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  [root@localhost ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  [root@localhost ~]# yum install mod_perl php-pclzip
  [root@localhost ~]# yum -y install mariadb-server mariadb
  [root@localhost ~]# systemctl start mariadb.service
  [root@localhost ~]# systemctl enable mariadb.service
  [root@localhost ~]# /usr/bin/mysql_secure_installation
  [root@localhost ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
  [root@localhost ~]# yum repolist all
  [root@localhost ~]# yum search yum-config-manager
  [root@localhost ~]# yum install yum-utils
  [root@localhost ~]# yum-config-manager --enable remi
  [root@localhost ~]# yum-config-manager --enable remi-php71
  [root@localhost ~]# yum update php*
  [root@localhost ~]# yum install php-mbstring php-gd php-xml php-pecl-memcached php-mysql php-soap -y
  [root@localhost ~]# yum -y install perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-SOAP-Lite mod_perl perl-Digest-SHA1 perl-Test-Simple
  [root@localhost ~]# systemctl enable httpd
  [root@localhost ~]# systemctl start httpd
  [root@localhost ~]# yum install mod_perl perl-CPAN perl-Archive-Zip  perl-Net-IP perl-XML-Simple perl-SOAP-Lite.noarch perl-ExtUtils-Embed perl-XML-Entities
  [root@localhost ~]# yum install perl-XML-SAX perl-Apache-DBI perl-Apache2-SOAP
  [root@localhost ~]# yum install httpd-devel
  [root@localhost ~]# cpan
  [local::lib] sudo
  cpan[1]> install YAML
  cpan[2]> install ModPerl::MM
  cpan[3]> install Apache2::SOAP
  cpan[4]> >install Apache::DBI
  cpan[5]> exit
  [root@localhost ~]# yum install git
  [root@localhost home]# cd /home/ocsng
  [root@localhost ocsng]# git clone https://github.com/OCSInventory-NG/OCSInventory-Server.git OCSInventory-Server
  [root@localhost ocsng]# cd OCSInventory-Server
  [root@localhost OCSInventory-Server]# git clone https://github.com/OCSInventory-NG/OCSInventory-ocsreports.git ocsreports
  [root@localhost OCSInventory-Server]# ./setup.sh
  Where to copy Administration Server static files for PHP Web Console
  [/usr/share/ocsinventory-reports] ?/var/www/html/
   service httpd restart
上一篇 下一篇

猜你喜欢

热点阅读