Set-up for CentOS 7

From Observer GigaFlow Support | VIAVI Solutions Inc.
Revision as of 16:23, 7 October 2016 by Ronan (Talk | contribs)

Jump to: navigation, search

Perform Installation of minimal Centos 7 (

Once installed, update all components and restart server.

yum -y update
shutdown -r now

Install optional software components

yum -y install glibc.i686
yum -y install man
yum -y install wget
yum -y install openssh-clients
yum -y install lynx
yum -y install perl
yum -y install chkconfig
yum -y install perl-CPAN
yum -y install perl-DBD-Pg
yum -y install tcpdump
yum -y install tcpreplay
yum -y install net-snmp-utils net-snmp
yum -y install dstat
yum -y install iotop
yum -y install sysstat
yum -y install iptraf
yum -y install rsync
yum -y install ntp
systemctl start ntpd
systemctl enable ntpd

Make folder to hold anuview and related software.

mkdir /opt
mkdir /opt/software
cd /opt/software

Download Java and link to standard location

rpm -i jre-8u92-linux-x64.rpm
ln -s /usr/java/jre1.8.0_92/ /opt/java

Check that java has installed

/opt/java/bin/java -version

Should output

java version "1.8.0_92"

Java(TM) SE Runtime Environment (build 1.8.0_92-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

Download postgres


If you want to install the postgres data folder into a new location do it now using the following (In this example we're putting it into /home/postgresdata

mkdir /opt/postgresql
mkdir /home/postgresdata/
mv /opt/postgresql/data /opt/postgresql/dataOrig
ln -s /opt/postgresql/data /home/postgresdata/

Install postgres

/etc/init.d/postgresql-95 start

Leave port as 5432, enter password as P0stgr3s_2ME, set started at boot = y

Download recommended settings for postrges

/etc/init.d/postgresql-95 stop
mv /opt/postgresql/pg95/data/pg_hba.conf /opt/postgresql/pg95/data/pg_hba.conf.orig
mv /opt/postgresql/pg95/data/postgresql.conf /opt/postgresql/pg95/data/postgresql.conf
wget -O /opt/postgresql/pg95/data/pg_hba.conf
wget -O /opt/postgresql/pg95/data/postgresql.conf
/etc/init.d/postgresql-95 start

Download Anuview software

wget -p 
tar -vxzf /opt/software/ -C /

If this is a new installation, copy the service files

cp /opt/ros/resources/unix/rosd /etc/init.d/
cp /opt/ros/resources/unix/start /opt/ros/resources/
chmod 755 /etc/init.d/rosd
chmod 755 /opt/ros/resources/start
chmod 755 /opt/ros/resources/docs/sql/
chkconfig --add rosd
chkconfig --level 345 rosd on

Initialise the anuview database

su - postgres < /opt/ros/resources/docs/sql/

Start the service anuview service (rosd)

/etc/init.d/rosd restart

You should now be able to access the application on http://IP_ADDRESS:7902