1)  Installing the required applicationsa

At least 5.7 versions of the MySQL database must be installed on your system. The MySQL
database installation must be on the server, which is the apinizer manager.

Note : If your operating system is Centos 7.x it is probably the maria database. You need to delete it.

$ su 
$ rpm -qa |grep maria
  mariadb-libs-5.5.47-1.el7_2.x86_64
 
$ rpm -e --nodeps mariadb-libs-5.5.47-1.el7_2.x86_64

1.1)  MySQL installation on Linux operating system (If the server can connect to the Internet)

$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
$ sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
$ yum install mysql-server
$ systemctl start mysqld
$ systemctl enable mysqld
### VERY IMPORTANT: Change the lower_case_table_names = 1 under [mysqld]
$ vi /etc/my.cnf
[mysqld]
lower_case_table_names = 1
 
$ systemctl stop mysqld

$ systemctl start mysqld
## see temporary password
## ATTENTION: he is asking the new password option more than once. Go ahead and say yes.
$ grep 'temporary password' /var/log/mysqld.log
 
## Change MySQL default root password
## IMPORTANT: MySQL root password is important for apinizer. Request your support from your apinizer consultant.
$ mysql_secure_installation
$ mysql -u root –p
mysql> CREATE DATABASE apinizer DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

1.2)  MySQL installation on Linux operating system (If the server can not connect to the Internet)

Note: If the server can not connect to the internet, the following rpm files must be installed to the server in the specified order.

  •  mysql-community-server-5.7.20-1.el7.x86_64.rpm
  •  mysql-community-client-5.7.20-1.el7.x86_64.rpm
  •  mysql-community-libs-5.7.20-1.el7.x86_64.rpm
$ rpm -ivh mysql-community-*
$ systemctl start mysqld
$ systemctl enable mysqld
## VERY IMPORTANT: Change the lower_case_table_names = 1 under [mysqld]
$ vi /etc/my.cnf
[mysqld]
lower_case_table_names = 1

$ systemctl stop mysqld
$ systemctl start mysqld
## see temporary password
## ATTENTION: he is asking the new password option more than once. Go ahead and say yes.
$ grep 'temporary password' /var/log/mysqld.log

## Change MySQL default root password
## IMPORTANT: MySQL root password is important for apinizer. Request your support from your apinizer consultant.
$ mysql_secure_installation
$ mysql -u root –p
mysql> CREATE DATABASE apinizer DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;

2)  Create the user and directories in which the Apinizer software will be installed.

$ su
$ adduser apinizer
$ passwd apinizer
$ mkdir -p /opt/apinizerManager
$ mkdir -p /opt/apinizerInstances
## Only in log Server
$ mkdir -p /opt/apinizerLogBackup
$ chown -Rf apinizer:apinizer /opt/
$ chmod -Rf 775 /opt/

3)  Unpack Files

$ su – apinizer
## apinizer-2.1.0-setup-linux.zip file is copied to the /opt/apinizerManager directory.
$ cp apinizer-2.1.0-setup-linux.zip /opt/apinizerManager/
$ cd /opt/apinizerManager

## Unzip apinizer-2.1.0-setup-linux.zip file
$ unzip apinizer-2.1.0-setup-linux.zip

## Unzip apinizer-2.1.0-setup-linux.zip file
$ unzip jre8162linux.zip
$ chmod -Rf 775 *

4)  Change Apinizer default configuration parameters

## VERY IMPORTANT: Please change the default value Apinizer Cache MasterIp. Variable you need to change : apinizerCacheMasterIp
$ vi startApinizer.sh
## For Example : export apinizerCacheMasterIp=10.10.0.5:5900
export apinizerCacheMasterIp=*.*.*.*:5900

## Change MySQL dump file path. apinizerMysqlPath parameter is required for automatic backups to be retrieved through Apinizer Management.
$ vi startApinizer.sh
export apinizerMysqlPath=/usr/bin/mysqldump

Additional Configurations (Optional)

Apinizer starts with 2 gb memory by default. To change this value, you need to change the parameters in the setApinizerEnv file.

$ vi startApinizer.sh
export APINIZER_START_INITIAL_MEMORY=-Xms2048m
export APINIZER_START_MAX_MEMORY=-Xms2048m

 Apinizer default port is 8090. To change this value, you need to change the parameters in the setApinizerEnv file.

$ vi startApinizer.sh
  export APINIZER_PORT=8090

5)  Starting Apinizer

To start Apinizer, the startApiner.sh file in the setup file is executed.

$ vi startApinizer.sh 
export APINIZER_PORT=8090

Note : On Linux operating systems, you may need to run the following command to avoid character errors.

$ sed -i -e 's/\r$//' startApinizer.sh

6)  Enable remote access (Firewall)

Apinizer Manager,load balancer and gateway installed on all servers.

$ systemctl disable firewalld

$ systemctl stop firewalld

$ vi /etc/sysconfig/selinux
SELINUX= disabled

7)  Access to Apinizer Management Console

If you have completed the above steps, the Apinizer Management console is accessed as follows.

The management console is a web-based application that manages all the capabilities of Apinizer. The user can log in with his / her user name and password through this panel and can easily manage Apinizer related operations.

http://your-ip:8090/apinizer

username: admin@apinizer.com

password: ******** (Ask your Apinizer consultant for support.)

8)  Log Server Configurations

On Linux, you can increase the limits by running the following command as root:

Note: The RPM and Debian packages will configure this setting automatically. No further configuration is required.

$ su -

$ sysctl -w vm.max_map_count=262144

$ vi /etc/security/limits.conf
apinizer - nofile 65536

## To set this value permanently, update the vm.max_map_count setting in /etc/sysctl.conf.
$ vi /etc/sysctl.conf
vm.max_map_count=262144

## To verify after rebooting
$ sysctl vm.max_map_count

9)  Apinizer linux restart script

$ su -

$ cd /etc/systemd/system

$ vi /etc/systemd/system/apinizer.service
[Unit]
Description=Apinizer

[Service]
ExecStart=/opt/apinizerManager/startAuto.sh
User=apinizer
Group=apinizer

[Install]
WantedBy=default.target

$ systemctl start apinizer.service

$ systemctl status apinizer.service

$ systemctl enable apinizer.service