> For the complete documentation index, see [llms.txt](https://fusionauth.io/docs/llms.txt)

# Start & Stop | FusionAuth Docs

Learn how to start and stop FusionAuth services.

# Start & Stop

[Edit on GitHub](https://github.com/FusionAuth/fusionauth-site/blob/main/astro/src/content/docs/get-started/download-and-install/start-and-stop.mdx)

[View Markdown](https://fusionauth.io/docs/get-started/download-and-install/start-and-stop.md)

If you are self-hosting FusionAuth, you may need to manually start or stop FusionAuth periodically.

It is recommended you start the FusionAuth Search service before starting the FusionAuth App service. You should also shutdown the Search Engine last. FusionAuth utilizes the Search Engine and database for persisting and retrieving users.

The following examples will make the assumption that all of the services are running on the same server. Based upon how you have installed FusionAuth you may or may not have all of the services running on the same server.

The macOS and Windows instructions assume an installation directory of `/usr/local/fusionauth` and `\fusionauth` respectively. Please adjust to your specific installation directory. We'll refer to this directory as `FUSIONAUTH_HOME`.

### Linux

FusionAuth installation using Debian or RPM packages also installs the `fusionauth-search` and `fusionauth-app` services. Use these services to start and stop FusionAuth.

To start FusionAuth:

```shell-session
$ sudo systemctl start fusionauth-search
```

```shell-session
$ sudo systemctl start fusionauth-app
```

To stop Fusionauth:

```shell-session
$ sudo systemctl stop fusionauth-app
```

```shell-session
$ sudo systemctl stop fusionauth-search
```

If you'd prefer to use the native Elastic and Tomcat scripts, follow the macOS instructions.

### macOS

To start FusionAuth:

```shell-session
$ /usr/local/fusionauth/fusionauth-search/elasticsearch/bin/elasticsearch
```

```shell-session
$ /usr/local/fusionauth/fusionauth-app/bin/start.sh
```

To stop FusionAuth:

```shell-session
$ /usr/local/fusionauth/fusionauth-app/bin/stop.sh
```

Always stop Elasticsearch last. If you started Elasticsearch using the `elasticsearch` script, shut Elasticsearch down by closing that terminal window.

### macOS with Homebrew

To start FusionAuth:

```shell-session
$ brew services start opensearch
```

```shell-session
$ brew services start fusionauth-app
```

To stop FusionAuth:

```shell-session
$ brew services stop fusionauth-app
```

```shell-session
$ brew services stop opensearch
```

### Windows

On Windows, you can run FusionAuth using either native PowerShell scripts, or Windows services.

### PowerShell scripts

To start FusionAuth:

```powershell
\fusionauth\fusionauth-search\elasticsearch\bin\elasticsearch.bat
```

```powershell
\fusionauth\fusionauth-app\bin\start.ps1
```

To stop FusionAuth:

```powershell
\fusionauth\fusionauth-app\bin\stop.ps1
```

Always stop Elasticsearch last. If you started Elasticsearch using the `elasticsearch.bat` script, shut it down by closing that command window.

### Windows Services

To start FusionAuth:

```powershell
net start FusionAuthSearch
```

```powershell
net start FusionAuthApp
```

To stop FusionAuth:

```powershell
net stop FusionAuthApp
```

```powershell
net stop FusionAuthSearch
```