Monique  Larson

Monique Larson

1596805560

Cómo instalar el servidor dweb Apache en CentOS 8

Introducción

El servidor HTTP Apache es el más usado del mundo. Ofrece muchas características potentes, entre las que se incluyen módulos que se cargan de forma dinámica, una sólida compatibilidad con medios y amplia integración con otras herramientas de software populares.

A través de esta guía, instalará un servidor web Apache con hosts virtuales en su servidor de CentOS 8. Para acceder a una versión más detallada de este tutorial, consulte Cómo instalar el servidor web Apache en CentOS 8.

Requisitos previos

Necesitará lo siguiente para completar esta guía:

Paso 1: Instalar Apache

Apache está disponible dentro de los repositorios de software predeterminados de CentOS, lo cual significa que puede instalarlo con el administrador de paquetes dnf.

Ya que configuramos un non-root sudo user en los requisitos previos, instale el paquete Apache:

sudo dnf install httpd

Una vez confirmada la instalación, dnf instalará Apache y todas las dependencias necesarias.

Paso 2: Ajustar el firewall

Al completar el paso 4 de la guía de Configuración inicial del servidor con CentOS 8 que se mencionó en la sección de requisitos previos, ya habrá instalado firewalld en su servidor para suministrar las solicitudes a través de HTTP.

#apache #centos 8

What is GEEK

Buddha Community

Cómo instalar el servidor dweb Apache en CentOS 8
Monique  Larson

Monique Larson

1596805560

Cómo instalar el servidor dweb Apache en CentOS 8

Introducción

El servidor HTTP Apache es el más usado del mundo. Ofrece muchas características potentes, entre las que se incluyen módulos que se cargan de forma dinámica, una sólida compatibilidad con medios y amplia integración con otras herramientas de software populares.

A través de esta guía, instalará un servidor web Apache con hosts virtuales en su servidor de CentOS 8. Para acceder a una versión más detallada de este tutorial, consulte Cómo instalar el servidor web Apache en CentOS 8.

Requisitos previos

Necesitará lo siguiente para completar esta guía:

Paso 1: Instalar Apache

Apache está disponible dentro de los repositorios de software predeterminados de CentOS, lo cual significa que puede instalarlo con el administrador de paquetes dnf.

Ya que configuramos un non-root sudo user en los requisitos previos, instale el paquete Apache:

sudo dnf install httpd

Una vez confirmada la instalación, dnf instalará Apache y todas las dependencias necesarias.

Paso 2: Ajustar el firewall

Al completar el paso 4 de la guía de Configuración inicial del servidor con CentOS 8 que se mencionó en la sección de requisitos previos, ya habrá instalado firewalld en su servidor para suministrar las solicitudes a través de HTTP.

#apache #centos 8

Monique  Larson

Monique Larson

1596373499

Como instalar o Servidor Web Apache no CentOS 8

Introdução

O servidor HTTP Apache é o servidor Web mais amplamente usado no mundo. Ele fornece muitas características poderosas, incluindo módulos carregáveis dinamicamente, suporte robusto de mídia e uma integração extensa com outros softwares populares.

Neste guia, você instalará um servidor web Apache com hosts virtuais em seu servidor CentOS 8. Para uma versão mais detalhada deste tutorial, por favor, consulte Como instalar o Servidor Web Apache no CentOS 8.

Pré-requisitos

Você precisará do seguinte para completar este guia:

Passo 1 — Instalando o Apache

O Apache está disponível dentro dos repositórios de software padrão do CentOS, o que significa que você pode instalá-lo com o gerenciador de pacotes dnf.

Como o usuário sudo não root configurado nos pré-requisitos, instale o pacote Apache:

sudo dnf install httpd

Após confirmar a instalação, o dnf irá instalar o Apache e todas as dependências necessárias.

#apache #centos 8 #passo 4 da

How to install Apache web server on CentOS 8

Introduction

Apache HTTP server is the most used in the world. It offers many powerful features, including dynamically loaded modules, strong media compatibility, and extensive integration with other popular software tools.

Through this guide, you will install an Apache web server with virtual hosts on your CentOS 8 server.

Previous requirements

You will need the following to complete this guide:

Step 1: Install Apache

Apache is available within the default CentOS software repositories, which means you can install it with the package manager dnf.

Since we configured a non-root sudo user in the prerequisites, install the Apache package:

sudo dnf install httpd

Once the installation is confirmed, it will dnfinstall Apache and all the necessary dependencies.

By completing step 4 of the Initial Server Configuration with CentOS 8 guide mentioned in the prerequisites section, you have already installed firewalldon your server to supply requests via HTTP.

If you are also planning to configure Apache to provide content over HTTPS, you may also want to open the port 443by enabling the service https:

sudo firewall-cmd --permanent --add-service=https

Then reload the firewall for these new rules to take effect:

sudo firewall-cmd --reload

Once the firewall is reloaded, you are ready to start the service and check the web server.

Step 2: Check your web server

Once the installation is complete, Apache does not start automatically in CentOS, so you will have to start the Apache process manually:

sudo systemctl start httpd

Verify that the service works with the following command:

sudo systemctl status httpd

You will get a status activewhen the service is running:

Output

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disa>
   Active: active (running) since Thu 2020-04-23 22:25:33 UTC; 11s ago
     Docs: man:httpd.service(8)
 Main PID: 14219 (httpd)
   Status: "Running, listening on: port 80"
    Tasks: 213 (limit: 5059)
   Memory: 24.9M
   CGroup: /system.slice/httpd.service
           ├─14219 /usr/sbin/httpd -DFOREGROUND
           ├─14220 /usr/sbin/httpd -DFOREGROUND
           ├─14221 /usr/sbin/httpd -DFOREGROUND
           ├─14222 /usr/sbin/httpd -DFOREGROUND
           └─14223 /usr/sbin/httpd -DFOREGROUND

...

As this result indicates, the service started successfully. However, the best way to check this is to request an Apache page.

You can access Apache’s default landing page to confirm that the software is working properly using its IP address: If you don’t know your server’s IP address, you can obtain it in several ways from the command line.

Type qto return to the command line, and then type:

hostname -I

This command will display all the network addresses of the host, so you will get some IP addresses separated by spaces. You can test each one in the web browser to determine if they work.

Alternatively, you can use curlto request your IP at icanhazip.com, which will provide you with your public IPv4 address as it appears in another location on the Internet:

curl -4 icanhazip.com

When you have the IP address of your server, enter it in the address bar of your browser:

http://your_server_ip

It will display the default Apache web page in CentOS 8:

Apache default page for CentOS 8

This page indicates that Apache is working properly. It also includes basic information about important Apache files and directory locations.

#centos #apache #centos 8

Arjun  Goodwin

Arjun Goodwin

1594138500

How To Install Apache Solr 8.5 on CentOS/RHEL 8

Apache Solr is an open-source search platform written on Java. Solr provides full-text search, spell suggestions, custom document ordering and ranking, Snippet generation and highlighting. Solr handles a variety of data types out of the box, including JSON, XML, many Office documents, CSV and more. At the time of writing this tutoria, Solr 8.5.2 is the latest version available for installation.

This tutorial will help you to install Apache Solr 8.5 on CentOS/RHEL 8 systems.

Prerequisites

We assume you already have shell access to your CentOS/RHEL 8 system with sudo privilege account. For remote systems, login with SSH client.

Step 1 – Install Java

The Latest version of Apache Solr required Java 8 or greater version to run. Make sure your system fulfills the Java requirements on your system. If not run the following command to install Java.

sudo dnf install java-11-openjdk 

Then check installed Java version:

java -version

openjdk version "11.0.4" 2019-07-16 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.4+11-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.4+11-LTS, mixed mode, sharing)

Step 2 – Install Apache Solr on CentOS 8

Now download the required Solr version from its official site or mirrors. You may also use the below command to download Apache Solr 8.5.2 from its official website. After that extract the installer script.

cd /tmp
wget http://www-eu.apache.org/dist/lucene/solr/8.5.2/solr-8.5.2.tgz
tar xzf solr-8.5.2.tgz solr-8.5.2/bin/install_solr_service.sh --strip-components=2

Then execute the installer script with bash shell followed with downloaded Archive file. The command will be like below:

sudo bash ./install_solr_service.sh solr-8.5.2.tgz

This will create an account named solr on your system and finish the installation process. After that start the service default Solr port 8983.

#linux tutorials #apache #centos 8 #solr

Wilford  Pagac

Wilford Pagac

1596899100

How to Install Security Updates on CentOS 8

Keeping your Linux system up-to-date is a very critical task, especially when it comes to installing security updates. This ensures that your system stays safe, stable, and keeps you on top of the latest security threats.

In this short and precise article, we will explain how to install security system updates on a CentOS 8 Linux system. We will show how to check for system updates (for all installed packages), updates for a specific package, or security updates only. We will also look at how to install updates either for a specific package, for all installed packages, or security updates only.

First, log into your system and open a terminal window, or if it is a remote system, access it via ssh. And before you move any further, take note of your the current kernel version on your system:

# uname -r

Check Current Kernel Version

Check Current Kernel Version

Checking Security Updates for CentOS 8 Server

To check if there are any updates available, issue the following command on the command prompt. This command non-interactively checks whether there are any updates are available for all packages on your system.

# dnf check-update

Check CentOS 8 Updates

Check CentOS 8 Updates

If you want, you can check updates for a specific package, provide the package name as shown.

# dnf check-update cockpit

Check Updates for Package

Check Updates for Package

Checking Security Updates for Installed Software Packages

You can determine if there are security-related updates or notices available, using the following command. It will show a summary of security notices displaying the number of updates in each category. From the screenshot below, there is 1 security update available for us to install on the test system.

# dnf updateinfo

Check Notices for Security Updates

Check Notices for Security Updates

To show the actual number of security packages with updates for the system, run the command that follows. Although there is only 1 security update as indicated in the output of the previous command, the actual number of security packages is 3 because the packages are related to each other:

# dnf updateinfo list sec
OR
# dnf updateinfo list sec | awk '{print $3}'

List Number of Security Updates

#centos #security #centos tips #centos-8