Translate

Monday, August 26, 2013

Q. What is a port?
A port is software docking point in your machine where remote application uses for communication. This is analogy to the physical ports for entering in to the Countries.
Q. What is hardware port?
This is physical peripheral connection point to a machine from a physical device.
Q. What is a socket?
Socket is mix of software Port+IP address.
Q. What is the range of ports or how many ports are there?
Port numbers can vary from 0 to 65535, so total we can get 65536 ports
Q. Why port numbers are just 65536?
This is because limitation in TCP/IP stack where the port field is just 16bit size. So we get only 2^16 port which is equal to 65536 ports
Q.What are the well-known ports?
Well known ports are from 0 to 1023(total 2^10=1024 ports)
Q.What do you mean by default port?
Default port is a designated port for particular well-known server.
Q.Can we change default port for a service(example Apache, squid)?
Yes, we can change
Q.What are the protocol numbers for TCP and UDP?
TCP protocol number:6
UDP protocol number:17

Databases
3306MySQL
1433MS SQL Server
5432PostgreSQL
Remote Access - Graphical
3389MS Remote Desktop
5800VNC-HTTP
5900VNC
Remote Access - Console
22SSH
23Telnet
512Rexec
513Rlogin
514RSH
Remote Data Transfer & Management
20FTP Data
21FTP
69TFTP
2049NFS
Directory Service
389LDAP
636LDAP Secure
Web
80HTTP
443HTTPS
3128 Squid Web Proxy
Mail & Chat
25SMTP
110POP3
995POP3S
143IMAP
993 IMAPS
5222Jabber
5223Jabber SSL
Infrastructure Management
53DNS
1512WINS
67DHCP Server
68DHCP Client
123/UDPNTP
161SNMP

Easy Steps to Nginx Installation

Follow these Steps Blindly !

1. yum install svn pcre-devel openssl-devel zlib

2. cd /usr/local/src

3. wget http://nginx.org/download/nginx-1.4.1.tar.gz
4. svn checkout http://nginx-upstream-jvm-route.googlecode.com/svn/trunk/ nginx-upstream-jvm-route-read-only
5. tar -xzvf nginx..tar.gz

6. cd nginx.

7. patch -p0 < /path/to/nginx-upstream-jvm-route-read-only/jvm_route.patch

8. ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module --with-debug --add-module=/usr/local/src/nginx-upstream-jvm-route-read-only/

9. make

10. make install


11. save this file to "/etc/init.d/nginx"
http://wiki.nginx.org/RedHatNginxInitScript

12. chmod ug+x /etc/init.d/nginx

About Me

My photo
Greetings Friend! I am Linux scholar, trying to learn as much I can and share it with you. I am in mid of my Professional Career. Doing Good. :)

Followers