Menu
#Installation
ferrite_db is a single binary, ferrite_db. It needs a Rust toolchain to build (the crate uses the 2024 edition), or you can install the .deb on Debian and Ubuntu. The server runs on Linux. The memory limit measurement reads /proc, so on other systems there is no default memory limit.
#From crates.io
cargo install ferrite_db
ferrite_dbThis puts ferrite_db in ~/.cargo/bin. With no arguments it listens on 127.0.0.1:7878 and keeps its data in ./ferrite_data, relative to the directory it was started in.
#From source
git clone https://github.com/LeSynz/ferrite_db
cd ferrite_db
cargo build --release
./target/release/ferrite_dbTo run the tests:
cargo test#As a Debian package
The repository has packaging/build-deb.sh, which builds a .deb that installs the binary, a systemd unit and /etc/ferrite/ferrite.conf.
./packaging/build-deb.shThe package has been installed and run under systemd in one Ubuntu 24.04 VM, and not more widely than that. Deployment covers the unit and the config file.
#Check that it runs
Start the server, and in another terminal:
echo '{"cmd":"listDatabases"}' | nc 127.0.0.1 7878A new server answers {"databases":[],"ok":true}.
The default address is a loopback one on purpose. The server refuses to listen on any other address unless
FERRITE_TOKENis set. See Configuration.
Next: the quick start.