jitsi-meet Ubuntu16.04 LTS 部署方式

  • PHP二次开发
  • 2018-7-5 13:20
  • PHP二次开发
  • 阅读(598)
  • 评论(3
  • 摘要: 1.修改 apt-get 源sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak更改源:sudo gedit /etc/apt/sources.listdeb https://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiversedeb htt ...
    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.php2.cc.conf /etc/nginx/conf.d/jitsi.php2.cc.conf
    此处jitsi.php2.cc是我自己的域名,需要换成你的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/192.168.1.55.conf:1
    修改一下/etc/nginx/conf.d/jitsi.php2.cc.conf这个文件即可:
    sudo vim /etc/nginx/conf.d/jitsi.php2.cc.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=<Local.IP.Address>
    org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>
    例如:
    org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=192.168.70.61
    org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=124.128.231.151

    打开浏览器,访问地址:https://jitsi.php2.cc

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


    PHP技术交流QQ群:422137578

    除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-2686-1.html

    相关阅读

    发表评论

    最新评论

    引用 easy-essay.org   2018-8-28 18:32
    期待楼主的分享。
    引用 分板机   2018-8-22 17:35
    非常好的分析,谢谢
    引用 贵金属交易专业平台   2018-8-14 15:02
    收藏备用

    查看全部评论(3)

    用户名:  *

    邮 箱:  *

    网 址: 注意加上“http://”哦!