server {server_name dev-api.example.net; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } access_log /var/log/nginx/access; error_log /var/log/nginx/error; }
How to reduce space consumption of /var/lib/mysql directory?
Today mysql have many awesome features for replications. Some are automatically enabled in new versions. In mysql version 8, bin logs generates automatically with a default expiry date of 28 days. This will consume much more space than our expectations and Nginx will show error 504 due to space shortage. To solve this issue, follow …
Continue reading "How to reduce space consumption of /var/lib/mysql directory?"
Remove MySQL Completely from CentOS 7 Server
Step 1. Remove MySQL First step is to remove the MySQL package from the CentOS 7 server.For this just run the following command. # yum remove mysql mysql-server Step 2. Remove MySQL Data Directory By default MySQL data directory path is /var/lib/mysql. Instead of removing MySQL data directory we will suggest you just rename this …
Continue reading "Remove MySQL Completely from CentOS 7 Server"
Could not open socket: stream_socket_client(): unable to connect to tcp://127.0.0.1:25 (Connection refused) Fix for this error with SMTP.
The cause for this error is connection issue to port 25. First we have to check if there is any SMTP service enabled or not. Then check if the port is using by any other service it can check by using netstat -plnt | grep ':25' command. If this port is not using by any …
Another app is currently holding the yum lock; waiting for it to exit…
First i attempt to kill the process # kill -9 2600 the process could not be stopped Second i attempt to kill all yum process # killall -9 yum still the process could not be stopped then i shutdown my server and switched on again and still the same result. finally i remove the yum.pid …
Continue reading "Another app is currently holding the yum lock; waiting for it to exit…"
How to connect Connect Azure AD (MsolService) using powershell.
1) Download and install SharePoint Online Management Shell 2) Download and install Microsoft Online Services Sign-In Assistant for IT Professionals RTW 3) Install the Azure AD Module by running below cmdlet Install-Module MSOnline 4) Install MSOnline Public Preview module by running below cmdlet Install-Module AzureADPreview 5) Connect to Azure AD by running below cmdlets $Msolcred …
Continue reading "How to connect Connect Azure AD (MsolService) using powershell."
How to make Vmware Esxi Bootable to usb drive.
For servers without CD drive or remote KVM you might want to use an USB Flash Drive to install ESXi to the hardware. This post explains how to create a bootable ESXi Installer USB Flash Drive in less than 2 minutes. The Flash Drive will work totally identical to an Installable CD. Download Rufus Download or create an …
Continue reading "How to make Vmware Esxi Bootable to usb drive."
VIRTUALIZATION AND THE INTERNET OF THINGS
EXECUTIVE SUMMARY Industrial control devices have been around for years. The initial devices were manufactured with a personality, a business logic that was already built in when they left the manufacturing plant to perform one fixed function (and nothing else). They were deployed for specific tasks such as controlling industrial equipment, electricity generation, power plants, …
Continue reading "VIRTUALIZATION AND THE INTERNET OF THINGS"
Fixing DNS_PROBE_FINISHED_NXDOMAIN Error
Method 1: Flushing the DNS As This Issue Occurs because of DNS, We will first try to Flush the DNS and see if this helps. Step 1: Press Windows Key + R to open up Run dialogue box Step 2: Type in CMD and press enter to Open up Command Prompt (Alternativele to to Open …
Mount disk’s in Centos.
Step 1: It is needed to verify whether the new drive is visible in the system. Using fdisk command, it can be identified. fdisk -l It will list all drives available in the system including mounted and unmounted drives. Here assume a new drive label is /dev/ssd Step 2: It is needed to create the …