jitsi-meet Ubuntu16.04 LTS 部署方式

1.修改 apt-get 源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

 

更改源:

sudo gedit /etc/apt/sources.list

 

deb https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

##測試版源

deb https://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

# 源碼

deb-src https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse

deb-src https://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

##測試版源

deb-src https://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse

 

2.更新源

sudo apt-get update  

 

3.修改系统放开root用户

进入到/usr/share/lightdm/lightdm.conf.d/目录,使用gedit 50-unity-greeter.conf &命令打开50-unity-greeter.conf 文件,

在打开文件中添加如下信息,来设置登录时可以选择用户登录,如下所示:

user-session=ubuntu

greeter-show-manual-login=true

all-guest=false

 

4.安装ssh服务端

sudo apt-get install openssh-server 

打 开"终端窗口",输入"sudo gedit /etc/ssh/sshd_config"-->回车-->把配置文件中的"PermitRootLogin without-password"加一个"#"号,把它注释掉-->再增加一句"PermitRootLogin yes"-->保存,修改成功。

 

5.安装git支持

apt-get install git

 

6.安装nginx

sudo apt-get install nginx

 

7.添加软件库

sudo vim /etc/apt/sources.list

在文件的最下面加上:

deb https://download.jitsi.org stable/

 

8.添加官方的key

wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -

更新包列表

sudo apt-get update

 

9.安装

sudo apt-get -y install jitsi-meet

 

出现第一个界面时输入本机的ip或者是域名

 

出现第二个界面时,选择第一个,自动生成一个证书

 

10.创建nginx软连接

 ln -s /etc/nginx/sites-available/jitsi.z5s.cn.conf /etc/nginx/conf.d/jitsi.z5s.cn.conf

此处jitsi.z5s.cn是我自己的域名,需要换成你的ip或域名。

 

11.重启nginx

sudo service nginx restart

如果出现如下错误:

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

查一下日志:

vim /var/log/nginx/error.log

如果日志中是这个错误:

[emerg] 14443#14443: "server_names_hash_bucket_size" directive is duplicate in /etc/nginx/sites-enabled/jitsi.z5s.cn.conf:1

修改一下/etc/nginx/conf.d/jitsi.z5s.cn.conf这个文件即可:

sudo vim /etc/nginx/conf.d/jitsi.z5s.cn.conf

将最上面的一行注释掉:

server_names_hash_bucket_size 64;

然后重启nginx服务

 

12.如果是内网在外网访问,需映射端口:

TCP 443 (if running web server and jvb on same machine then forward and TCP 4443) and UDP 10000.

 

并修改文件/etc/jitsi/videobridge/sip-communicator.properties:

添加

org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=

org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=

例如:

org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=192.178.80.21

org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=224.228.231.251

 

打开浏览器,访问地址:https://jitsi.z5s.cn

 

需注意一点,Android端如果采用官方提供的SDK,自己的域名或IP不能使用https访问,否则会提示:无法连接,让检查网络连接。可更改成http的测试。正式使用建议https,不过需要构建自己的SDK。

你可能感兴趣的:(webrtc)