Commit 3695f3c9 authored by yangjian's avatar yangjian

Update readme.md

parent 777288f8
# OpenXG Core Network Installation Instructions
> ## docker 部署
1. 下载源码
```shell
git clone http://git.opensource5g.org/openxg/openxg-5gcs-release.git
```
2. 安装docker、docker-compose
```shell
cd openxg-5gcs-release/scripts
./install.sh -I
```
3. 创建docker网桥
```shell
docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg
```
4. 添加静态路由
在基站所在主机中执行以下命令:
```shell
route add -net 172.11.200.0 netmask 255.255.255.0 gw <核心网所在主机的IP>
```
5. 启动数据库
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-mysql.yml up -d
```
> ## 运行
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml up -d #构建并启动容器
```
> ## 关闭
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml down #关闭并删除容器
```
> ## 日志
```shell
cd openxg-5gcs-release/docker
docker-compose -f docker-3-network-element.yml logs -f amf #查看amf日志
docker-compose -f docker-3-network-element.yml logs -f smf #查看smf日志
docker-compose -f docker-3-network-element.yml logs -f spgwu #查看spgwu日志
```
> ## 网元配置文件
# OpenXG Core Network Installation Instructions
> ## docker 部署
1. 下载源码
```shell
git clone http://git.opensource5g.org/openxg/openxg-5gcs-release.git
```
2. 安装docker、docker-compose
```shell
cd openxg-5gcs-release/scripts
./install.sh -I
```
3. 创建docker网桥
```shell
docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg
```
4. 添加静态路由
在基站所在主机中执行以下命令:
```shell
route add -net 172.11.200.0 netmask 255.255.255.0 gw <核心网所在主机的IP>
```
5. 启动数据库
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-mysql.yml up -d
```
> ## 运行
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml up -d #构建并启动容器
```
> ## 关闭
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml down #关闭并删除容器
```
> ## 日志
```shell
cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml logs -f amf #查看amf日志
docker-compose -f docker-3-network-element.yml logs -f smf #查看smf日志
docker-compose -f docker-3-network-element.yml logs -f spgwu #查看spgwu日志
```
> ## 网元配置文件
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment