Instalar dependencias
apt install gnupg
apt-get install apt-transport-https sudo wget
Instalar ElasticSearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install elasticsearch
# Install the attachment plugin
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
# Increase the virtual memory map limit
sudo sysctl -w vm.max_map_count=262144
systemctl restart elasticsearch
systemctl enable elasticsearch
nano /etc/elasticsearch/elasticsearch.yml
http.max_content_length: 400mb
indices.query.bool.max_clause_count: 2000
Instalar Zammad
locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
apt-get install apt-transport-https locales sudo wget
locale-gen en_US.UTF-8
echo "LANG=en_US.UTF-8" > /etc/default/locale
wget -qO- https://dl.packager.io/srv/zammad/zammad/key | sudo apt-key add -
sudo wget -O /etc/apt/sources.list.d/zammad.list \
https://dl.packager.io/srv/zammad/zammad/stable/installer/ubuntu/20.04.repo
sudo apt-get update
sudo apt-get install zammad
abrimos el archivo de configuración
/etc/nginx/sites-available/zammad.conf
Aquí es donde podemos modificar el nombre del dominio
server_name 10.20.200.80;
zammad run rails r "Setting.set('es_url', 'http://10.20.200.80:9200')"
zammad run rake searchindex:rebuild
Completamos los datos AC2
Si al ingresar los usuarios están vacíos volver hacer
# Set the Elasticsearch server address
$ zammad run rails r "Setting.set('es_url', 'http://localhost:9200')"
# Build the search index
$ zammad run rake searchindex:rebuild