Posts tagged "debian"

Install Node.js 24 & PM2 on Debian 13, Including Log Rotation

If you’re running Debian 13 for a production server, Node.js 24 + PM2 is a practical setup, simple deployment, easy process management, and predictable restarts. Below is a production-friendly installation guide, including PM2 log rotation. 1. Install Node.js 24 (via NodeSource) Update packages and install prerequisites: Add the NodeSource GPG key: Add the Node.js 24… Continue reading

How to Install MariaDB on Debian 13 (Trixie) , Root Uses Password (Debian 12-style)

To install MariaDB on Debian 13 (Trixie), follow these steps (same rhythm as my Debian 12 guide, but updated for Debian 13). Debian 13’s repo package is currently mariadb-server (1:11.8.3-0+deb13u1). (Debian Packages) 1. Update Package Index Start by updating the package index to ensure your system has the latest information on available packages. (Optional but… Continue reading

Choosing Between n and nvm, The Best Node.js Version Manager for You

When working with Node.js, managing different versions efficiently is essential. Whether you’re running apps on servers or juggling multiple projects locally, a version manager simplifies your workflow. Two of the most popular tools for this job are n and nvm. Each has its strengths, and choosing the right one depends on your environment and use… Continue reading

Adjust The Log Rotation Settings on Debian 12 Bookworm to Save Space

To adjust the log rotation settings on Debian 12 Bookworm to save space, you can modify the configuration in /etc/logrotate.conf or add specific configurations in the /etc/logrotate.d/ directory for individual log files. Here’s a general approach to help reduce disk usage: After editing, apply the settings by running: To compress old logs on Debian 12,… Continue reading