https://blog.csdn.net/weixin_42353331/article/details/88679899
http://docs.genieacs.com/en/latest/installation-guide.html
先决条件
Node.js
GenieACS需要Node.js 10.x及更高版本。
//参考:ubuntu18.04安装最新版nodejs :https://www.jianshu.com/p/e540dc10e38a
cd /usr/local
sudo wget https://npm.taobao.org/mirrors/node/v14.9.0/node-v14.9.0-linux-x64.tar.xz //下载版本
sudo tar xvf node-v14.9.0-linux-x64.tar.xz //解压
root@JD:/usr/local/src# mv node-v14.9.0-linux-x64 node //node-v14.9.0-linux-x64重命名为node
root@JD:/usr/local/src# mv ./node /usr/local/ // node移动到/usr/local/
root@JD:/usr/local/src# ln -s /usr/local/node/bin/node /usr/bin/ //把node改为全局变量
root@JD:/usr/local/src# node -v
v14.9.0
root@JD:/usr/local/src# ln -s /usr/local/node/bin/npm /usr/bin/ //把npm改为全局变量
root@JD:/home# npm -v
6.14.8
ubuntu18.04安装mongoDB 4.2:
https://blog.csdn.net/wanghao3616/article/details/106493309?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.edu_weight
//在终端输入GPK码
# wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
//添加mongoDB源
# echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
# sudo apt update
//Install MongoDB Server
# sudo apt install mongodb-org=4.2.1 mongodb-org-server=4.2.1 mongodb-org-shell=4.2.1 mongodb-org-mongos=4.2.1 mongodb-org-tools=4.2.1
配置启动
# sudo vim /etc/systemd/system/mongodb.service
// 填入以下内容
# [Unit]
# Description=High-performance, schema-free document-oriented database
# After=network.target
#
# [Service]
# User=mongodb
# ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
#
# [Install]
# WantedBy=multi-user.target
Esc
:wq //保存退出
root@JD:/etc/apt/sources.list.d# cd / //回到根目录
root@JD:/# mkdir data //新建data文件夹
root@JD:/# cd data
root@JD:/data# mkdir db //新建data/db文件夹
root@JD:/home/winnie# mongod & //启动mongodb 数据库 &表示后台运行
root@JD:/data#
root@JD:/data# mongo //ok
=================================================================================
参考:https://blog.csdn.net/wand_er/article/details/108369453
安装GenieACS
root@JD:/home# cd /opt //进入opt目录
root@JD:/opt# git clone https://github.com/genieacs/genieacs //github地址克隆此仓库或下载源归档文件,然后将cd插入源目录并安装所需的依赖项:
root@JD:/opt# ls
genieacs
root@JD:/opt# cd genieacs/
root@JD:/opt/genieacs# sudo npm install -g --unsafe-perm genieacs
root@JD:/opt/genieacs# npm install
root@JD:/opt/genieacs# npm run build //生成“dist”目录
root@JD:/opt/genieacs# cd dist/bin/
root@JD:/opt/genieacs/dist/bin# ls
genieacs-cwmp genieacs-ext genieacs-fs genieacs-nbi genieacs-ui
root@JD:/opt/genieacs/dist/bin# ./genieacs-ui --ui-jwt-secret secret & //参数–ui-jwt-secret提供用于签署浏览器cookie的密钥。 &表示后台运行
root@JD:/opt/genieacs/dist/bin# ./genieacs-cwmp //genieacs-cwmp这是CPE将与之通信的服务。默认情况下,它在端口7547上侦听。相应地在设备中配置ACS URL