Commit 715d08f3 authored by chen2022's avatar chen2022

配置修改

parent 61f3caf8
...@@ -139,6 +139,13 @@ function main() ...@@ -139,6 +139,13 @@ function main()
make make
fi fi
if [ ! -d /etc/5gc/config ]; then
$SUDO mkdir -p /etc/5gc/config
fi
$SUDO cp -v $OPENXGUDR_DIR/etc/udr.conf /etc/5gc/config/
$SUDO cp -v $OPENXGUDR_DIR/etc/udr_docker.conf /etc/5gc/config/
$SUDO cp -upv $OPENXGUDR_DIR/build/UDR/udr $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/udr && echo_success "UDR installed" $SUDO cp -upv $OPENXGUDR_DIR/build/UDR/udr $INSTALL_DIR && $SUDO chmod 755 $INSTALL_DIR/udr && echo_success "UDR installed"
return 0 return 0
......
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file ## udr configuration file
UDR = UDR =
{ {
INSTANCE_ID = @INSTANCE@; # 0 is the default INSTANCE_ID = 10; # 0 is the default
PID_DIRECTORY = "@PID_DIRECTORY@"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
API_VERSION = "v2"; # v2 is the default API_VERSION = "v2"; # v2 is the default
INTERFACES: INTERFACES:
{ {
# UDR binded interface for Nudr interface # UDR binded interface for Nudr interface
SBI: SBI:
{ {
INTERFACE_NAME = "@UDR_INTERFACE_NAME_FOR_SBI@"; # YOUR NETWORK CONFIG HERE INTERFACE_NAME = "ens32"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read"; IPV4_ADDRESS = "read";
PORT = 8081; # YOUR NETWORK CONFIG HERE PORT = 8081; # YOUR NETWORK CONFIG HERE
}; };
}; };
MYSQL: MYSQL:
{ {
## MySQL mandatory options ## MySQL mandatory options
MYSQL_SERVER = "@MYSQL_SERVER@"; # MySQL Server address MYSQL_SERVER = "127.0.0.1"; # MySQL Server address
MYSQL_USER = "@MYSQL_USER@"; # Database server login MYSQL_USER = "root"; # Database server login
MYSQL_PASS = "@MYSQL_PASS@"; # Database server password MYSQL_PASS = "root"; # Database server password
MYSQL_DB = "@MYSQL_DB@"; # Your database name MYSQL_DB = "Witcomm-UDR-DB"; # Your database name
# MYSQL_PORT = "@MYSQL_PORT@"; # MySQL Server port, 0 is the default MYSQL_PORT = 3306 # MySQL Server port
}; };
}; };
......
################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
UDR =
{
INSTANCE_ID = @INSTANCE@; # 0 is the default
PID_DIRECTORY = "@PID_DIRECTORY@"; # /var/run is the default
API_VERSION = "v2"; # v2 is the default
INTERFACES:
{
# UDR binded interface for Nudr interface
SBI:
{
INTERFACE_NAME = "@UDR_INTERFACE_NAME_FOR_SBI@"; # YOUR NETWORK CONFIG HERE
IPV4_ADDRESS = "read";
PORT = 8081; # YOUR NETWORK CONFIG HERE
};
};
MYSQL:
{
## MySQL mandatory options
MYSQL_SERVER = "@MYSQL_SERVER@"; # MySQL Server address
MYSQL_USER = "@MYSQL_USER@"; # Database server login
MYSQL_PASS = "@MYSQL_PASS@"; # Database server password
MYSQL_DB = "@MYSQL_DB@"; # Your database name
# MYSQL_PORT = "@MYSQL_PORT@"; # MySQL Server port, 0 is the default
};
};
## udr configuration file ################################################################################
# Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The OpenAirInterface Software Alliance licenses this file to You under
# the OAI Public License, Version 1.1 (the "License"); you may not use this
# file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.openairinterface.org/?page_id=698
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#-------------------------------------------------------------------------------
# For more information about the OpenAirInterface (OAI) Software Alliance:
# contact@openairinterface.org
################################################################################
# ! file
# brief
# author Jian Yang
# date 2020
# email: contact@openairinterface.org
################################################################################
## udr configuration file
# 123
UDR = UDR =
{ {
INSTANCE_ID = 10; # 0 is the default INSTANCE_ID = 10; # 0 is the default
PID_DIRECTORY = "/var/run"; # /var/run is the default PID_DIRECTORY = "/var/run"; # /var/run is the default
API_VERSION = "v2"; # v2 is the default
API_VERSION = "v2"; # v2 is the default
INTERFACES: INTERFACES:
{ {
# UDR binded interface for Nudr interface # UDR binded interface for Nudr interface
...@@ -21,8 +48,8 @@ UDR = ...@@ -21,8 +48,8 @@ UDR =
MYSQL: MYSQL:
{ {
## MySQL mandatory options ## MySQL mandatory options
MYSQL_SERVER = "172.16.200.10"; # MySQL Server address MYSQL_SERVER = "172.11.200.10"; # MySQL Server address
MYSQL_USER = "yunshou"; # Database server login MYSQL_USER = "root"; # Database server login
MYSQL_PASS = "123456"; # Database server password MYSQL_PASS = "123456"; # Database server password
MYSQL_DB = "Witcomm-UDR-DB"; # Your database name MYSQL_DB = "Witcomm-UDR-DB"; # Your database name
# MYSQL_PORT = 3306 # MySQL Server port # MYSQL_PORT = 3306 # MySQL Server port
......
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