Commit 3695f3c9 authored by yangjian's avatar yangjian

Update readme.md

parent 777288f8
# OpenXG Core Network Installation Instructions # OpenXG Core Network Installation Instructions
> ## docker 部署 > ## docker 部署
1. 下载源码 1. 下载源码
```shell ```shell
git clone http://git.opensource5g.org/openxg/openxg-5gcs-release.git git clone http://git.opensource5g.org/openxg/openxg-5gcs-release.git
``` ```
2. 安装docker、docker-compose 2. 安装docker、docker-compose
```shell ```shell
cd openxg-5gcs-release/scripts cd openxg-5gcs-release/scripts
./install.sh -I ./install.sh -I
``` ```
3. 创建docker网桥 3. 创建docker网桥
```shell ```shell
docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg docker network create docker-openxg --subnet=172.11.200.0/24 -o com.docker.network.bridge.name=docker-openxg
``` ```
4. 添加静态路由 4. 添加静态路由
在基站所在主机中执行以下命令: 在基站所在主机中执行以下命令:
```shell ```shell
route add -net 172.11.200.0 netmask 255.255.255.0 gw <核心网所在主机的IP> route add -net 172.11.200.0 netmask 255.255.255.0 gw <核心网所在主机的IP>
``` ```
5. 启动数据库 5. 启动数据库
```shell ```shell
cd openxg-5gcs-release/docker-compose cd openxg-5gcs-release/docker-compose
docker-compose -f docker-mysql.yml up -d docker-compose -f docker-mysql.yml up -d
``` ```
> ## 运行 > ## 运行
```shell ```shell
cd openxg-5gcs-release/docker-compose cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml up -d #构建并启动容器 docker-compose -f docker-3-network-element.yml up -d #构建并启动容器
``` ```
> ## 关闭 > ## 关闭
```shell ```shell
cd openxg-5gcs-release/docker-compose cd openxg-5gcs-release/docker-compose
docker-compose -f docker-3-network-element.yml down #关闭并删除容器 docker-compose -f docker-3-network-element.yml down #关闭并删除容器
``` ```
> ## 日志 > ## 日志
```shell ```shell
cd openxg-5gcs-release/docker 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 amf #查看amf日志
docker-compose -f docker-3-network-element.yml logs -f smf #查看smf日志 docker-compose -f docker-3-network-element.yml logs -f smf #查看smf日志
docker-compose -f docker-3-network-element.yml logs -f spgwu #查看spgwu日志 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