웹사이트 검색

Debian 11에 Chatwoot 메시징 플랫폼을 설치하는 방법


이 페이지에서

  1. 전제 조건
  2. Debian 11에 Chatwoot 설치
  3. Chatwoot 웹 인터페이스 액세스
  4. 결론

Chatwoot은 무료 오픈 소스 실시간 메시징 플랫폼입니다. 귀하의 웹사이트에 간단하고 실시간 채팅을 제공하고 다른 앱과 통합합니다. 비즈니스가 소셜 미디어 채널을 통해 고객에게 우수한 고객 지원을 제공하는 데 도움이 됩니다. Facebook, WhatsApp 및 Twitter를 포함한 소셜 미디어 앱과 쉽게 통합할 수 있습니다. Intercom, Zendesk 등과 같은 다른 상용 소프트웨어에 대한 매우 훌륭한 대체 솔루션입니다.

이 튜토리얼에서는 Debian 11에 Chatwoot을 설치하는 방법을 보여줍니다.

전제 조건

  • Debian 11을 실행하는 서버.\n
  • 서버 IP를 가리키는 유효한 도메인 이름입니다.\n
  • 루트 암호는 서버에서 구성됩니다.\n

Debian 11에 Chatwoot 설치

시작하기 전에 Git 저장소에서 Chatwoot 설치 스크립트를 다운로드해야 합니다.

먼저 다음 명령을 사용하여 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는 설치 중에 Lets Encrypt SSL을 사용하여 Nginx를 설치 및 구성합니다. 다음 명령을 사용하여 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 웹 인터페이스에 액세스

이제 웹 브라우저를 열고 URL http://chatwoot.linuxbuz.com을 사용하여 Chatwoot 웹 인터페이스에 액세스하십시오. 다음 페이지로 리디렉션됩니다.

이름, 이메일, 회사 이름, 비밀번호를 입력하고 설정 완료 버튼을 클릭합니다. Chatwoot 로그인 페이지가 표시됩니다.

이메일, 비밀번호를 입력하고 로그인 버튼을 클릭합니다. 다음 페이지에 Chatwoot 대시보드가 표시됩니다.

받은편지함을 클릭합니다. 다음 페이지가 표시됩니다.

여기에서 Chatwoot과 통합하려는 채널을 선택할 수 있습니다.

결론

축하합니다! Debian 11에 Chatwoot을 성공적으로 설치했습니다. 이제 조직에서 Chatwoot를 호스팅하고 이를 사용하여 고객 지원을 제공할 수 있습니다. 궁금한 점이 있으면 언제든지 문의해 주세요.