Account initialization configuration (optional)

Feedback


SuperMap iPortal supports configuring the environment variables ADMINUSER and PASSWORD by modifying the setenv.bat (setenv.sh) file before starting the service to set the username and password of the portal administrator. After starting the service, iPortal will automatically initialize the administrator account according to the environment variable configuration. You can log in to the portal directly using the initialized administrator account. By the way, this configuration is optional. If you do not perform this configuration, you need to initialize the administrator account according to the wizard prompts when starting iPortal for the first time. For details, see Getting Started with Management.

The following will introduce in detail how to configure environment variables in Windows and Linux systems:

Windows

In the Windows system, you need to unzip the product compression package before starting the SuperMap iPortal service, then modify the setenv.bat file in the %SuperMap iPortal_HOME%/bin directory, and set two new variables "ADMINUSER" and "PASSWORD". The variable values correspond to the administrator name and password. You can configure them by referring to the following example:

set ADMINUSER="username”

set PASSWORD=“password”

Note: The environment variables configured by modifying the setenv.bat file are only applicable to the current iPortal product package, and you need to reconfigure after replacing the product package.

Linux

In the Linux system, before starting the SuperMap iPortal service, you need to use the "tar" command to unzip the product package and enter the bin path, and then use the "vi" command to edit the setenv.sh file to add the environment variables "ADMINUSER" and "PASSWORD", the variable values correspond to the administrator name and password. Those commands are as follows (here taking Ubuntu 15.04 as an example):

tar  -zxvf filename.tar.gz

vi  /bin/setenv.sh

export  ADMINUSER="username”

export  PASSWORD=“password”

Note: The environment variables configured by modifying the setenv.sh file are only applicable to the current iPortal product package, and you need to reconfigure after replacing the product package.

 

After completing the environment variable configuration, you can start the iPortal service, log in to the iPortal portal directly with the initialized administrator account. For starting and accessing the iPortal service, see Getting Started with Management.