当前位置:网站首页>APISIX的源码安装与使用
APISIX的源码安装与使用
2022-07-23 05:45:00 【Sindweller5530】
参考官方文档 安装APISIX
安装
mkdir apisix-2.7
wget https://downloads.apache.org/apisix/2.7/apache-apisix-2.7-src.tgz
tar zxvf apache-apisix-2.7-src.tgz -C apisix-2.7
# 记得下载好运行时需要的lua库
cd apisix-2.7
make deps
启动
# 先写好配置文件nginx.conf并启动etcd
$ make init
# start APISIX server
$ make run
# stop APISIX server gracefully
$ make quit
# stop APISIX server immediately
$ make stop
# more actions find by `help`
$ make help
使用apisix-ingress-controller
cd /path/to/apisix-ingress-controller
./apisix-ingress-controller ingress \
--kubeconfig ~/.kube/config \ #注意修改为自己的kubeconfig路径,我因为使用minikube所以是这个路径
--http-listen :8080 \
--log-output stderr \
--apisix-base-url "http://127.0.0.1:9080/apisix/admin" \ #注意这里需要修改为自己的apisix地址
--apisix-admin-key edd1c9f034335f136f87ad84b625c8f1 #注意这里可能需要修改key
此时遇到了问题:error retrieving resource lock default/ingress-apisix-leader: Get "https://127.0.0.1:49663/apis/coordination.k8s.io/v1/namespaces/default/leases/ingress-apisix-leader": dial tcp 127.0.0.1:49663: connect: connection refused
原因是k8s集群没启动。使用minikube启动:minikube start
报错:failed to list upstreams in APISIX: unexpected non-empty object
边栏推荐
- [talent column] can't you use Apache dolphin scheduler? It takes a month to write the most comprehensive introductory teaching [2]
- Jetson TX1 installation pytoch
- 【存储器了解 RAM flash和eeprom存储器的区别和作用】
- Examen des principes fondamentaux de la structure en acier
- [AUTOSAR candrive 2. understand the mapping relationship between communication HOH, canid and pduid]
- #under指令
- C语言小项目——学生成绩管理系统
- 桌面远程协议-编解码
- C language small project - student achievement management system
- C语言数据库:详细的说明用学生管理系统了解数据库的操作,简单易懂。
猜你喜欢

C language small project - student achievement management system

Interpretation of the paper: develop a prediction model based on multi-layer deep learning to identify DNA N4 methylcytosine modification

鋼結構基本原理複習

socket基础知识以及各种使用场景

Examen des principes fondamentaux de la structure en acier

输入三角形边长,求面积

高等代数知识结构
![[learning summary]](/img/f6/5f960052735a98057f66b7d186b53f.png)
[learning summary]

C语言数据库:基于tcp多进程的在线词典,有详细的步骤已经图解,欢迎大家来观看

钢结构基本原理全面详细总结
随机推荐
[CAN总线的物理层 ]1.CAN/CANFD采样的点的内容分享
Blog building I: Framework selection
高电压技术试题及答案
[talent column] can't you use Apache dolphin scheduler? It takes a month to write the most comprehensive introductory teaching [2]
Vs attribute configuration related knowledge
合成中文识别数据集的相关repo
[AUTOSAR com 1. introduction to communication protocol stack]
博客搭建六:绑定自己域名的方法
二叉树的实现-c
Blog building five: drawing bed selection
对字符串函数的使用和理解(2)
Analysis of 100 questions and answers in Higher Algebra
C语言中,对柔性数组的理解
A comprehensive and detailed summary of the basic principles of steel structure
C language small project - student achievement management system
Summary of video coding and decoding related data
高等代数知识结构
视频编解码相关资料汇总
Axure实现增删改查
NLP natural language processing - Introduction to machine learning and natural language processing (2)