@Marvin I've got a prefect server running on localhost:4200, how do I start another one on localhost:4201?
m
Marvin
09/16/2025, 6:18 PM
✅ thought for 362.1 seconds
Marvin
09/16/2025, 6:24 PM
Easiest way: run a second server on a different port.
- Quick start (same config/data directory as the first server):
Copy code
prefect server start --port 4201
- Recommended for isolation (separate data dir so the two servers don’t share the same SQLite DB/state):
- macOS/Linux:
Copy code
PREFECT_HOME=~/.prefect-4201 prefect server start --port 4201
- Windows PowerShell:
Copy code
$env:PREFECT_HOME="$env:USERPROFILE\.prefect-4201"; prefect server start --port 4201
Notes:
- If you intentionally want both servers to point at the same backend, avoid duplicate background services by starting the second one without services:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.