Como instalar Magento 2 no Ubuntu 20 da Amazon AWS

apt-get update 
apt-get upgrade 
systemctl stop apache2
systemctl disable apache2
apt-get install nginx
apt-get install software-properties-common

Install Elasticsearch

cd /opt
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.1-amd64.deb
dpkg -i elasticsearch-7.6.1-amd64.deb
systemctl start elasticsearch
systemctl status elasticsearch
curl -XGET 'http://localhost:9200'

Arrumando o erro do Elasticsearch

nano /etc/elasticsearch/elasticsearch.yml

# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 127.0.0.1
#
# Set a custom port for HTTP:
#
http.port: 9200

nano /etc/elasticsearch/jvm.options

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms128m
-Xmx128m

Instalando o PHP 7.4

Instalando o Magento2 Gaudit

Configurando Nginx

Validar instalações das dependências

Last updated