998b263517
Co-authored-by: Przemyslaw Hugh Kaznowski <hughkaznowski@protonmail.com> Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
1.3 KiB
1.3 KiB
NOTES
The following instructions are for Ubuntu 20.04
Setup
rustup upgrade
sudo apt-get -y update
sudo apt-get -y install -y cmake g++ libprotobuf-dev protobuf-compiler
cargo install cargo-deb
Building
cargo deb
Testing
sudo dpkg -i target/debian/surreal_1.0.0~beta.9_amd64.deb
Installing
curl --proto '=https' --tlsv1.2 -sSf https://deb.surrealdb.com | sh
Running
Start the service
$ sudo service surreal start
Stop the service
$ sudo service surreal stop
Enable the service
$ sudo service surreal enable
Stop the service
$ sudo service surreal disable
Get the service status
$ sudo service surreal status
Below is an example response
● surreal.service - SurrealDB Service
Loaded: loaded (/lib/systemd/system/surreal.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-08-11 23:34:35 UTC; 5min ago
Main PID: 23177 (surreal)
Tasks: 5 (limit: 4605)
Memory: 3.2M
CGroup: /system.slice/surreal.service
└─23177 /usr/share/surreal/surreal start --log trace --user root --pass root
View service logs
sudo journalctl -f -u surreal