Enportal/5.5/admin/windows installation: Difference between revisions
imported>Jason.nicholls |
imported>Jason.nicholls |
||
Line 43: | Line 43: | ||
After installing enPortal, you can configure the application for automated startup. For example, on a production server, you may want the application to start up automatically any time the server is restarted. This can be implemented using a Windows service. This section details how to configure automated startup. | After installing enPortal, you can configure the application for automated startup. For example, on a production server, you may want the application to start up automatically any time the server is restarted. This can be implemented using a Windows service. This section details how to configure automated startup. | ||
{{Note|A 64-bit JVM must be used when running as a service on 64-bit Windows.}} | {{Note|A 64-bit JVM must be used when running as a service on 64-bit Windows.}} | ||
The following steps detail how to create a Windows service for automated startup: | The following steps detail how to create a Windows service for automated startup: | ||
Line 54: | Line 52: | ||
# Enter the following command to install the Windows service: | # Enter the following command to install the Windows service: | ||
#: <tt>> service install</tt> | #: <tt>> service install</tt> | ||
# If successful, the message should be displayed: "The service ' | # If successful, the message should be displayed: "The service 'EdgeTomcat' has been installed." | ||
# Enter the following command later if you need to remove the Windows service: | # Enter the following command later if you need to remove the Windows service: | ||
#: <tt>> service remove</tt> | #: <tt>> service remove</tt> | ||
# If successful, the message should be displayed: "The service ' | # If successful, the message should be displayed: "The service 'EdgeTomcat' has been removed." | ||
The service is installed with manual startup configured. The Startup type is changed by running "services.msc" from Windows, selecting properties for "Edge | The service is installed with manual startup configured. The Startup type is changed by running "services.msc" from Windows, selecting properties for "Edge Tomcat", then choosing the desired startup type, such as "Automatic". | ||
{{Tip|The command <tt> | {{Tip|The command <tt>> tomcat7w.exe //MS//EdgeTomcat</tt> can be used to monitor the service and access the service configuration. Launching this utility will add an ''Edge Tomcat'' icon in the system tray. Right-click the icon to start/stop or further configure the service.}} | ||
== Stopping enPortal == | == Stopping enPortal == |
Revision as of 07:01, 14 July 2014
This section provides instructions for installing enPortal on a Windows Server. It also details how to create a service that will automatically start enPortal when the server is booted.
Prerequisites
- Install Java (refer to the System Requirements for supported versions)
- Ensure JAVA_HOME system environment variable is configured
- Start | Right-click on Computer and "Properties" | Advanced System Settings | Environment Variables
- Under "System Variables", if there is no "JAVA_HOME" variable set, click "New"
- Set "Variable Name" to JAVA_HOME
- Set "Variable Path" to the path to Java install path
- For example: JAVA_HOME = C:\Program Files\Java\jre7
- Note: Make sure JAVA_HOME does not end with "\" and is not surrounded by quotes. It is also recommended that JAVA_HOME not contain spaces.
Installation Tasks
To install enPortal, perform the following steps on the server:
- Extract the turnkey installation file to any desired location on the server
- Save the license file into [INSTALL_HOME]\webapps\enportal\WEB-INF\config\license.properties
- [optional] Ensure the default ports enPortal use are free or make changes to the listening ports, along with changes to other runtime options. Refer to the Runtime Options page for further information.
- [optional] enPortal comes with a pre-configured H2 database for storing basic system information, but this functionality can be achieved using other databases if desired. To configure enPortal to use your own database, follow the instructions on the Database Connection Configuration page.
- Run the Tomcat startup executable in [INSTALL_HOME]\bin\startup.bat
- Validate the installation
- Go to the following URL in a supported web browser on any workstation that has network access to the enPortal server: http://localhost:8080
- When prompted, log in with the following default credentials (case sensitive):
- User Name: administrator
- Password: administrator
- Domain: System
32-bit Systems
By default the turnkey installation is configured with 64-bit executables. For 32-bit systems the following additional tasks must be performed:
- Navigate to [INSTALL_HOME]\server\bin\windows-x86 and copy the 32-bit Tomcat files from the \windows-x86 folder up one level to replace the default 64-bit versions in the \bin folder:
- tcnative-1.dll
- tomcat7.exe
- It may be necessary to reduce the memory usage, refer to next step and the Memory Configuration page.
Create an enPortal Service
After installing enPortal, you can configure the application for automated startup. For example, on a production server, you may want the application to start up automatically any time the server is restarted. This can be implemented using a Windows service. This section details how to configure automated startup.
The following steps detail how to create a Windows service for automated startup:
- Open a Command Prompt as the administrator (right-click and Run as administrator).
- Navigate to [INSTALL_HOME]\server\bin
- Enter the following command to install the Windows service:
- > service install
- If successful, the message should be displayed: "The service 'EdgeTomcat' has been installed."
- Enter the following command later if you need to remove the Windows service:
- > service remove
- If successful, the message should be displayed: "The service 'EdgeTomcat' has been removed."
The service is installed with manual startup configured. The Startup type is changed by running "services.msc" from Windows, selecting properties for "Edge Tomcat", then choosing the desired startup type, such as "Automatic".
Stopping enPortal
To stop enPortal, terminate the Tomcat process that is running on the enPortal server.
There are several ways to terminate the Tomcat process:
- Execute the shutdown script that is provided:
- [INSTALL_HOME]/server/bin/shutdown.bat
- If running as a service, stop the enPortal service
- In the console, enter CTRL-C