Pular para o conteúdo principal

Postagens

Mostrando postagens de 2018

Instalação MONGODB in Centos

How to Install MongoDB 4.0 on CentOS/RHEL 7/6 Updated on July 10, 2018 by Rahul K. Databases , MongoDB install mongodb , mongodb , mongodb on linux , setup mongodb MongoDB (named from “huMONGOus“) is a full flexible index support and rich queries database. Its is a NoSQL database. MongoDB provides large media storage with GridFS. Click here for more details about mongoDB. MongoDB has released new stable version 4.0 with lots of major enhancements. This tutorial will help you to install MongoDB 4.0 on CentOS 7/6 and Red Hat 7/6 systems. Step 1 – Add MongoDB Yum Repository Add following content in yum repository configuration file mongodb.repo as per your required MongoDB version and system architecture. For this article, we are using MongoDB 4.0 repository. CentOS and RedHat systems Only vi /etc/yum.repos.d/mongodb.repo [MongoDB] name=MongoDB Repository baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/ gpgcheck=0 enabled=1 F

Como colocar script para iniciar com Linux

Para um programa/script específico ser executado na inicialização do sistema, pode-se editar o arquivo “/etc/rc.local”. Nele, deve-se colocar o caminho completo do script e finalizar a linha com & (e comercial), para executar em background, logo antes do “exit 0”. Existem formas diferentes conforme o sistema de inicialização utilizado: Systemd ou System V (ou Sysvinit). Uma variação. Uma das principais razões para o Debian mudar do SysV para o systemd é a popularização de computadores com mais de um núcleo, de modo aproveitar melhor o paralelismo do que a tentativa realizada pelo Upstart (da Canonical, que mantém o Ubuntu). O systemd é compatível com o SysV e Scripts de init LSB (Linux Standard Base), mas possui padrões diferentes para conter basicamente a mesma informação. O comando service é uma ferramenta de “compatibilidade” para ajudar as pessoas a migrar de sysvinit para systemd. É um programa que tenta descobrir seu sistema de inicialização atual e chama

Openvas don´t download PDF files in CENTOS 7/Oracle Linux

In some cases the package latexextra is missing. Problem and temporary solution: If you are running OpenVAS 7 on a Centos 7 machine, PDF-Generation is not working. The required package "texlive-collection-latexextra" is currently (October 2014) not available in the official repositories. You can identify this problem the following way: when running # openvas-check-setup the check reports: ... Step 9: Checking presence of optional tools ... OK: pdflatex found. WARNING: PDF generation failed, most likely due to missing LaTeX packages. The PDF report format will not work. SUGGEST: Install required LaTeX packages. ... and # yum install texlive-collection-latexextra shows sth. like: "The package texlive-collection-latexextra is not available" One possible alternative is the installation of texlive from the official texlive-mirrors. # wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz # tar xvzf insta

How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS/RHEL 7

If you are a person who is, or has been in the past, in charge of inspecting and analyzing system logs in Linux, you know what a nightmare that task can become if multiple services are being monitored simultaneously. In days past, that task had to be done mostly manually, with each log type being handled separately. Fortunately, the combination of Elasticsearch , Logstash , and Kibana on the server side, along with Filebeat on the client side, makes that once difficult task look like a walk in the park today. The first three components form what is called an ELK stack, whose main purpose is to collect logs from multiple servers at the same time (also known as centralized logging). A built-in java-based web interface allows you to inspect logs quickly at a glance for easier comparison and troubleshooting. These client logs are sent to a central server by Filebeat , which can be described as a log shipping agent. Let’s see how all of these pieces fit together. Our t

Instalação do MySQL Server Community no Oracle Linux 7 via YUM

Neste tutorial vamos mostrar com instalar o MySQL Community Server no Oracle Linux utilizando um repositório YUM. Siga os passos abaixo: 1 - Verificar a disponibilidade do pacote mysql-server nos repositórios públicos do yum: # yum list all | grep mysql Veja que o pacote mysql-server não está disponível nos repositórios. Isso ocorre porque o Oracle Linux 7 vem com o MariaDB por padrão para instalação. Você pode verificar isso com o comando a seguir: # yum list all | grep mariadb 2 - Entrando no diretório que contém as definições dos reposítórios do YUM # cd /etc/yum.repos.d Visualizamos seu conteúdo: # ls e então editamos o arquivo encontrado, public-yum-ol7.repo : # vi public-yum-ol7.repo Vasculhando o arquivo você irá encontrar o repositório do MySQL. Note que a versão mais recente disponível é a versão MySQL 5.6  (a versão 5.5 também está disponível).  O repositório está desabilitado, e para habilitá-lo basta alterar o valor de 0 para 1 na linha enabled

Openvas no Centos 7

OpenVAS known as Open Vulnerability Assessment System is the open source vulnerability suite to run the test against servers for known vulnerabilities using the database (Network Vulnerability Tests), OpenVAS is a free software, its components are licensed under GNU General Public License (GNU GPL). Here is the small guide to setup the OpenVAS on CentOS 7 / RHEL 7. Setup Repository: Issue the following command in the terminal to install atomic repo. # wget -q -O - http://www.atomicorp.com/installers/atomic | sh Accept the license Agreement. Atomic Free Unsupported Archive installer, version 2.0.12BY INSTALLING THIS SOFTWARE AND BY USING ANY AND ALL SOFTWARE PROVIDED BY ATOMICORP LIMITED YOU ACKNOWLEDGE AND AGREE:THIS SOFTWARE AND ALL SOFTWARE PROVIDED IN THIS REPOSITORY IS PROVIDED BY ATOMICORP LIMITED AS IS, IS UNSUPPORTED AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULA

Centralização e análise de logs com Graylog, MongoDB e Elasticsearch

1.Infraestrutura e pré-requisitos 2. Instalação do Elasticsearch 3. Instalação do MongoDB 4. Instalação do Graylog Server 5. Instalação do Graylog Web 6. Configuração dos clientes e envio de Log 6.1 – Configuração do Input de logs 6.2 – Configuração do Firewall 6.3 – Configuração em envio de logs 7. Verificação dos logs na interface Web 8. Graylog via proxy com o Nginx “Open source log management that actually works” – www.graylog.org Neste tutorial vamos instalar e configurar o Graylog para a centralização e análise de logs. É fundamental ter uma ferramenta para análise de logs na sua infraestrutura, isto te possibilita um debug mais apurado do ambiente, melhora a segurança, ajuda a compartilhar informações com os times, auxilia na monitoração com o uso de triggers, centralização de logs, enfim é uma ferramenta estratégica que oferece vários recursos para uma boa análise da sua infraestrutura. Graylog é uma excelente alternativa ao Splunk e Kibana+Lo