How to change home directory of a linux user
You can modify a user’s home directory using usermod command in Linux. The syntax for the usermod command is sudo usermod -d…
You can modify a user’s home directory using usermod command in Linux. The syntax for the usermod command is sudo usermod -d…
If ElasticSearh service crash on your server, you can auto restart it by modifying systemd service file. systemctl edit elasticsearch This will…
I want to start Next.js development server on my computer when it starts. Usually, this is done using pm2, I wanted to…
You can start Next.js development server with the command npm run dev This will start the development server on port 3000. boby@sok-01:/www/learn/nextjs/todo…
I have 2 servers behind NAT, so they share the same IP address, SSH service runs on two different ports. Here is…
mcrypt is a PHP module, that was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. mcrypt is removed from PHP, now…
On a CentOS server, cronjob did not work. Checking the log file found the following error message in /var/log/cron Oct 24 18:35:01…
On a MySQL server, the error log keeps getting the following error message 221024 17:50:03 InnoDB: ERROR: the age of the last…
Cloudflare provides a way to block bad bots under If you want to block one bots that is allowed, you can block…
I wanted to block bots from accessing a website. For this, I need to generate a list of all browser User-Agent visiting…
To block bots by User-Agent in Nginx, add the following to the server entry of the website. Restart Nginx To block acces…
If you forget the root password of a Hetzner dedicated server, you need to boot the server into rescue mode, then mount…