文章目录
Ubutu系统安装
官方推荐用Ubuntu,网上很多教程也都是基于Ubuntu的,所以选择这个系统。
其中OpenSuse这个系统验证了,无法安装。
启用root账户
安装后默认没有启用root,执行命令时加上sudo,即可,这样每次输入密码很麻烦,如何开启root,设置密码,解决办法如下:
ubuntu安装好后,root初始密码(默认密码)不知道,需要设置。
1、先用安装时候的用户登录进入系统
2、输入:sudo passwd 按回车
3、输入新密码,重复输入密码,最后提示passwd:password updated sucessfully
此时已完成root密码的设置
4、输入:su root
切换Ubuntu源
默认Ubuntu源在国外访问速度慢,可以切换未国内源
cp /etc/apt/sources.list /etc/apt/sources.list-bak 备份原始
sudo vim /etc/apt/sources.list
清华源
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
网易源
deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
设置DNS
我安装后DHCP获取的IP,发现无法访问外网,排查后原因是没有获取DNS,所以手动添加一个。
首先修改 /etc/systemd/resolved.conf 文件,在其中添加dns信息,例如:
DNS=223.5.5.5 114.114.114.114 然后退出保存。
然后以root身份在ubuntu终端中依次执行如下命令:
systemctl restart systemd-resolved
systemctl enable systemd-resolvedmv /etc/resolv.conf /etc/resolv.conf.bak ln -s
/run/systemd/resolve/resolv.conf /etc/
主机名和域名配置
为系统设置主机名和域名。 您可以通过运行以下命令来执行此操作:
sudo hostnamectl set-hostname vmh (你的主机名)
公网IP vmh.linuxidc.com (你申请的域名,测试环境可以自定义,使用hosts解析)
打开/etc/hosts文件
10.1.XX.XX vmh.linuxidc.com
安装open JDK
sudo apt update
sudo apt install openjdk-17-jdk
对于JRE,运行以下命令进行安装
sudo apt install openjdk-17-jre
安装后查看版本
root@node1:/home/vmh# java -version
openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment (build 17.0.8.1+1-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 17.0.8.1+1-Ubuntu-0ubuntu122.04, mixed mode, sharing)
安装Nginx
sudo apt-get install nginx -y
安装Nginx后,可以使用以下命令检查Nginx服务:
sudo systemctl status nginx
重新启动nginx:
/etc/init.d/nginx stop
/etc/init.d/nginx start
安装 Jitsi Meet
默认情况下,Jitsi Meet在Ubuntu 默认存储库中不可用。 因此,您需要为此添加存储库。
您可以通过运行以下命令来执行此操作:
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
sudo sh -c "echo 'deb https://download.jitsi.org stable/' > /etc/apt/sources.list.d/jitsi.list"
使用以下命令更新存储库并安装Jitsi Meet:
sudo apt-get update -y
sudo apt-get install jitsi-meet -y
一定要注意,不能用root操作!!!
一定要注意,不能用root操作!!!
一定要注意,不能用root操作!!!
否则,就会出现下图的错误,无法解决!!!
选项1:系统自动创建相关证书(推荐)
选项2:使用自己申请的SSL证书(你若有,则推荐)
选项3:创建一个独立的证书(第一次用这个,失败了)
安装过程会从jitsi官网下载各种依赖包,大约需要30~40分钟,根据网速而定。
jitsi本地测试使用
windows需要修改hosts文件实现本地域名解析,你若有正式的SSL则不用。
Jitsi本地服务器IP 你安装时使用的域名:如
101.12.62.78 jitsi.vmh.com
浏览器输入 https://vmh.linuxidc.com/ host文件中设置的域名
找2太电脑利用浏览器即可视频。
一个奇怪的BUG
但是遇到一个很奇葩的BUG,就是邀请其他人参会,则会议会被中断,具体原因还没找到,有人知道的话,感谢告知!!!
Jist服务管理
sudo systemctl restart prosody
sudo systemctl restart jicofo
sudo systemctl restart jitsi-videobridge2