Cum să instalați platforma de mesagerie Chatwoot pe Debian 11

 

 

Urmați acest ghid pas cu pas pentru a instala platforma Chatwoot pe serverul dumneavoastră server Debian 11.

Pasul 1: Actualizați sistemul

Înainte de a instala orice software, este important să actualizați pachetele sistemului:

sudo apt update && sudo apt upgrade -y

Pasul 2: Instalați dependențele

Chatwoot necesită mai multe dependențe. Folosiți următoarele comenzi pentru a le instala:

sudo apt install -y git curl apt-transport-https gnupg2 redis-server postgresql postgresql-contrib libpq-dev build-essential nodejs

Pasul 3: Instalați Yarn

Yarn este necesar pentru a gestiona pachetele JavaScript. Instalați-l folosind următoarele comenzi:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install yarn

Pasul 4: Instalați Chatwoot

Clonați repository-ul Chatwoot pe serverul dumneavoastră server:

git clone https://github.com/chatwoot/chatwoot.git --branch stable

Mergeți în directorul Chatwoot și instalați gem-urile și pachetele necesare:

cd chatwoot
bundle install
yarn install

Pasul 5: Configurați baza de date

Configurați baza de date PostgreSQL:

sudo -u postgres psql
CREATE USER chatwoot WITH PASSWORD 'password';
ALTER ROLE chatwoot SUPERUSER;
CREATE DATABASE chatwoot_production OWNER chatwoot;
\q

Acum, rulați migrațiile bazei de date:

RAILS_ENV=production bundle exec rails db:setup

Pasul 6: Precompilați resursele

Precompilați resursele necesare pentru Chatwoot:

RAILS_ENV=production bundle exec rails assets:precompile

Pasul 7: Porniți Chatwoot

Porniți aplicația Chatwoot cu următoarele comenzi:

RAILS_ENV=production bundle exec rails s

Pasul 8: Configurați Nginx ca proxy invers

Pentru a oferi Chatwoot printr-un domeniu, configurați Nginx ca proxy invers. Instalați Nginx:

sudo apt install nginx

Creează un fișier de configurare Nginx pentru Chatwoot:

sudo nano /etc/nginx/sites-available/chatwoot

Adăugați următorul conținut:

server {
    listen 80;
    server_name domeniul_tău.com;

    location / {
        proxy_pass http://localhost:3000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Activați configurația și reporniți Nginx:

sudo ln -s /etc/nginx/sites-available/chatwoot /etc/nginx/sites-enabled/
sudo systemctl restart nginx

Concluzie

Ați instalat cu succes Chatwoot pe serverul dumneavoastră server Debian 11. Acum puteți accesa platforma prin domeniul dumneavoastră și o puteți folosi pentru comunicarea cu clienții.



Windows VPS

Windows VPS UK

Windows VPS

VPS Windows

Serwer VPS Windows

VPS Windows Deutschland

Windows VPS Hosting

VPS Windows España

Windows VPS Nederland

VPS Windows Italia

VPS Windows Portugal

VPS Windows Россия

VPS Windows Украина

VPS Windows 日本

VPS Windows Sverige

VPS Windows Norge

VPS Windows عربى

VPS Windows Türkiye

Remote Desktop Services (RDS)

RDS CAL (Client Access License)

Remote Desktop VPS

Keywords: windows vps uk, windows vps, uk windows vps, windows vps hosting uk, vps windows server, uk vps windows, vps windows, servidor vps windows, vps uk windows, vps with windows, virtual private server windows, windows virtual private server, windows vps server uk, vps for windows, servidores vps windows, vps windows uk, windows vps hosting, vps windows hosting, windows vps server, windows virtual private servers, vps on windows, vps windows servers, cheap windows vps uk, windowsvps, windows desktop vps, buy vps windows, windows server vps, windows 10 vps uk, rds services, rds cal, remote desktop services, remote desktop hosting

#windowsvps #vpshosting #ukvps #virtualserver #windowsvpsuk #vpsserver #hostingvps #cloudvps #windowsvpshosting #cheapvps #vpswithwindows #windowsserver #servervps #vpssolutions #vpswindows #rdscal #remotedesktop #remotedesktopvps #rds #windowsrds

vps windows
  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?

Articole similare

Boost Your Ubuntu System's Performance with a Swap File: A Step-by-Step Guide

What is a Swap File? A swap file in Ubuntu serves as dedicated virtual memory on your hard...

How to Migrate ISPConfig 2, ISPConfig 3.x, Confixx, CPanel or Plesk to ISPConfig 3.2 (single server)

Introduction Migration from other control panels like ISPConfig 2, ISPConfig 3.x, Confixx,...

How to Install and Configure Zabbix Server and Client on Rocky Linux 9

Introduction Zabbix is an open-source monitoring solution that provides real-time...

How to Install CockroachDB Cluster on Debian 12

Introduction CockroachDB is a distributed SQL database built to handle large-scale,...

How to Install Joomla with Apache and Let's Encrypt SSL on AlmaLinux 9

Introduction Joomla is a popular open-source content management system (CMS) used to build...