Postgresql is open source object-relational database system and it is also widely use likewise mysql database system. If you are familiar with mysql you must be aware that in single line you can pass the password of mysql user for eg. mysql -u root -p password. But in postgresql it is not like that. Solution: […]
Linux
hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directory
Few days back I did some changes in /etc/postfix/virtual file and restarted the postfix service.Today I saw some error in mail logs stating “hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directory” I checked /etc/postfix/virtual.db about its existence by using command ls -l /etc/postfix/virtual.db and found it was not there. To resolve this […]
How to zip directory in linux explained with examples
Zip is command in linux is used for compressing files and directory.In this post we will learn how to zip the directory or folder in linux. To compress directory use the below given format zip -r give-file-name.zip Directory-name example: root@tuxworld:/opt# ls -ld teamviewer8/ drwxr-xr-x 6 root root 4096 Oct 2 08:43 teamviewer8/ root@tuxworld:/opt# zip -r […]
How to enable logging of haproxy in rsyslog
After installing the HAproxy 1.4 in CentOS 6.4 bydefault logging of haproxy was not enable.To enable the logging of HAProxy you have to enable it in rsyslog(In CentOS 6.4 minimal installation,rsyslog version 5.2 is shipped). To setup logging in HAproxy,follow the given below steps Step 1: In Global Section of haproxy.cfg put the value log […]
how to set maintenance page for all except to your network
Today in this tutorial we will learn how to set maintenance page in PHP based website.In this example publicly the website will show maintenance page for all but the maintenance page will not be visible for your network. In other words,from your network you will see complete website (not maintenance page).The developer and system admin […]
How to install whois client in CentOS and Red Hat
Whois is a protocol which runs on port no. 43 and it is also act as query. Whois helps to get the information regarding internet resources like domain name and IP Address network blocks. Mostly it is widely used for getting information about domain like owner of domain name,its registrar,Date of expiry etc. Install whois […]
Recent Comments