Archives for Linux
A simple cronjobs to restart your apache server when it’s too busy
#!/bin/bash# URL of Apache server-statusSTATUS_URL="http://localhost/server-status?auto"# Get current number of busy workersHTML_STATUS_FILE="/"curl -s "$STATUS_URL" > "$HTML_STATUS_FILE"BUSY_WORKERS=$(cat "$HTML_STATUS_FILE" | grep "BusyWorkers" | awk '{print $2}')# Restart Apache if busy workers exceed...
n8n webserver failed, exiting
Initializing n8n process n8n webserver failed, exiting The fix is to add this line -e N8N_LISTEN_ADDRESS= In my case, the problem was that IPv6 was disabled in my kernel....
Telegraf is unable to collect docker metrics with error inputs.docker] Error in plugin: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:
If you got this error – Error in plugin: permission denied while trying to connect to the Docker daemon socket at unix:///var/ It’s because / is only accessible...
.htaccess – Basic authentication for all except some ips
AuthType Basic AuthName "Please Log In" AuthUserFile /some/path/.htpasswd Require valid-user Order deny,allow Deny from all Allow from Satisfy any
Application on Azure App Service plan is so slow?
By default, when you deploy an application to Azure App Service plan – your default web location will be under /home/site/wwwroot . /home/ is a persistent storage which means...
How to login to an account with “nologin” shell ?
We have some accounts such as postfix,apache .. these account has “nologin” shell, meaning you can’t sudo su – apache or “su – apache”. Sometimes we need to login...
Continuous ping monitoring
We have a monitoring system to check network devices, sometimes we got an alert saying the remote device is down. We check the remote device and it’s working fine....
Install MineCraftPE Server
My son was asking me to help him set up a server so that he can play with his friends – and i found this , easy to do....
Docker – WARNING: IPv4 forwarding is disabled. Networking will not work.
There are 2 fixes for this issue:1. Temporary 2. Permanent
Single sign-on with Chrome in Linux
If you are running on Linux machine and. every time you access to your corporate website , it asks you for the password , but this does not happen...