StartNetaxe
netaxe2023/05/18
Install Netaxe on Docker
To install Netaxe using Docker, you need to install Docker locally in advance.
For the installation of Docker, please refer to the official documentation::
Install docker And docker-compose
CentOS (查看官方教程)
Uninstall Old Version
docker或docker-enginesudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engineSet Repo
sudo yum install -y yum-utilsChoose one of the following two, the second is domestic source
sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.reposudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoInstall
dockerenginesudo yum install -y docker-ce \ docker-ce-cli \ containerd.io \ docker-buildx-plugin \ docker-compose-pluginRun
dockersudo systemctl start docker
Ubuntu (查看官方教程)
Uninstall Old Version
docker或docker-enginesudo apt-get remove docker docker-engine docker.io containerd runcSet Repo
Update 'apt' package index and install dependencies
sudo apt-get updatesudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-releaseAdd Docker official GPG key
sudo mkdir -m 0755 -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgSet Repo
echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install
dockerenginesudo apt-get updateReceive a GPG error while running the 'apt-get' update?
sudo chmod a+r /etc/apt/keyrings/docker.gpgsudo apt-get updatesudo apt-get install docker-ce \ docker-ce-cli \ containerd.io \ docker-buildx-plugin \ docker-compose-plugin
Deploy Netaxe
Disable the firewall:
systemctl stop firewalld.service
systemctl disable firewalld.service
You need to close selinux
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
Check whether the modification is successful
grep SELINUX /etc/selinux/config
Then restart the system
reboot
git clone https://gitee.com/iflytek/NetAxe.git
cd NetAxe/install-compose/
sh init.sh && sh deploy.sh && sh init_apisix.sh
The network adapter IP corresponding to the default route of your server is automatically found as the IP to listen to after the service is deployed
If your server involves IP mapping or nginx proxy, you need to change it
sh init.sh 1.1.1.1 && sh deploy.sh && sh init_apisix.sh
1.1.1.1 is the IP on which you want the service to end up running
Application port planning table
| 应用 | 前端 web | 后端 controller | 别名 |
|---|---|---|---|
| 微前端主应用 | 9980 | - | - |
| 基础平台 | 32200 | 31100 | base |
| 消息网关 | 32201 | 31101 | msg-gateway |
| 告警中心 | 32202 | 31102 | alert |
| IPAM | 32203 | 31103 | ipam |
| RBAC | 32204 | 31104 | rbac |
| 南向驱动 | 32205 | 31105 | south-driver |
| 监控中心 | 32206 | 31106 | neteye |
| 可视化指标 | 32207 | 31107 | metric |
| DCN 控制器 | 32208 | 31108 | dcn |
| DCS 控制器 | 32208 | 31108 | dcs |
| 工作流引擎 | 32209 | 31109 | work-flow |
| 资源平台 | 32210 | 31110 | cmdb |
| 私有平台 | 32211 | 31111 | private |
底层工具端口规划表
| 应用 | 端口 |
|---|---|
| apisix-dashboard | 39000 |
| apisix | 9080/9091/9092/9443 |
| etcd | 2379 |
| mongo | 37018 |
| mongo-express | 37017 |
| mysql | 36306 |
| redis | 36379 |
| rabbitmq | 31672/32672 |
| nacos | 8848 |
| pushgateway | 39091 |
| prometheus | 39090 |
