Grooming Classroomnotes 11/Apr/2023

Apache Server

  • This is a popular web server
  • Open Source =>
    • Free/Community Editions
    • Enterprise Editions (Support)
  • Web Server:
    • exposes http connectivity
    • returns web pages
  • Web Page:
    • HTML Page
  • Webservers generally understand http and respond with
    • html
    • json
    • other formats
  • Webservers also support executing some languages
    • php
  • Webservers can also forward the request to some other servers.
  • Popular Webservers:
    • Apache
    • Nginx
    • IIS
  • Lets create a linux VM
  • To install apache
sudo apt update
sudo apt-cache search apache
sudo apt install apache2 -y
  • Any application that runs in the background is called as daemon or service
  • To control services linux has systemctl command
  • To view the service status sudo systemctl status apache2.service
  • To stop sudo systemctl stop <service-name>
  • To start sudo systemctl start <service-name>
  • To enable sudo systemctl enable <service-name>
  • Lets add our page into apache server
    • folder for webpages /var/www/html/
    • Lets create info.html and add <h1>information found </h1>
  • Exercise: Try doing the same in nginx server

Copying files between windows and linux

  • Lets use sftp

Installing Softwares in Linux

  • We have 3 ways
    • download the software and extract it on your own
    • using deb (sudo dpkg -i .deb) or rpm packages sudo rpm -iVh <name>.rpm)
    • using pacakge managers
      • debian/ubuntu => apt sudo apt install git
      • redhat => yum/dnf sudo yum install git
      • generic => snap sudo snap install git
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Exit mobile version
%%footer%%