Install Easit GO
Prerequisites
- Installation package for Easit GO
- A database server running MSSQL (Support & Compatibility)
- A application server running Windows Server or Linux (Support & Compatibility)
Database setup
- Create a new Database.
- You can give it any name you want (e.g EasitGO-Prod or EasitGO-Test).
- Set the collation to Finnish_Swedish_100_CI_AS.
- Create a new Login.
- Give the login any name you want (e.g EasitGO-DbUser-Prod or EasitGO-DbUser-Test)
- The Login need to use SQL Server authentication.
- Add a user mapping to the database you created in step 1 and give the mapping role membership to db_owner.
- Set Isolation mode (Microsoft Docs)
- Execute the SQL script below against the database.
- The expected result is is_read_committed_snapshot_on=1 and snapshot_isolation_state=1.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
DECLARE @DATABASENAME AS VARCHAR(255), @ALTERSQL AS VARCHAR(255) SET @DATABASENAME=db_name() IF (SELECT is_read_committed_snapshot_on FROM sys.databases WHERE name=@DATABASENAME) = 0 BEGIN SET @ALTERSQL = 'ALTER DATABASE ['+@DATABASENAME+'] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;ALTER DATABASE ['+@DATABASENAME+'] SET read_committed_snapshot ON;ALTER DATABASE ['+@DATABASENAME+'] SET MULTI_USER'; EXEC(@ALTERSQL) END IF (SELECT snapshot_isolation_state FROM sys.databases WHERE name=@DATABASENAME) = 0 BEGIN SET @ALTERSQL = 'ALTER DATABASE ['+@DATABASENAME+'] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;ALTER DATABASE ['+@DATABASENAME+'] SET allow_snapshot_isolation ON;ALTER DATABASE ['+@DATABASENAME+'] SET MULTI_USER'; EXEC(@ALTERSQL) END SELECT is_read_committed_snapshot_on, snapshot_isolation_state FROM sys.databases WHERE name = @DATABASENAME
Disconnect from the database server and connect to the application server.
Application setup
- On the partition you prefer, create directory called Easit. (E.g D:\Easit).
- Expand the installation package provided by Easit to this directory.
- You will now have a directory called easitgo in the directory you created in step 1.
- If you plan to have more than one Easit GO running on the server you should rename the easitgo directory to something else. It is up to you what the name should be but we recommend something like EasitGOProd, EasitGOTest or just Prod, Test. We will from now refer to this directory as the System folder.
- Inside the System folder you have a directory called config, open it.
- Copy the license.xml provided by Easit to the config directory (e.g D:\Easit\EasitGOProd\config\license.xml).
- Right click on properties.xml inside the config directory and choose to edit it.
- Update the entry key dataSource.url with the details about your database server and database.
1
<entry key="dataSource.url">jdbc:sqlserver://dbserver.domain.lan;instanceName=MSSQLSERVER;portNumber=1433;databaseName=EasitGO-Prod;encrypt=false</entry>
- Update the values for the entry keys dataSource.username and dataSource.password.
The password will be encrypted once Easit GO starts so the password will NOT be save in plain text.
1 2
<entry key="dataSource.username">myDbUsername</entry> <entry key="dataSource.password">myDbUsersPassword</entry>
- Save your changes and close the file.
- Update the entry key dataSource.url with the details about your database server and database.
- Inside the System folder you have a directory called bin, open it.
- The files in this directory are used to install and run Easit GO as a Windows service.
- Right click on easitgo-service.xml and choose to edit it.
- Update the following XML elements to fit your needs.
1 2 3
<id>easitgoprod</id> <!-- Specifies the ID that Windows uses internally to identify the service --> <name>EasitGO-Prod</name> <!-- Short display name of the service, which can contain spaces and other characters --> <description>EasitGO Prod</description> <!-- Long human-readable description of the service -->
- Update the following XML elements to fit your needs.
- Save your changes and close the file.
Install Easit GO as Windows service
- Open PowerShell or CMD as administrator and navigate to System folder\bin.
- Run one of the following commands while in System folder\bin.
- PowerShell:
1
PS D:\Easit\EasitGOProd\bin> .\easit-service.exe install
- CMD: easit-service.exe install
- PowerShell:
Start Easit GO
- Open PowerShell or CMD as administrator if not already open.
- Run one of the following commands.
- PowerShell:
1
Start-Service -Name 'easitgoprod'
- CMD:
1
sc start "easitgoprod"
- services.msc: Find the service for Easit GO, select it and click on start.
- PowerShell:
Give Easit GO a couple of minutes to start and you are done.