jitsi-meet Ubuntu16.04 LTS 部署方式

  • PHP二次開發
  • 2018-7-5 13:20
  • PHP二次開發
  • 閱讀(1883)
  • 評論(4
  • 摘要: 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.fujvln.live/article-2686-1.html

    相關閱讀

    發表評論

    最新評論

    引用 網絡兼職   2019-4-13 09:03
    寫得真好,頂一個
    引用 easy-essay.org   2018-8-28 18:32
    期待樓主的分享。
    引用 分板機   2018-8-22 17:35
    非常好的分析,謝謝
    引用 貴金屬交易專業平臺   2018-8-14 15:02
    收藏備用

    查看全部評論(4)

    用戶名:  *

    郵 箱:  *

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