> For the complete documentation index, see [llms.txt](https://documentation.efalia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.efalia.com/produit/efalia-process/installation/demarrage-arret-serveur.md).

# Démarrage et Arrêt Serveur

{% hint style="info" %}
`<CATALINA_HOME>` désigne le chemin vers le répertoire de base où est installé Apache Tomcat.
{% endhint %}

## Installation du service Tomcat

**Sous Windows :** exécutez `<CATALINA_HOME>/bin/service.bat` pour installer Tomcat en tant que service — voir la [documentation Apache Tomcat](http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html).

**Sous Unix**, utilisez soit **jsvc** (voir la [documentation Apache Tomcat](https://tomcat.apache.org/tomcat-7.0-doc/setup.html)), soit un script classique placé dans `init.d`.

## Démarrage

**En mode console :**

* Exécutez `<CATALINA_HOME>/bin/startup.bat` sous Windows, ou `<CATALINA_HOME>/bin/startup.sh` sous Unix/macOS.

**En service :**

* Démarrez le service depuis la console des services Windows (s'il n'a pas déjà démarré automatiquement), ou lancez `service <nom_du_service> start` sous Unix.

## Arrêt

L'arrêt peut être effectué de plusieurs manières, selon le mode de démarrage :

* **En mode console :**
  * combinaison de touches `Ctrl+C` dans la console ;
  * commande `shutdown` via `<CATALINA_HOME>/bin/shutdown.bat` (ou `shutdown.sh` sous Unix) ;
  * commande `kill <PID>` sous Unix.
* **En service :**
  * commande `shutdown` via `<CATALINA_HOME>/bin/shutdown.bat` (ou `shutdown.sh` sous Unix) ;
  * console de gestion des services Windows ;
  * commande `kill <PID>` sous Unix ;
  * commande `service <nom_du_service> stop` sous Unix.

{% hint style="info" %}
L'arrêt du serveur est susceptible d'être allongé par le temps requis au compactage des index Lucene.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.efalia.com/produit/efalia-process/installation/demarrage-arret-serveur.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
