参考:如何在 Ubuntu 20.04 上安装 MySQL
参考:Ubuntu20.04安装Mysql
sudo apt install mysql-server mysql-client
sudo mysql_secure_installation
sudo systemctl status mysql #验证是否运行
sudo mysql
use mysql;mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '密码'; #使用mysql_native_password修改加密规则
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '密码' PASSWORD EXPIRE NEVER; #更新一下用户的密码
mysql> UPDATE user SET host = '%' WHERE user = 'root'; #允许远程访问
#刷新cache中配置 刷新权限
mysql>flush privileges;
mysql>quit;
mysql -uroot -p
sudo snap install oai-cn –channel=edge --devmode
sudo oai-cn.help #验证
sudo vi /etc/hostname #重启生效
sudo oai-cn.hss-init #初始化
oai-cn.hss-conf-get #获取文件位置
sudo vim hss_fd.conf
修改.openair4G.eur为.openair4G.eur
sudo vim hss.conf
sudo oai-cn.hss-init #初始化
官方文档:
YouTube 视频:How to setup Mosaic5G OAI CN
sudo apt update
sudo apt install snapd
sudo snap install flexran
sudo snap install ll-mec
sudo snap install oai-cn
sudo snap install oai-cn --candidate
sudo snap install oai-ue
sudo snap install oai-sim