当前位置: 首页 > news >正文

apisix 单机部署 linux

安装etcd:

cd /home/app
rz 
tar -zxvf etcd-v3.5.4-linux-amd64.tar.gz
cd etcd-v3.5.4-linux-amd64
vim start.sh内容:
#!/bin/sh
nohup etcd --name infra0 --initial-advertise-peer-urls http://127.0.0.1:2380 \--listen-peer-urls http://127.0.0.1:2380 \--listen-client-urls http://127.0.0.1:2379\--advertise-client-urls http://127.0.0.1:2379 \--initial-cluster-token etcd-cluster-1 \--initial-cluster infra0=http://127.0.0.1:2380\--initial-cluster-state new >./logs/etcd.log 2>&1 &chmod 755 start.sh
mkdir logssudo cp -a etcd etcdctl /usr/bin/sh start.shtail -f logs/etcd.logetcdctl member list
etcdctl put key value
etcdctl get key

#安装apisix

cd /home/app
sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo
sudo yum install -y apisix 3.2cd /usr/local/apisix/confrm -rf config-default.yaml#上传config-default.yaml
rz   
chmod 755 config-default.yamlcd /usr/local/apisix

#启动apisix
apisix start

#安装dashboard

cd /home/appsudo yum install -y https://github.com/apache/apisix-dashboard/releases/download/v3.0.0/apisix-dashboard-3.0.0-0.el7.x86_64.rpmvim  /usr/local/apisix/dashboard/conf/conf.yaml
修改内容:#allow_list:             # If we don't set any IP list, then any IP access is allowed by default.#- 0.0.0.0           # The rules are checked in sequence until the first match is found.#- ::1 启动:
sudo systemctl start apisix-dashboard停止:
sudo systemctl stop apisix-dashboard查看状态:
sudo systemctl status apisix-dashboard
http://www.lryc.cn/news/286192.html

相关文章:

  • Redis 面试题 | 06.精选Redis高频面试题
  • 2008年苏州大学837复试机试C/C++
  • MySQL笔记-information_schema库中COLUMNS表的一些笔记
  • 归并排序模板
  • 【NVIDIA】Jetson Orin Nano系列:安装 Qt6、firefox、jtop、flameshot
  • Fastapi+Jsonp实现前后端跨域请求
  • MacOS受欢迎的数据库开发工具 Navicat Premium 15 中文版
  • helm---自动化一键部署
  • 求助帖(setiosflags)的左右对齐问题:
  • 升级8.0:民生手机银行的“内容解法”
  • Kubernetes多租户实践
  • 【GEE】GEE反演地表温度相关问题说明(空洞、Landsat9数据集等)
  • 【蓝桥备赛】数组分割——组合数学?
  • iphone5s基带部分电源部分主主电源供电及
  • 【每日一题】按分隔符拆分字符串
  • spawn_group_template | spawn_group | linked_respawn
  • 软考系分之计算机网络规划设计、综合布线、RAID和网络存储等
  • 使用ElEment组件实现vue表单校验空值
  • processing集训day01
  • java面试——juc篇
  • CSS 实现卡片以及鼠标移入特效
  • 芯课堂 | SWM34S系列驱动TFT-LCD显示模组应用基本注意事项
  • java8 列表通过 stream流 根据对象属性去重的三种实现方法
  • 鸿蒙开发DevEco Studio Setup 工具认识及使用
  • 程序员裁员潮:技术变革下的职业危机
  • Cesium快速入门
  • Android.mk和Android.bp的区别和转换详解
  • 卡尔曼滤波器原理By_DR_CAN 学习笔记
  • 013 异常
  • 微服务Spring Cloud架构详解