当前位置:网站首页>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/ &
边栏推荐
- Kubernetes notes (IX) kubernetes application encapsulation and expansion
- pytorch 多分类中的损失函数
- CAD插件的安裝和自動加載dll、arx
- Kubernetes notes (I) kubernetes cluster architecture
- GPS坐标转百度地图坐标的方法
- pytorch 搭建神经网络最简版
- Kubesphere - build Nacos cluster
- If function of MySQL
- Solve the problem that Anaconda environment cannot be accessed in PowerShell
- Mysql database table export and import with binary
猜你喜欢

.NET程序配置文件操作(ini,cfg,config)

为什么网站打开速度慢?

Kubesphere - build MySQL master-slave replication structure

Bio, NiO, AIO details

tabbar的设置

輕松上手Fluentd,結合 Rainbond 插件市場,日志收集更快捷

Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide

深度学习,从一维特性输入到多维特征输入引发的思考

Merge and migrate data from small data volume, sub database and sub table Mysql to tidb

Project summary --01 (addition, deletion, modification and query of interfaces; use of multithreading)
随机推荐
[teacher Zhao Yuqiang] index in mongodb (Part 1)
If function of MySQL
[teacher Zhao Yuqiang] MySQL flashback
The server data is all gone! Thinking caused by a RAID5 crash
深度学习,从一维特性输入到多维特征输入引发的思考
Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide
深入解析kubernetes controller-runtime
Use telnet to check whether the port corresponding to the IP is open
What's the difference between using the Service Worker Cache API and regular browser cache?
Understand expectations (mean / estimate) and variances
Understand the first prediction stage of yolov1
Exportation et importation de tables de bibliothèque avec binaires MySQL
Oauth2.0 - using JWT to replace token and JWT content enhancement
MySQL带二进制的库表导出导入
CAD插件的安裝和自動加載dll、arx
Kubernetes notes (IX) kubernetes application encapsulation and expansion
Ext4 vs XFS -- which file system should you use
Zhiniu stock project -- 05
QT read write excel -- qxlsx insert chart 5
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)