installation
CentOS
Verified on CentOS 7.
Build
This section explains how to build NextEPC from the source codes.
Install MongoDB
MongoDB is used for the database of NextEPC. Please refer Manual for the installation:
sudo sh -c 'cat << EOF > /etc/yum.repos.d/mongodb-org-3.4.repo [mongodb-org-3.4] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/3.4/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc EOF' sudo yum -y install mongodb-org sudo systemctl start mongod (if '/usr/bin/mongod' is not running)
Install MongoDB C Driver
MongoDB C Driver is a MongoDB client library. Please install the latest libmongoc following the instructions here: http://www.mongoc.org/libmongoc/current/installing.html.
Define a TUN device
Create pgwtun:
sudo yum -y install iproute
sudo ip tuntap add name pgwtun mode tun
sudo ip addr add 45.45.0.1/16 dev pgwtun
sudo ip addr add cafe::1/64 dev pgwtun
sudo ip link set pgwtun up
Install dependencies
Install the following dependencies:
sudo yum -y install git flex bison autoconf libtool \ lksctp-tools-devel libidn-devel gnutls-devel libgcrypt-devel \ openssl-devel cyrus-sasl-devel libyaml-devel
Build
Download and compile source codes, then will be installed to `pwd`/install/:
git clone https://github.com/nextepc/nextepc cd nextepc autoreconf -iv ./configure --prefix=`pwd`/install make -j `nproc` make install
Run
nextepc-epcd is the daemon lauching all necessary daemons automatically:
nextepc-epcd
Install Node.js
Node.js is required to install NextEPC WebUI:
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash - sudo yum -y install nodejs
Install the dependencies of WebUI
Goto theTOP/webui
of NextEPC source. Install WebUI dependencies:
cd webui npm install
Run WebUI
Visit http://localhost:3000, after run the command:
npm run dev
Next step: Configuration