git clone [email protected]:meana-io/meana-agent.git
go build -o ./dist/meana ./cmd/meana-agent/main.go
You need to run agent at least once to create initial configuration file:
cd dist
sudo ./meana
---------------------
Provide meana config
Enter server address:
Enter UUID:
---------------------
sudo nano /etc/systemd/system/meana.service
[Unit]
Description=Meana agent
[Service]
User=root
WorkingDirectory=PATH_TO_AGENT_DIR/dist
ExecStart=PATH_TO_AGENT_DIR/dist/meana
Restart=always
[Install]
WantedBy=multi-user.target
sudo systemctl start meana
sudo systemctl enable meana