Поиск по сайту:

Как установить платформу обмена сообщениями Chatwoot на Debian 11


На этой странице

  1. Предпосылки
  2. Установите Chatwoot в Debian 11
  3. Доступ к веб-интерфейсу Chatwoot
  4. Заключение

Chatwoot — это бесплатная платформа для обмена сообщениями в режиме реального времени с открытым исходным кодом. Он обеспечивает простой и живой чат для вашего веб-сайта и интегрирует его с другими приложениями. Это помогает вашим предприятиям оказывать качественную поддержку своим клиентам через каналы социальных сетей. Его можно легко интегрировать с приложениями социальных сетей, включая Facebook, WhatsApp и Twitter. Это очень хорошая альтернатива другому коммерческому программному обеспечению, такому как Intercom, Zendesk и т. д.

В этом руководстве я покажу вам, как установить Chatwoot на Debian 11.

Предпосылки

  • Сервер под управлением Debian 11.
  • Действительное доменное имя, указанное с IP-адресом вашего сервера.
  • На сервере настроен пароль root.

Установите Chatwoot на Debian 11

Перед началом вам нужно будет скачать скрипт установки Chatwoot из репозитория Git.

Сначала установите команду git с помощью следующей команды:

apt-get install git -y

Затем загрузите Chatwoot с помощью следующей команды:

git clone https://github.com/chatwoot/chatwoot.git

Затем измените каталог на загруженный каталог и установите Chatwoot с помощью следующей команды:

cd chatwoot/deployment/
bash setup_20.04.sh -O setup.sh

Вам будет предложено определить свой домен и настроить его с помощью SSL, как показано ниже:

Would you like to configure a domain and SSL for Chatwoot?(yes or no): yes
Enter your sub-domain to be used for Chatwoot (chatwoot.domain.com for example) : chatwoot.linuxbuz.com

This script will try to generate SSL certificates via LetsEncrypt and serve chatwoot at
https://chatwoot.linuxbuz.com. Proceed further once you have pointed your DNS to the IP of the instance.

Do you wish to proceed? (yes or no): yes
Would you like to install postgres and redis?(Answer no if you plan to use external services): yes


Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Requesting a certificate for chatwoot.linuxbuz.com
Performing the following challenges:
http-01 challenge for chatwoot.linuxbuz.com
Waiting for verification...
Cleaning up challenges
Subscribe to the EFF mailing list (email: ).

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/chatwoot.linuxbuz.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/chatwoot.linuxbuz.com/privkey.pem
   Your certificate will expire on 2022-06-04. To obtain a new or
   tweaked version of this certificate in the future, simply run
   certbot again. To non-interactively renew *all* of your
   certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.


***************************************************************************
Woot! Woot!! Chatwoot server installation is complete
The server will be accessible at https://chatwoot.linuxbuz.com
***************************************************************************

После установки Chatwoot вы можете проверить статус Chatwoot с помощью следующей команды:

systemctl status chatwoot.target

Вы получите следующий вывод:

? chatwoot.target
     Loaded: loaded (/etc/systemd/system/chatwoot.target; enabled; vendor preset: enabled)
     Active: active since Sun 2022-03-06 06:07:21 UTC; 1min 36s ago

Mar 06 06:07:21 debian11 systemd[1]: Reached target chatwoot.target.

По умолчанию Chatwoot прослушивает порт 3000. Вы можете проверить это с помощью следующей команды:

ss -antpl | grep 3000

Вы получите следующий вывод:

LISTEN 0      1024         0.0.0.0:3000      0.0.0.0:*    users:(("ruby",pid=38128,fd=8))  

Chatwoot устанавливает и настраивает Nginx с Lets Encrypt SSL во время установки. Вы можете проверить статус Nginx с помощью следующей команды:

systemctl status nginx

Вы получите следующий вывод:

? nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-03-06 06:09:48 UTC; 10s ago
       Docs: man:nginx(8)
    Process: 38376 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
    Process: 38377 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
   Main PID: 38378 (nginx)
      Tasks: 3 (limit: 4679)
     Memory: 3.5M
        CPU: 61ms
     CGroup: /system.slice/nginx.service
             ??38378 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
             ??38379 nginx: worker process
             ??38380 nginx: worker process

Mar 06 06:09:48 debian11 systemd[1]: Starting A high performance web server and a reverse proxy server...
Mar 06 06:09:48 debian11 systemd[1]: Started A high performance web server and a reverse proxy server.

Доступ к веб-интерфейсу Chatwoot

Теперь откройте веб-браузер и войдите в веб-интерфейс Chatwoot, используя URL-адрес http://chatwoot.linuxbuz.com. Вы будете перенаправлены на следующую страницу:

Укажите свое имя, адрес электронной почты, название компании, пароль и нажмите кнопку «Завершить настройку». Вы должны увидеть страницу входа в Chatwoot:

Укажите свой адрес электронной почты, пароль и нажмите кнопку «Войти». Вы должны увидеть панель инструментов Chatwoot на следующей странице:

Нажмите на Входящие. Вы должны увидеть следующую страницу:

Отсюда вы можете выбрать канал, который хотите интегрировать с Chatwoot.

Заключение

Поздравляем! вы успешно установили Chatwoot в Debian 11. Теперь вы можете разместить Chatwoot в своей организации и использовать его для поддержки клиентов. Не стесняйтесь спрашивать меня, если у вас есть какие-либо вопросы.