Showing posts from December, 2011

How to check and open ports in Linux

The most common host-based tool for checking for open ports on Windows or Unix systems is the netstat command. To see open TCP Network Ports :-  vishal@vyas:~# netstat -vatn To see DNS Hostnames :-  vishal@vyas:~# netstat -vat To see open UDP Network Ports:-  vishal@vyas:~# netstat -vaun =================================================================== Nmap (“Network Mapper”) is an open source tool for network exploration and security auditing. Nmap can provide further information on targets, including reverse DNS names, operating system guesses, device types, and MAC addresses. vishal@vyas:~# nmap -sS Starting Nmap 4.53 ( ) at 2011-12-26 12:35 IST Interesting ports on ( Not shown: 1703 closed ports PORT      STATE SERVICE 22/tcp    open  ssh 80/tcp    open  http 110/tcp   open  pop3 111/tcp   open  rpcbind 139/tcp   open  netbios-ssn 143/tcp   open  imap 445/tcp   open  microsoft-ds 993/tcp   open 

How to Install MySQL on Linux

I will explain how to install MySQL on Linux [Redhat, Fedora] platform. Type the following command as root user: # yum install mysql-server mysql Start MySQL Service:- To start mysql server type the following command:- # chkconfig mysqld on # /etc/init.d/mysqld start  Setup mysql root password:- # mysqladmin -u root password yourpass Connecting to MySQL:- # mysql -u root -p Enter password: Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 7369 Thanls, Vishal Vyas