# SWS OnPremise - Standalone

## Table of Contents

- [Introduction](#introduction)
- [Minimum Requirements](#minimum-requirements)
  - [Supported Linux Distributions](#supported-linux-distributions)
- [Installation](#installation)
- [How can i see the logs file?](#how-can-i-see-the-logs-file)
- [How can i manage my SWS instance?](#how-can-i-manage-my-sws-instance)
- [How can i manage the sws service?](#how-can-i-manage-the-sws-service)
- [How can i upgrade to latest version?](#how-can-i-upgrade-to-latest-version)


## Introduction

The version of **SWS Standalone** is based on a **Docker image of
SWS**.
If you don't have an orchestrator in your infrastructure, it is still
possible to install it directly on a **Linux server** without problems.

The supported Linux servers are listed below.

## Minimum Requirements

The Linux server requires at least:

- **4 GB of RAM**
- **2 CPU**
- **20 GB of Disk space**


### Supported Linux Distributions

- AlmaLinux 8+
- RockyLinux 8+
- RedHat 8+
- AmazonLinux 2023+


NOTE: If you already have SWS installed on **CentOS 7**, it is still possible to install SWS on this OS. However, **Namirial advises upgrading the OS** because **CentOS 7 reached End of Life in June 2024**.

# Installation

To install **SWS On-Premise**, log in to your server and run the
following command:


```
curl -s -L https://sws.firmacerta.it/download/sws-onpremise/install_sws3x.sh | sudo bash -s
```

At the end of this command, **SWS will be ready and available on port
8080**.

br
You can verify that the installation completed successfully using this
command:


```
curl -i -X GET http://<IP-APPLIANCE>:8080/SignEngineWeb/rest/server-admin/sys-info
```

Will be displayed a JSON with all configuration of SWS instance like this:

br
At the end of this command, will be create a service named “sws” (it will run at startup)

br
IMPORTANT: you can run this command in the OS which is already installed sws 2x

NOTE: if you are migrating from old SWS 2x configurated with PROD environment, the installation will migrate the environment (with the correct JKS certificate uploaded in past), and in the previous command sys-info the environment is PROD.

## How can i see the logs file?

You can found the log files on this folder:


```
/opt/sws/log/sws-instance
```

## How can i manage my SWS instance?

After the installation is complete, the adminstration methods are the same of installation via Docker image, therefore you can see the section [Docker](/products/sws/enterprise_documentation/onpremise-dockercontainer) to manage your sws instance

## How can i manage the sws service?

Once complete the installation, will be create a service “sws”, you can manage the service using this command:


```
sudo service sws [start | stop | restart | status]
```

## How can i upgrade to latest version?

To upgrade to the last version, you can run the same command used for installation