当前位置:网站首页>Apifix installation
Apifix installation
2022-07-03 06:09:00 【vincentwc】
Introduction to the environment
- centos7 virtual machine
The detailed steps
install etcd, As follows :
# install etcd wget https://github.com/etcd-io/etcd/releases/download/v3.4.13/etcd-v3.4.13-linux-amd64.tar.gz tar -xvf etcd-v3.4.13-linux-amd64.tar.gz && \ cd etcd-v3.4.13-linux-amd64 && \ sudo cp -a etcd etcdctl /usr/bin/ # add to OpenResty Source sudo yum install yum-utils sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo # install OpenResty and Compiler tools sudo yum install -y openresty curl git gcc openresty-openssl111-devel unzip # install LuaRocks curl https://raw.githubusercontent.com/apache/apisix/master/utils/linux-install-luarocks.sh -sL | bash - # Turn on etcd server nohup etcd &# Restart the machine and start etcd cd /usr/local/etcd-v3.4.13-linux-amd64 nohup etcd &install apisix
# Solve the dependency problem in advance # install epel Source , luarocks Need to be used . wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -ivh epel-release-latest-7.noarch.rpm # add to OpenResty Mirror source for yum install yum-utils yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo # install OpenResty, etcd And some dependent tools 【 Because the previous step has been installed etcd 了 , So I won't install it here , ok , Actually, it is installed here etcd Outdated Version ,apisix I won't support it , So reinstall 】 # yum install -y etcd openresty curl git gcc luarocks lua-devel yum install -y openresty curl git gcc luarocks lua-devel # Firewall OFF systemctl stop firewalld.service systemctl disable firewalld.service # close selinux setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config # install apisix yum install -y https://github.com/apache/apisix/releases/download/2.5/apisix-2.5-0.x86_64.rpm # start-up apisix apisix start # If you are using tar.gz If the package is installed , It is used under the unzipped directory make run command , Details can be found at apisix Official documents # see apisix Related commands apisix --help # Check whether the service is started # View the process or listen to the port 9080 ps aux|grep apisix netstat -lntp|grep 9080 # thus ,apisix It has been installed successfullyinstall apisix-dashboard
# Install dependency first # node、npm wget https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz # Decompression deployment tar xvf node-v12.16.1-linux-x64.tar.xz mv node-v12.16.1-linux-x64 /usr/local/node # Configure environment variables echo 'PATH=/usr/local/node/bin/:$PATH' >> /etc/profile source /etc/profile # Test environment node --version npm --version[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-pizF0BEY-1621424373105)(C:\Users\vince\AppData\Roaming\Typora\typora-user-images\image-20210516121453752.png)]
# install yarn wget https://github.com/yarnpkg/yarn/releases/download/v1.22.4/yarn-v1.22.4.tar.gz # Decompression deployment tar xvf yarn-v1.22.4.tar.gz mv yarn-v1.22.4 /usr/local/yarn # Configure environment variables echo 'PATH=/usr/local/yarn/bin/:$PATH' >> /etc/profile source /etc/profile # Test environment yarn --version[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-4ojdUAOa-1621424373107)(C:\Users\vince\AppData\Roaming\Typora\typora-user-images\image-20210516121718137.png)]
# install go ...# hold rpm Download the package locally Update the version number as required , And then upload rpm package https://github.com/apache/apisix-dashboard/releases/download/v2.6/apisix-dashboard-2.6-0.x86_64.rpm # install yum localinstall apisix-dashboard-2.6-0.x86_64.rpm # function dashboard sudo nohup manager-api -p /usr/local/apisix/dashboard/ &
Machine restart
etcd
# Restart the machine and start etcd cd /usr/local/etcd-v3.4.13-linux-amd64 nohup etcd &apisxi
apisix startapisix-dashboard
sudo nohup manager-api -p /usr/local/apisix/dashboard/ &
边栏推荐
- The most responsible command line beautification tutorial
- 卷积神经网络CNN中的卷积操作详解
- Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
- MySQL帶二進制的庫錶導出導入
- Kubernetes notes (II) pod usage notes
- ThreadLocal的简单理解
- Why should there be a firewall? This time xiaowai has something to say!!!
- Ext4 vs XFS -- which file system should you use
- CKA certification notes - CKA certification experience post
- [teacher Zhao Yuqiang] index in mongodb (Part 1)
猜你喜欢

Apt update and apt upgrade commands - what is the difference?

智牛股项目--04

Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception

Detailed explanation of contextclassloader

Phpstudy setting items can be accessed by other computers on the LAN

How to create and configure ZABBIX

【系统设计】邻近服务

Zhiniu stock project -- 05

Kubesphere - build MySQL master-slave replication structure

Project summary --2 (basic use of jsup)
随机推荐
Migrate data from Amazon aurora to tidb
Oauth2.0 - explanation of simplified mode, password mode and client mode
How to create and configure ZABBIX
Convolution operation in convolution neural network CNN
Es remote cluster configuration and cross cluster search
Kubernetes notes (VII) kuberetes scheduling
Project summary --04
MySQL带二进制的库表导出导入
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
PMP笔记记录
pytorch 搭建神经网络最简版
How does win7 solve the problem that telnet is not an internal or external command
Analysis of Clickhouse mergetree principle
1. 兩數之和
Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
项目总结--04
Oauth2.0 - use database to store client information and authorization code
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
[teacher Zhao Yuqiang] MySQL flashback
Kubesphere - Multi tenant management