Install: tarball (.tar.gz)
For any Linux with systemd where you want to control every step.
Steps
-
Download the
.tar.gzfor your CPU (uname -mshows it) from the Download tab and copy it to the server. -
Extract it.
tar -xzf yuktiops-agent_<version>_linux_amd64.tar.gzExpected: files
yuktiops-agentandyuktiops-agent.service. -
Put the program on your PATH.
sudo install -m 0755 yuktiops-agent /usr/local/bin/yuktiops-agent -
Create the user and folders. The agent runs as its own user with no login.
sudo useradd --system --no-create-home --shell /usr/sbin/nologin yuktiops sudo mkdir -p /etc/yuktiops /var/lib/yuktiops sudo chown yuktiops: /var/lib/yuktiops -
Install the service file.
sudo cp yuktiops-agent.service /etc/systemd/system/ sudo systemctl daemon-reload -
Register the server.
sudo yuktiops-agent register --key=yk_live_... -
Start it.
sudo systemctl enable --now yuktiops-agent -
Check it worked.
yuktiops-agent statusExpected:
Running, Connected, last data sent ... seconds ago.
Something went wrong?
Permission deniedon the state folder: repeat thechownin step 4.Unit yuktiops-agent.service not found: repeat step 5.- Not connected:
sudo yuktiops-agent doctor.
Upgrade and uninstall
Upgrade: repeat steps 2 and 3, then sudo systemctl restart yuktiops-agent. Uninstall: sudo yuktiops-agent uninstall, then remove the server in the dashboard.
What happens on your server
See One command.
Still stuck? Contact us and include the output of sudo yuktiops-agent doctor.