Configure, Install, and Start the License Server

The instructions in this section describe how to configure, install, and run the local license server as a Linux service using a SysV init runlevel system.

To install and start the license server as a service on Linux

1. From the installation directory, execute sudo ./configure to generate the /etc/default/flexnetls-producer_name file, which defines license server settings for your local environment. Do either of the following:
To generate the file with the default settings, simply issue the sudo ./configure command.
To generate the file with settings specific to your environment, run the command with one or more of the options described in the following table to edit settings as needed. For example, to update the port and user name for the license server service, you might enter the following, where 7071 and user1 are the new values to which you are updating the port and user name:

sudo ./configure --port 7071 --user user1 

Note:Any setting value that uses a space must be enclosed in double quotations (for example “user 1”).

 

Local Settings for the License Server on Linux

Option

Description

--program-dir dir

The installation location of the license server service (default is /opt/flexnetls/producer_name).

--data-dir dir

The location of trusted storage (default is /var/opt/flexnetls/producer_name).

--port port

The listening port used by the license server (default is 7070).

If the machine on which the license server is running uses multiple network interfaces, you can use the port option to specify the interface that you want the license server to use. Simply include the IP address for the interface in square brackets, as shown in this example:

--port [127.0.0.1].1443 

--user user_name

The user name under which the license server service runs (default is flexnetls).

--group group_name

The group name under which the license server service runs (default is flexnetls).

--java_home path
or
--jre_home path

The path for JDK or JRE installation that the license server should use.

By default, the license server uses the value of your JAVA_HOME or JRE_HOME system environment variable, whichever is defined on your machine, to determine the Java installation location. However, if you want the license server to use different Java installation on your system, provide the installation’s explicit path for either the java_home or jre_home setting. (This override pertains to the license server only; your system continues to use the Java installation defined by the system environment variable.)

2. Execute sudo ./flexnetls install to install the license server as a service. If the server service is installed properly, you receive the message Service flexnetls-producer_name installed, where flexnetls-producer_name is the name of the service.
3. Execute sudo service flexnetls-producer_name start to start the service. You should receive a message stating that the service has started.
4. To confirm that the service is running, execute sudo service flexnetls-producer_name status. You should receive the message flexnetls is running. (To stop the service, execute sudo service flexnetls-producer_name stop.)
5. To view the license server log, navigate to the server’s logging directory (by default, /var/opt/flexnetls/producer_name/logs), and review the contents of the appropriate .log file.

Note:Once you install the license server as service, you cannot use any of the “flexnetls” non-service command-line options, such as “console” or “install”.