Hi :)
In this post I want to show you commands which I use to work with my server. My knowledge about server side is mostly based on course created by Jem Young on FrontEndMasters platform. I strongly recommend his courses.
This is part 1
$ sudo apt-get install nginx #install nginx
$ sudo service nginx start #start nginx
$ sudo cat /etc/nginx/sites-available/default #display nginx default configuration using
$ sudo less /etc/nginx/sites-available/default #the same as above using less
$ nslookup #tell where domain is pointed
$ sudo mkdir -p /var/www #make a web directory if it doesn't already exists
$ sudo chown -R $USER:$USER /var/www #change ownership
#of the web directory to the current user
$ cd /var/www #go to this directory
$ mkdir tmp2 #make directory with a name tmp2
$ rmdir tmp2 #remove directory with a name tmp2
$ git clone #clone repository from git
$ sudo ln -s /usr/bin/package1 /usr/bin/pckg #make a symbolic link - # pckg is symbolic link for package1. It's like an shortcut in windows'
Top comments (0)