ないきまさとの部屋

ないきまさとの部屋のブログ

Web会議システム構築(第2回 Linux(CentOS)へのJitsi Meetのインストール)

2020-05-09 Masato Nike

Linux(CentOS)にWeb会議システム『Jitsi Meet』をインストールします。
前提として、以下を実施しているものとします。

第1回 Linux(CentOS)サーバの構築

1. SSHの設定

(1) rootでログインし、以下のコマンドを入力してください。

firewall-cmd --add-service ssh --permanent

(2) rootでのログインを拒否するように設定します。

【コマンド】

vim /etc/ssh/sshd_config

【編集内容】

PermitRootLogin no

(3) 以下のコマンドを入力してください。

systemctl restart sshd
systemctl status sshd

以上で、SSHの設定は終了です。

2. Dockerのインストール

(1) rootでログインし、以下のコマンドを入力してください。

dnf -y remove podman
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf -y install --nobest docker-ce docker-ce-cli
dnf -y update https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm
dnf -y update docker-ce
systemctl enable docker
systemctl start docker
docker version
dnf upgrade
firewall-cmd --add-service http --permanent
firewall-cmd --add-service https --permanent
firewall-cmd --add-port 10000-20000/udp --permanent
firewall-cmd --add-masquerade --permanent
firewall-cmd --reload

3. Docker Composeのインストール

(1) rootでログインし、以下のコマンドを入力してください。

dnf -y install jq
vim docker-compose-install.sh

【編集内容】

compose_version=$(curl https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
output='/usr/local/bin/docker-compose'
curl -L https://github.com/docker/compose/releases/download/$compose_version/docker-compose-$(uname -s)-$(uname -m) -o $output
chmod +x $output
$output --version

(2) 以下のコマンドを入力してください。

chmod +x docker-compose-install.sh
./docker-compose-install.sh

4. Jitsi Meetのインストール

(1) rootでログインし、以下のコマンドを入力してください。

git clone https://github.com/jitsi/docker-jitsi-meet && cd docker-jitsi-meet
cp env.example .env
vim .env

【編集内容】

CONFIG=/root/.jitsi-meet-cfg

HTTP_PORT=80

HTTPS_PORT=443

TZ=Asia/Tokyo

PUBLIC_URL=https://hostname.yourdomain

ENABLE_LETSENCRYPT=0

(2) 以下のコマンドを入力してください。

./gen-passwords.sh
mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb}
docker-compose pull
docker-compose up -d
docker-compose down

以上で、『Jitsi Meet』のインストールは終了ですが、まだ起動はできません。
httpsでアクセスするため、SSLサーバ証明書の設定が必要になります。
SSLサーバ証明書の設定は以下に続きます。

第3回 オレオレサーバ証明書の発行~Jitsi Meetの設定

comments powered by Disqus