码迷,mamicode.com
首页 > 其他好文 > 详细

OCS Inventory NG 2.4.1安装

时间:2018-06-09 20:32:03      阅读:1299      评论:0      收藏:0      [点我收藏+]

标签:min   TE   releases   firewalld   release   mys   class   mojo   serve   

环境

平台:Vmware 14.0
内存:2GB
硬盘:60GB
系统: centos 7 minimal

命令

yum install wget
yum install epel-release
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
vi /etc/yum.repo.d/remi.repo

 [remi-php56]下面enabled的值设置为1

yum install php
yum install php-gd
yum install php-mbstring php-soap php-xml php-mysql
yum install mariadb-server
vi /etc/yum.repo.d/MariaDB.repo

[mariadb]

name = MariaDB

baseurl = http://mariadb.biz.net.id/yum/10.1/centos7-amd64/

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1

yum install mariadb-server
systemctl enable mariadb
systemctl start mariadb
mysql -u root
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘password‘);
CREATE DATABASE ocsweb;
CREATE USER ‘ocs‘@‘localhost‘ IDENTIFIED BY ‘ocs‘;
GRANT ALL PRIVILEGES ON ocsweb.* TO ‘ocs‘@‘localhost‘ WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit

yum install httpd
wget https://harbottle.gitlab.io/epmel/7/x86_64/epmel-release-7-3.el7.x86_64.rpm
rpm -Uvh epmel-release-7-3.el7.x86_64.rpm
yum install perl-Apache-DBI
yum install make
yum install perl-XML-Simple perl-Compress-Zlib perl-DBI perl-DBD-MySQL perl-Net-IP perl-SOAP-Lite perl-Archive-Zip perl-Mojolicious perl-Plack perl-XML-Entities perl-Switch

wget https://rpm.ocsinventory-ng.org/ocsinventory-release-latest.el7.ocs.noarch.rpm
yum install ocsinventory-release-latest.el7.ocs.noarch.rpm epel-release-latest-7.noarch.rpm
yum install ocsinventory-server
wget http://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.4.1/OCSNG_UNIX_SERVER_2.4.1.tar.gz
tar -xvzf OCSNG_UNIX_SERVER_2.4.1.tar.gz
cd OCSNG_UNIX_SERVER_2.4.1
sh setup.sh
systemctl restart httpd
systemctl stop firewalld

OCS Inventory NG 2.4.1安装

标签:min   TE   releases   firewalld   release   mys   class   mojo   serve   

原文地址:https://www.cnblogs.com/eifive/p/9160630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!