Posts

Showing posts from 2017

Load Balancinng Nginx with two vps server

CentOS 6.4: 1 sudo nano / etc / nginx / conf . d / default . conf Debian/Ubuntu: 1 2 3 4 5 6 7 sudo nano / etc / nginx / sites - available / default upstream server_array {    server server1 . yourdomain . com ;    server server2 . yourdomain . com ;    server server3 . yourdomain . com ; } where server_array is the name of the server group which will be used for the load balancing configuration. Inside the same file we can "tell" the virtual host to use the server group: 1 2 3 4 5 6 7 server {      listen 80 ;      server_name yourdomain . com ;      location / {          proxy_pass http : //server_array;      } } Once ready we can restart the Nginx service: 1 sudo / etc / init . d / nginx start down vote If you have installed the  nginx  package from the Ubuntu repositories, you will have two directories. /etc/nginx/sites-enab

Explore Docker Containers Simple Command

Command To Explore Container Contents sudo docker exec -it ContainerID bash

Install Cloud Torrent on Docker

Image
Setup Cloud Torrent Using Docker Centos Ubunthu Debian Make Sure you have installed Docker On your Machine..... if you dont know please click below link Installation Docker On Ubunthu Step 1 : Create One Folder                        Command :  mkdir foldername Step 2: Enter on that Folder                       Command : cd foldername Step 3: then open text file in name of  "Dockerfile"  (D must be Uppercase)                      Command : vi Dockerfile Step 4 : Paste this below content FROM alpine MAINTAINER dev@jpillora.com #configure go path ENV GOPATH /root/go ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin #package ENV PACKAGE github.com/jpillora/cloud-torrent ENV PACKAGE_DIR $GOPATH/src/$PACKAGE #install go and godep, then compile cloud-torrent using godep, then wipe build tools RUN apk update && \     apk add git go gzip && \     go get github.com/tools/godep && \     mkdir -p $PACKAGE_DIR && \

Install Wordpress Using Docker Yml file

Image
 First of All  Install Docker On Ubunthu Using Below Commands Command 1 :     curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Command 2 : sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" Command 3 : sudo apt-get update Command 4 : apt-cache policy docker-ce Command 5 : sudo apt-get install -y docker-ce Command 6 : sudo systemctl status docker Output : ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2016-05-01 06:53:52 CDT; 1 weeks 3 days ago Docs: https://docs.docker.com Main PID: 749 (docker) Then you successfully installed Docker.... Then, Install Python  Command 1 : sudo apt-get install python-pip Command 2 : sudo pip install docker-compose Then, Install Wordpress On Docker Please Follow Be