Pages

Friday, August 4, 2017

What is Localhost and how to enable localhost in windows linux and mcOS

What is Localhost and how to enable localhost in windows linux and mcOS ....




Localhost is a host name that means 'this computer'. It is 
used to access the network services that are running on 
the host via its loopback network interface means we can
access our network service that is running on our computer.
It is very useful if you are working on any web application or
any website you can simply use this service to make your work
easier.

What I do to enable localhost in windows ..?

Localhost in windows called IIS (internet information Service)
many of us are using windows and may be using the IIS or not
if you haven't any idea to enable localhost follow these steps
to enable.

In Windows, access the Control Panel and click Add or Remove Programs.
In the Add or Remove Programs window, click Add/Remove Windows Components.
Select the Internet Information Services (IIS) and Internet Information Services hostable web core check boxes, click Next, then click Finish.

now simply open any browser and type 127.0.0.1 in the address bar.

Linux...????

For localhost in linux you need to install apache2.
Here's how to install apache2 in different oses.

In Ubuntu

Open terminal (Press Alt+Ctrl+T) and then type sudo apt-get apache2
and start service with
service apache2 start

In CentOS/Redhat

Open terminal and type yum install httpd
and start service with 
service httpd start

open browser and check connection at localhost:80

you can host your local website at /var/www/html

mac OS..????

Enabling localhost in macos is slightly different for each
macos version so please refer to apple's website

Click here..

If you found this article helpful please comment below....

No comments:

Post a Comment

Ransomware : the malware isn't going to stop very soon......

Ransomware you may know about this thing which is a computer malware designed to lock our date until we pay some fee . you remembered the...