**WARNING: THIS PAGE IS NOT APPROVED YET**
Quick Install
This guide serves as a quick reference to remind you of the setup steps. For more detailed information, please refer to the general wiki
Common Linux Commands
Navigating Directories:
cd: Change directory → Ex: `cd /path/ `
ls: List directory contents → Ex: `ls -l` (detailed list including file permissions)
Managing Processes:
ps: Display running processes → Ex: `ps aux`
top: Display real-time process → Ex: `top`
kill: Send a signal to a process → Ex: `kill -9 PID`
Package Management:
yum (CentOS/RedHat) → Ex: `yum install packagename`
apt-get (Debian/Ubuntu) → Ex: `apt-get install packagename`
System Services:
systemctl: Manage and monitor system services (systemd)
Start → Ex: `systemctl start servicename`
Status → Ex: `systemctl status servicename`
Stop → Ex: `systemctl stop servicename`
Enable at Boot → Ex: `systemctl enable servicename`
Initial Setup
Dependencies for Cockpit
-
CentOS/RedHat:
Install MySQL : `yum install mysql-server`
Start MySQL : `systemctl start mysqld`
Secure MySQL installation: `mysql_secure_installation`
Debian:
Update package index: `apt-get update`
Install MySQL: `apt-get install mysql-server`
Secure MySQL installation: `mysql_secure_installation`
-
Common Steps for CentOS/RedHat and Debian:
-
-
Extract the tar.gz file using: `tar -zxvf victoria-metrics*.tar.gz`
Move the binaries to a suitable directory, such as `/usr/local/bin`
Create a systemd service file for VictoriaMetrics at `/etc/systemd/system/victoriametrics.service`:
[Unit]
Description=VictoriaMetrics
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/victoriametrics -storageDataPath /var/lib/victoria-metrics-data
Restart=on-failure
[Install]
WantedBy=multi-user.target
Start VictoriaMetrics service: `systemctl start victoriametrics`
Enable VictoriaMetrics at boot: `systemctl enable victoriametrics`
Service Configuration
Cleanup Operations
Rebooting and Updates