Showing posts from June, 2018

Configure Zabbix Server and Agent

Zabbix is an open source software, where you can monitor your network and server infra. You can monitor your remote host with zabbix agent. In this article we will install and configure zabbix server and zabbix host on remote server and monitor it. We will use Ubuntu 16.04 for this project. Install Apache, MysQl and PHP. You will have to install LAMP in your Zabbix server. So first we will install Apache, Php and MysQl in zabbix server. apt-get update apt-get install apache2 apt-get install mysql-server apt-get install php php-mbstring php-gd php-xml php-bcmath php-ldap php-mysql After install php we will have to change and configure local timezon in php configuration file. vim /etc/php/PHP_VERSION/apache2/php.ini [Date] ; date.timezone = 'Asia/Kolkata' We will have to enable require APT repository to install Zabbix. For Ubuntu 16.04 LTS: wget

Deploy Static Website using docker container

In this article we will learn how to deploy static website using docker container. we will use nginx for web server testing. Create docker file : To deploy static website we will have to create one docker file to run website. in docker file we will add some text to perform tasks. copy the content below and paste in your docker file. Create directory called docker [you can create any] mkdir /docker Create docker file in to docker directory and add below context. vim dockerfile FROM nginx:alpine COPY . /usr/share/nginx/html save file. 1. it will download nginx latest from docker hub. 2. copy all context from working directory to /usr/share/nginx/html. touch index.html <h1>Hellow this is my website</h1> and save the file. Now we will build the docker image. from the build command it will execute each instruction which we have added in docker file. docker build -t mywebserver:v1 . Sending build context to Docker daemon 3.072 kB Step 1/2 : FR