编译

安装nodejs

sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL <https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key> | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] <https://deb.nodesource.com/node_$NODE_MAJOR.x> nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
sudo apt-get install nodejs -y

安装jitsi

先根据系统版本添加 Prosody 仓库

Ubuntu 18.04 and 20.04

echo deb <http://packages.prosody.im/debian> $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list wget <https://prosody.im/files/prosody-debian-packages.key> -O- | sudo apt-key add - sudo apt install lua5.2

Ubuntu 22.04

sudo curl -sL <https://prosody.im/files/prosody-debian-packages.key> -o /etc/apt/keyrings/prosody-debian-packages.key echo "deb [signed-by=/etc/apt/keyrings/prosody-debian-packages.key] <http://packages.prosody.im/debian> $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/prosody-debian-packages.list sudo apt install lua5.2

添加完成后重启系统,然后开始使用我们自己编写的脚本执行安装过程

image.png

这部分内容额外再讲,先跳过这部分,这里只讲怎么安装,进入jitsi目录后,执行脚本

sh ./jitsi

选择重新安装,重新安装会自动检测是否已经安装jitsi,安装过程会自动检测本机ip,只需回车就行,如果需要改ip,那输入自己需要修改的ip,然后等待安装完成即可,安装完成后可浏览器打开下面链接测试是否正常

<https://ip>

运行编译项目

编译过程会比较慢,需要耐心等待,另外需要给终端上代理,不然容易出现超时错误

nginx配置修改