how to setup a a server code example
Example: how to setup a web server
# This is just an apache server...
# Do a quick update...
sudo apt-get update
# Install apache2...
sudo apt-get install apache2
# Start it...
sudo service apache2 start
# Stop it if you are not using
sudo service apache2 stop
# To access it after starting.. find your ip address like this...
hostname -I
# or
ifconfig
# or
ip addr
# Now type your ip address in a browser you use. E.g: http://[IP Add.]