tag:blogger.com,1999:blog-440764553810446292024-03-13T21:44:19.274-07:00Linux/Open source Errors and their solutionsSurendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-44076455381044629.post-10625979467228570602014-01-28T23:53:00.001-08:002014-01-28T23:53:38.023-08:00You don't have permission to access /nagios/ on this server.<div dir="ltr" style="text-align: left;" trbidi="on">
For this issue we have to just install php package and try to restart apache service and it should work with out any issue.</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-4763285657077504012013-09-27T23:02:00.002-07:002013-09-27T23:02:06.949-07:00syntax error at abc.pl line 10, near "$h ("<div dir="ltr" style="text-align: left;" trbidi="on">
Perl language have bit different mechanism when dealing with errors. Some points you should know before debugging errors.<div>
<br /></div>
<div>
1)Always use shebang statement with -w option as shown below.</div>
<div>
#!/usr/bin/perl -w</div>
<div>
2)Always use strict and warnings package to report all syntax errors.</div>
<div>
use strict;</div>
<div>
use warnings;</div>
<div>
<br /></div>
<div>
When you get above error do not just check error on the given line try to check before and after the line of error report. This tip will resolve most of your errors like missing closing brace "}", sentence termination like ";", etc.</div>
<div>
<br /></div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-16213713360319743772013-09-27T22:48:00.001-07:002013-09-27T22:48:07.651-07:00Can't find string terminator "EOF " anywhere before EOF at test.pl line 21.<div dir="ltr" style="text-align: left;" trbidi="on">
This issue will come when you are using EOF or EOM string to send multiple line to a perl print statement or a command. Just have look at below code<br />
<br />
I have a file descriptor which will take input from a string as shown below.<br />
<br />
printf FD1 "this my first line";<br />
<br />
This will work with out any issue, but when you want to send multiple lines as shown below we have to use PERL here-docs as shown below.<br />
<br />
printf FD1 << EOM;<br />
statement1<br />
statement2<br />
EOM<br />
<br />
other than this syntax, if you give any other thing it will fail. Observe that there is no double quotes before or after EOM and there is a ; colon after first EOM. We even have to remember that there should not be any space between << and EOM. Hope this helps some one who did this mistake.<br />
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-17612964253484085282013-09-17T12:19:00.000-07:002013-09-17T12:19:05.027-07:00Can't open /dev/sdb1 exclusively. Mounted filesystem?<div dir="ltr" style="text-align: left;" trbidi="on">
This is an issue we will get for many reasons, one reason we get this error is when we try to use the partition which is already mounted or used in your machine. This occurs some times due to LVM which is not properly implemented<br />
<br />
If you fee this is new partition and want to unlock the file from kernel follow below steps<br />
<br />
Step1: Check what are the partitions known to the kernel by using proc file system as shown bleow<br />
<br />
[root@gnani surendra]# cat /proc/partitions<br />
major minor #blocks name<br />
<br />
8 0 8388608 sda<br />
8 1 5120000 sda1<br />
8 2 1024000 sda2<br />
8 3 2240906 sda3<br />
8 16 8388608 sdb<br />
8 17 112423 sdb1<br />
8 18 112455 sdb2<br />
8 19 112455 sdb3<br />
253 0 112423 dm-0<br />
253 1 112455 dm-1<br />
253 2 112455 dm-2<br />
<div>
<br /></div>
<div>
Step2: Check if your required partition is in the list or not? If yes, then try to check status of that disk by using dmsetup command as shown below</div>
<div>
<br /></div>
<div>
<div>
[root@gnani surendra]# dmsetup status</div>
<div>
sdb3: 0 224910 linear</div>
<div>
sdb2: 0 224910 linear</div>
<div>
sdb1: 0 224847 linear</div>
</div>
<div>
<br /></div>
<div>
Step3: If you see your desired partition, try to unlink it from the kernel</div>
<div>
<br /></div>
<div>
dmsetup remove sdb1</div>
<div>
<br /></div>
<div>
Now try to use your partition and see if you still have issue. Hope this helps someone in need.</div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-22955293539723778762013-05-08T09:03:00.000-07:002013-05-19T23:13:39.115-07:00Perl Error: readdir() attempted on invalid dirhandle<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Q. I am seeing "readdir() attempted on invalid dirhandle DIR at" error when attempting to open a directory using readdir function in Perl. How can I resolve this?</b><br />
<br />
The error "readdir() attempted on invalid dirhandle DIR at" clearly states that PERL was unable to open directory by using readdir function. There are number of situations which causes this error<br />
<br />
1)Check if user who executed perl script have permissions on that directory or not. User should have read permissions to open a directory in Perl. Check permissions by using ls command.<br />
<br />
2)Check if directory exists or not? Sometimes users will forgot to check if directory exists or not before opening a directory. To avoid this we can use below code to check before opening a directory.<br />
<br />
<br />
<b></b><br />
<div id="code">
<b>opendir DIR, $SRCDIR || die ("Can not open dir $SRCDIR");</b></div>
<br />
<br />
Keep this line before readdir function so that it will give you a meaningful error message before reading a directory.<br />
<br />
3) Are you reading an input from user? Then make sure that your variable which contain directory name should not contain newline character. So use chop or chomp function to remove last character.<br />
<br />
<b>chop($DIR=<>)</b><br />
<br />
This will chop of last character.<br />
<br />
Hope this helps someone when dealing with open directory in perl.<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-67189727340793789972013-05-07T21:30:00.000-07:002013-05-07T21:30:10.267-07:00Solution for: mv: cannot move `' to a subdirectory of itself,<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Q. How can I move all my files in my working directory to a sub-directory with the working directory? I am getting error "mv: cannot move `' to a subdirectory of itself," Can I move all the files/folder to sub-directory with out this error?</strong><br />
<br />
Yes, you can move all your files/folders present in your directory to a sub-directory with out getting that error. This error will occure when mv command try to move this sub-directory as well which it can not do and throws this error. All you have to do set shopt extglop option and try below command<br />
<br />
<strong>shopt -s extglob</strong><br />
<strong>mv !(subdir) subdir/</strong><br />
<strong></strong><br />
<strong>Know more about <a href="http://www.linuxnix.com/2012/08/change-shell-properties-with-linux-shopt-command.html" target="_blank">shopt here</a>.</strong><br />
<strong></strong><br />
Thats it, you will not see the error as shown above. hope this helps some one.</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-50705287009369404942013-05-02T03:17:00.000-07:002013-05-02T03:17:12.359-07:00isohybrid: Warning: more than 1024 cylinders: isohybrid: Not all BIOSes will be able to boot this devic<div dir="ltr" style="text-align: left;" trbidi="on">
<strong>Q. I am facing issue "isohybrid: Warning: more than 1024 cylinders: isohybrid: Not all BIOSes will be able to boot this devic", How can I resolve this?</strong><br />
<br />
First this is not an issue or error. This is just a warning not an error and it is just a warnning. This warning will be displayed when you are trying to convert a normal ISO file to hybrid ISO file by using isohybrid command<br />
<br />
<strong>isohybrid /path/to/normal/iso/file</strong><br />
<br />
This error will come when your ISO file is more than 1GB size.</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-67187158223560738032013-02-27T20:43:00.000-08:002013-05-02T20:15:37.577-07:00error: Requested operation is not valid: Disk does not support snapshotting<div dir="ltr" style="text-align: left;" trbidi="on">
<b>error: Requested operation is not valid: Disk does not support snapshot</b><br />
<br />
This error arises when you try to take a snapshot of a VM hard disk with virsh command<br />
as shown below<br />
<br />
<br />
<b>virsh snapshot-create Clusterbase</b><br />
<b><br /></b>
error: Requested operation is not valid: Disk '/path/to/kvm/clusterbase.img' does not support snapshot.<br />
<br />
If you see image of this VM is .img format, by default Virsh snapshot will work only for qcow2 format as of time of this post writing. So first convert that image to qcow2 format and then try to do a snapshot t with same command.<br />
<br />
Convert img file to qcow2 format<br />
<br />
<br />
<b>qemu-img convert -f raw -O qcow2 /path/to/kvm/clusterbase.img /path/to/kvm/clusterbase.qcow2</b><br />
<br />
Hope this helps to resolve this error.</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com2tag:blogger.com,1999:blog-44076455381044629.post-21883330269967339772013-02-24T06:12:00.003-08:002013-02-24T06:12:45.348-08:00 Loaded plugins:fastest mirror Loading mirror speed from cached hosfile Setting up install process Nothing to do<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #cc0000;">Q. I am seeing below error when installing some packages</span><br />
<br />
<br />
<b> Loaded plugins:fastest mirror</b><br />
<b> Loading mirror speed from cached hosfile</b><br />
<b> Setting up install process</b><br />
<b> Nothing to do</b><br />
<br />
This error will come when you execute below command<br />
<br />
<b><a href="http://www.linuxnix.com/2008/05/how-to-install-yum-server-in-redhatrhel5.html" target="_blank">yum</a> install somepackage</b><br />
<br />
and the repo is set with "enable=0", try to change it or use --enablerepo= as shown below.<br />
<br />
<b>yum --enablerepo=yourreponame install somepackage</b><br />
<br />
<br />
If you set enable=0 that indicates that dont include this repo when installing RPM packages. And enable=1 will include this <a href="http://www.linuxnix.com/2008/05/how-to-install-yum-server-in-redhatrhel5.html" target="_blank">repo</a> when installing packages.<br />
<br />
Hope this helps some one.<br />
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-37300005562515279632013-02-22T20:01:00.000-08:002013-02-22T20:01:29.935-08:00error: command 'save' requires option<div dir="ltr" style="text-align: left;" trbidi="on">
This error will come when you are trying to save VM using virsh command. When you try to save VM status using Virt-manager we no need to mention any file to save the status. Virt-manager will take care of saving it. But virsh have no mechanism like this. We have to provide a file to save the machine status.<br />
<br />
virsh save domaname filename<br />
<br />
Example<br />
virsh save linux1 /opt/linux1.stat<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-89385683640056098522013-01-17T22:22:00.000-08:002013-01-17T22:22:06.520-08:00Failed to mount ': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware.<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="text-align: left;">
<span style="color: #990000;">Q. I am getting following error when I mounted my external HDD in Ubuntu Linux and getting below error.</span></h3>
<br />
<br />
root@linuxnix.com:~# mount -t ntfs /dev/sde1 /mnt<br />
$MFTMirr does not match $MFT (record 0).<br />
Failed to mount '/dev/sde1': Input/output error<br />
NTFS is either inconsistent, or there is a hardware fault, or it's a<br />
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows<br />
then reboot into Windows twice. The usage of the /f parameter is very<br />
important! If the device is a SoftRAID/FakeRAID then first activate<br />
it and mount a different device under the /dev/mapper/ directory, (e.g.<br />
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation<br />
for more details.<br />
<div>
<br /></div>
<div>
<b>This error usually occurs</b></div>
<div>
<ul style="text-align: left;">
<li><b>When computer shutdown/restarted/suspended/hibernated</b></li>
<li><b>Not properly mounted etc.</b></li>
</ul>
<div>
To fix this issue you have to install ntfsprogs which will provide fixing of </div>
</div>
<div>
<br /></div>
<div>
As a root run below command</div>
<div>
<br /></div>
<div>
<b>apt-get install ntfsprogs</b></div>
<div>
<br /></div>
<div>
Fixing by using ntfsfix as root</div>
<div>
<br /></div>
<div>
<b>ntfsfix /dev/sde1</b></div>
<div>
<br /></div>
<div>
Once this is fixed you can try to mount once again.</div>
<div>
<br /></div>
<div>
<b>mount -t ntfs /dev/sde1 /mnt</b></div>
<div>
<br /></div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-56478922547393074182013-01-09T22:29:00.003-08:002013-01-09T22:29:54.388-08:00mount: could not find any free loop device<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: red;">mount: could not find any free loop device solution</span></h2>
<br />
This is the error you will get when mounting an ISO or img file. This is due to limitations of number of loop devices available in a machine. To eliminate this error we have to unmount unnecessary images before mounting any other image file in the machine.<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-56706430784577229032012-12-14T11:07:00.000-08:002012-12-14T11:07:19.846-08:00Linux error "There are stopped jobs"<div dir="ltr" style="text-align: left;" trbidi="on">
This error will come when you try to logout or exit from a terminal and there are some tasks which are running in background. <div>
<br /></div>
<div>
<br /></div>
<div>
<div>
<b>surendra@linuxnix.com:~$ ping linuxnix.com</b></div>
<div>
<b>PING linuxnix.com (216.239.38.21) 56(84) bytes of data.</b></div>
<div>
<b>64 bytes from any-in-2615.1e100.net (216.239.38.21): icmp_req=1 ttl=50 time=61.3 ms</b></div>
<div>
<b>64 bytes from any-in-2615.1e100.net (216.239.38.21): icmp_req=2 ttl=50 time=63.2 ms</b></div>
<div>
<b>^Z</b></div>
<div>
<b>[1]+ Stopped ping linuxnix.com</b></div>
<div>
<b>surendra@linuxnix.com:~$ exit</b></div>
<div>
<b>There are stopped jobs.</b></div>
<div>
<b>surendra@linuxnix.com:~$ </b></div>
</div>
<div>
<br /></div>
<div>
If you observe I started a ping program and sent that process to background. And when I try to logout from that terminal I got an error stating that there are still some programs running. To stop this error we have to see if you really like to kill the jobs.</div>
<div>
<br /></div>
<div>
<b>How to kill those jobs?</b></div>
<div>
Execute/press below commands/shortcuts</div>
<div>
<br /></div>
<div>
<b>fg</b></div>
<div>
<b>ctrl+c</b></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b>How to retain job running though you try to logout?</b></div>
<div>
Just press below commands/shortcuts</div>
<div>
<br /></div>
<div>
<b>ctrl+z</b></div>
<div>
<b>bg</b></div>
<div>
<b>disown</b></div>
<div>
<br /></div>
<div>
This will allow us to run the process in background though you try to logout.</div>
<div>
<br /></div>
<div>
</div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-59706319794302303772012-12-02T07:18:00.000-08:002012-12-02T07:18:23.428-08:00Solution of "No Route to Host error" Issue<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="color: red;">No Route to Host error Linux solution</span></h2>
<b>Q. I am seeing an error when trying to connect to a server, but I am able to ping and see other ports open by using telnet command? Is there a solution to resolve this issue?</b><br />
<br />
First of all check what are open ports on that machine<br />
<br />
<a href="http://www.linuxnix.com/2009/11/nmap-with-examples.html" target="_blank">nmap</a> server-ip<br />
<br />
Check if your service is running and showing in nmap output.Check if your service is running or not on tha<br />
<br />
If your port is not open check your <a href="http://www.linuxnix.com/2009/12/iptables-in-linux-explained.html" target="_blank">iptables</a> output.<br />
<br />
iptables -L<br />
<br />
This will show all the rules. You can flush the iptables if you are not much concern about security.<br />
<br />
iptables -F<br />
<br />
Stop iptables and save iptables<br />
<br />
service iptables stop<br />
service iptables save<br />
<br />
Perminently off iptables service.<br />
<br />
chkconfig iptables off<br />
<br />
<br />
<br />
<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com2tag:blogger.com,1999:blog-44076455381044629.post-81529679697155252482012-11-17T22:53:00.000-08:002012-11-17T22:53:36.414-08:00'main' not defined in your config (for this host). <div dir="ltr" style="text-align: left;" trbidi="on">
This is the error you will see when configuring drbd(Distributed Replicated Block Device). This is caused when the main resource in not defined in any or .res files in /etc/drbd.d folder. So check you defined main as resource in the .res files or not. If its defined and you feel there is no config error, check if the host name is matching in the res file to the uname -n command<br />
<br />
uname -n<br />
<br />
if you see the difference between the names then change the config files according to the uname -n command output.<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-45564136780425737062012-10-14T20:48:00.000-07:002012-10-14T20:48:26.553-07:00WARNING: Re-reading the partition table failed with error 16: Device or resource busy<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: red;">WARNING: Re-reading the partition table failed with error 16: Device or resource busy</span></h2>
<br />
We will see this error from RHEL6 on words. This error is due to the partition table changes are not updated to kernel. When ever we change the partition table and try to save the table changes we get this error. Even you will get the following error as well<br />
<b><br /></b>
<br />
<b>The kernel still uses the old table. The new table will be used at</b><br />
<b>the next reboot or after you run partprobe(8) or kpartx(8)</b><br />
<b>Syncing disks.</b><br />
<div>
<br /></div>
<div>
<br /></div>
<div>
when you see this error and executing partprobe command can not do anything, in RHEL5 based partprobe is the command to update the partition table changes to kernel, but from 6 we have to use partx command to update the partition table changes to kernel. </div>
<div>
<br /></div>
<div>
Use below command to update the partition table changes.</div>
<div>
<br /></div>
<div>
<b>partx -a /dev/sda</b></div>
<div>
<br /></div>
<div>
This will update the partition table changes of /dev/sda hard disk to the kernel.</div>
<div>
<br /></div>
<div>
Try to run above command <b>two times</b>, because first time it will try to sync previous partition table changes.</div>
<div>
<br /></div>
<div>
Hope this helps some one.</div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com1tag:blogger.com,1999:blog-44076455381044629.post-69034496272022363652012-10-03T21:05:00.001-07:002012-10-03T21:05:23.892-07:00Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="color: red;">Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied</span></h2>
<br />
This error will occurs if the user do not have permissions to connect to virt-manager or virtviewer tools.<br />
To resolve this issue execute below commands<br />
<br />
<b><span style="color: red;">Step1:</span></b> Conform if your root user account have permissions or not<br />
<br />
<b>virsh -c qemu:///system list</b><br />
<br />
if you dont see any issue from root user, try to execute the same command with normal user where you want to start virt-viewer or virt-manager. If you see any issues such as "<b>failed to connect socket</b>" issue with normal user then he should be member of libvirtd group first. Follow below procedure.<br />
<br />
<b><span style="color: red;">Step2: </span></b>Add the user account as secondary group member to libvirtd group<br />
<br />
<b>Note: </b>Before doing anything keep in mind that this user may be member of many other already existing groups so add this user account to them as well.<br />
<br />
<b>usermod -G libvirtd,group2,group3 -a username</b><br />
<br />
<b><span style="color: red;">Step3: </span></b>Now we have to change the settings in /etc/libvirt/libvirtd.conf. Open /etc/libvirt/libvirtd.conf as root and search for following lines and remove the comments for that lines.<br />
vi /etc/libvirt/libvirtd.conf<br />
Now remove comments from the lines which contains below info.<br />
<br />
<b>unix_sock_group = "libvirtd"</b><br />
<b>unix_sock_ro_perms = "0777"</b><br />
<b> unix_sock_rw_perms = "0770"</b><br />
<br />
With the first line we are mentioning that libvirtd group is allowed to very one and r/o and r/w permissions for all the users who belongs to this group.<br />
<br />
Hope this helps some one.<br />
<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-32292333015350985832012-10-03T00:35:00.000-07:002012-10-03T00:53:29.739-07:00(98)Address already in use: make_sock: could not bind to address 192.168.1.1:443 no listening sockets available<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
<br /></div>
<div>
<h2 style="text-align: left;">
<span style="color: red;">Solution for <b>(98)Address already in use: make_sock error</b></span></h2>
</div>
<div>
<b><br /></b></div>
The error<br />
<div>
<br /></div>
<div>
<b>(98)Address already in use: make_sock: could not bind to address 192.16.1.1:443 no listening sockets available</b></div>
<div>
<br /></div>
<div>
is commonly seen when we are starting a network related service such as Apache(httpd), DNS(bind) squid etc.</div>
<div>
<br /></div>
<div>
<h4 style="text-align: left;">
<b><span style="color: red;">When and Why this error occurs?</span></b></h4>
</div>
<div>
This error occurs when service tried to bind that particular port to the IP address. In other words for example there is service ABC running on port 443 and you tried to start some other service XYZ on the same port with out knowing that ABC service is running on that 443 port.</div>
<div>
<h4 style="text-align: left;">
<b><span style="color: red;">Technical details?</span></b></h4>
When ever you want to run a network related service we have to bind this service to a port and IP address so that once its assigned what ever packets coordinated to that service are routed through this port.<br />
<h4 style="text-align: left;">
<b><span style="color: red;">What about Solution?</span></b></h4>
<br />
<b><span style="color: red;">Step1:</span></b> First you have to check what service is running on that IP address by using <b><a href="http://www.linuxnix.com/2009/11/nmap-with-examples.html">nmap port mapping tool</a></b>.<br />
<br />
From the above error I am taking my IP as 192.168.1.1<br />
<br />
<b>nmap 192.168.1.1</b><br />
<br />
Sample output<br />
<br />
<br />
<br />
<i><span style="color: #cc0000;">root@linuxnix.com:/var/log# nmap localhost</span></i><br />
<i><span style="color: #cc0000;"><br /></span></i>
<i><span style="color: #cc0000;">Starting Nmap 5.21 ( http://nmap.org ) at 2012-10-03 12:35 IST</span></i><br />
<i><span style="color: #cc0000;">Nmap scan report for 192.168.1.1</span></i><br />
<i><span style="color: #cc0000;">Host is up (0.0000090s latency).</span></i><br />
<i><span style="color: #cc0000;">Not shown: 997 closed ports</span></i><br />
<i><span style="color: #cc0000;">PORT STATE SERVICE</span></i><br />
<i><span style="color: #cc0000;">53/tcp open domain</span></i><br />
<i><span style="color: #cc0000;"><b>443/tcp open sshd</b></span></i><br />
<i><span style="color: #cc0000;">3689/tcp open rendezvous</span></i><br />
<i><span style="color: #cc0000;"><br /></span></i>
<i><span style="color: #cc0000;">Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds</span></i><br />
<div>
<br />
Step2: Once you find the service name which occupies the port try to stop if the service is not required.<br />
<br />
service sshd stop<br />
<br />
Step3: Now start your Apache service and this error will vanish.<br />
<br /></div>
<br />
<br />
<br /></div>
</div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0tag:blogger.com,1999:blog-44076455381044629.post-53996233760774377262012-10-02T23:10:00.000-07:002012-10-02T23:10:38.917-07:00All about Linux and Open source errors with their solutions<div dir="ltr" style="text-align: left;" trbidi="on">
The idea of this blog is simple. This is totally meant for the errors which are seen daily when we are configuring some servers, applications, tools etc. I felt there is no dedecated blog which deals only with errors related to Linux, Unix and open source tools which work on Linux/Unix based flavors. This site is for those people who are looking for the errors they are seeing on day to day activities.<br />
<br />
What you will see in this blog?<br />
<br />
All about errors and their solutions so that you no need to scratch your head on what went wrong in creating this error?<br />
<br />
Can any one contribute to this site?<br />
Yes, All are welcome. A person in this world will never come across all the problems faced by other users. So it should be corroborated way rather than one man army.<br />
<br />
Thanks,<br />
Surendra Anne.<br />
<br /></div>
Surendra Kumar Annehttp://www.blogger.com/profile/12971989109849579563noreply@blogger.com0