Set-up for CentOS 7
Perform Installation of minimal Centos 7 (http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso)
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
wget http://95.85.35.209/software/jre-8u92-linux-x64.rpm 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
wget http://95.85.35.209/software/postgresql-9.5.3-1-x64-bigsql.rpm
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 http://95.85.35.209/software/build/pg_hba.conf wget -O /opt/postgresql/pg95/data/postgresql.conf http://95.85.35.209/software/build/postgresql.conf /etc/init.d/postgresql-95 start
Download Anuview software
wget -p http://95.85.35.209/software/ros_unix.tgz tar -vxzf /opt/software/95.85.35.209/software/ros_unix.tgz -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/createmyipfixdb.sh chkconfig --add rosd chkconfig --level 345 rosd on
Initialise the anuview database
su - postgres < /opt/ros/resources/docs/sql/createmyipfixdb.sh
If you want to move an existing data folder to a new location (i.e. to a larger partition) you can use
/etc/init.d/postgresql-95 stop cp -rp SOURCE_FOLDER DESTINATION_LOCATION
/etc/init.d/postgresql-95 start e.g.
/etc/init.d/postgresql-95 stop cp -rp /opt/postgresql/data /home/postgresdata/ /etc/init.d/postgresql-95 stop
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