Create “spooler.bat” and insert script below Script will check if spooler is running or not and will restart the service sc query spooler | find…
Linux cheat sheet
Create “spooler.bat” and insert script below Script will check if spooler is running or not and will restart the service sc query spooler | find…
Installing OpenVZ on CentOS Server preparation $ sudo su Update the list of packages: # yum update -y Install ntp to be able to synchronize…
To enable SNMP on CentOS yum install net-snmp-utils -y yum install net-snmp -y mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org vi /etc/snmp/snmpd.conf Add this line to snmpd.conf file rocommunity…
Fix “device eth* does not seem to be present” after migrating Virtual Server Check network: $ ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6…
If you try to end process in Windows and getting error “Access denied”, you should try one of these commands. Open cmd.exe as administrator wmic…
Clear the APT cache to reclaim disk space used by the downloaded packages. Inspect APT cache configuration Check out the current APT cache configuration using…
Here is a simple trick that I used to restart my python script after unhandled exception. #!/usr/bin/python from subprocess import Popen import sys filename =…
For directories only do this. For files only do this. And finally, this command will add execute permissions to directories.
To add an alias to your domain, you can use the ServerAlias directive of apache server, in the file ‘/usr/local/apache/conf.d/vhosts.conf‘. If you have, for example:…
This tutorial shows how to install a basic CentOS 7 server with mirrored disks (RAID 1) 1. Requirements To install a CentOS server you will…