Installing Front Server on Linux

Pre-installation Tasks

Service Monitor Agent will be installed with Front Server and it has dependencies on the third-party package zlib-devel readline-devel bzip2-devel ncurses-devel gdbm-devel xz-devel tk-devel libffi-devel gcc. Run the rpm -qa|grep -E "zlib-devel|readline-devel|bzip2-devel|ncurses-devel|gdbm-devel|xz-devel|tk-devel|libffi-devel|gcc" command to check whether it has been installed on this Linux server. If it has not been installed yet, you can choose either option below to install the dependencies:

oOnline Install: run the yum -y install zlib-devel readline-devel bzip2-devel ncurses-devel gdbm-devel xz-devel tk-devel libffi-devel gcc command to install it online.

oOffline Install: refer to Offline Installing Third-party Dependencies for more details.

Note: You can also install the Service Monitor Agent separately.

Front Server has dependencies on several third-party packages. Before you install the Front Server, run the rpm -qa|grep -E "glibc|libstdc++|libuuid|pam" command to check whether these dependencies have been installed. If they have not been installed yet, you can choose either option below to install the dependencies:

oOnline Install: run the yum install -y glibc libstdc++ libuuid pam command to install these third-party packages online.

oOffline Install: refer to Offline Installing Third-party Dependencies for more details.

Installing Front Server on Linux

1.Log in to the Linux server as the root user.

2.Run the mkdir command to create a directory under the /opt directory to place the Front Server installation package. For example, netbraintemp10.0a.

3.Run the cd /opt/netbraintemp10.0a command to navigate to the /opt/netbraintemp10.0a directory.

4.Download the installation package.

Option 1: If the Linux server has no access to the Internet, obtain the netbrain-frontserver-linux-x86_64-rhel-10.0a.tar.gz file from NetBrain and then upload it to the /opt/netbraintemp10.0a directory by using a file transfer tool.  

Option 2: If the Linux server has access to the Internet, run the wget <download link> command under the /opt/netbraintemp10.0a directory to directly download the netbrain-frontserver-linux-x86_64-rhel-10.0a.tar.gz file from NetBrain official download site.

Note: Contact NetBrain Support Team to get the download link. The download link is case-sensitive.

Tip: Run the yum -y install wget command to install the wget command if it has not been installed on the server.

5.Run the tar -zxvf netbrain-frontserver-linux-x86_64-rhel-10.0a.tar.gz command under the /opt/netbraintemp10.0a directory to extract installation files.

[[email protected] netbraintemp10.0a]# tar -zxvf netbrain-frontserver-linux-x86_64-rhel-10.0a.tar.gz
FrontServer/
FrontServer/config/
 
FrontServer/install.sh
...

6.Run the cd FrontServer/config command to navigate to the config directory.

7.Modify the value of DataPath (based on your enironment) in the setup.conf file located under the config directory and save the changes. For how to modify the configuration file, refer to Editing a File with VI Editor.

[[email protected] config]# vi setup.conf
#DataPath is used to store data and log files for Front server. This directory must be at least a second 
level directory and used exclusively for this purpose.
#The PostgreSQL port must be between 1025 and 32767.
Port=5432
#Password should not contain: {}[]:",'|<>@&^%\ or a space. 
This password is used by front server to connect to PostgreSQL.
Password=Admin1.#
DataPath=/usr/lib/netbrain/frontserver
# To disable the Service Monitor Agent installation, set the 'DisableSM=1'
# The default value of 'DisableSM' is 0 which means Service Monitor Agent
# will be installed with FrontServer if it has not yet been installed.
DisableSM=0

8.Run the cd .. command to navigate to the FrontServer directory and run the ./install.sh script under the FrontServer directory to install the Front Server.

1)Read the License Agreement, and type YES.

2)Type I ACCEPT to accept the License Agreement. The script starts to install the Front Server.

[[email protected] FrontServer]# ./install.sh
Please read the End User License Agreement (“EULA”) for the license type (perpetual or subscription) 
purchased in the order form at https://www.netbraintech.com/legal-tc/ carefully. I have read the subscription EULA, 
if I have purchased a subscription license, or the perpetual EULA, if I have purchased a perpetual license, 
at the link provided above. Please type “YES” if you have read the applicable EULA and understand its contents, 
or “NO” if you have not read the applicable EULA. [YES/NO]: YES 
 
Do you accept the terms in the subscription EULA, if you have purchased a subscription license, or the 
perpetual EULA, if you have purchased a perpetual license? If you accept, and to continue with the 
installation, please type "I ACCEPT" to continue. If you do not accept, and to quit the installation 
script, please type "CANCEL" to stop. [I ACCEPT/CANCEL]: I ACCEPT 
 
INFO: Starting to check Linux OS info...
INFO: Starting to check required CPU...
INFO: Starting to check minimum memory...
...
INFO: Creating application databases and update PostgreSQL user SUCCEEDED
INFO: Backing up uninstall.sh SUCCEEDED
INFO: Successfully installed Front Server.

Note: The Front Server service will not be automatically started until the Front Server is added to a tenant and successfully registered. You cannot register a Front Server immediately until adding the Front Server to a Tenant.

Note: Disk space check will be performed to ensure the requirement of minimum 180G free disk space is met.

Note: If the Service Monitor Agent was not previously installed, you'll need to use the interactive command line to install it. See Installing MongoDB on Linux for more details.

9.To install more Front Servers for load balancing, repeat the above installation steps on separate machines.

 

See also:

Registering NetBrain Front Server on Linux