当前位置:网站首页>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 successfully
install 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 start
apisix-dashboard
sudo nohup manager-api -p /usr/local/apisix/dashboard/ &
边栏推荐
- Fluentd facile à utiliser avec le marché des plug - ins rainbond pour une collecte de journaux plus rapide
- 深入解析kubernetes controller-runtime
- Mysql database table export and import with binary
- Zhiniu stock -- 03
- Analysis of Clickhouse mergetree principle
- 从小数据量 MySQL 迁移数据到 TiDB
- 70 shell script interview questions and answers
- Btrfs and ext4 - features, strengths and weaknesses
- Oauth2.0 - using JWT to replace token and JWT content enhancement
- BeanDefinitionRegistryPostProcessor
猜你喜欢
智牛股项目--04
Understand expectations (mean / estimate) and variances
Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
JDBC connection database steps
QT read write excel -- qxlsx insert chart 5
Oauth2.0 - user defined mode authorization - SMS verification code login
卷积神经网络CNN中的卷积操作详解
How to create and configure ZABBIX
GPS坐标转百度地图坐标的方法
Oauth2.0 - Introduction and use and explanation of authorization code mode
随机推荐
BeanDefinitionRegistryPostProcessor
Characteristics and isolation level of database
Core principles and source code analysis of disruptor
Common exceptions when Jenkins is released (continuous update...)
Using the ethtool command by example
Loss function in pytorch multi classification
深入解析kubernetes controller-runtime
Bio, NiO, AIO details
Complete set of C language file operation functions (super detailed)
[teacher Zhao Yuqiang] Flink's dataset operator
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
Jackson: what if there is a lack of property- Jackson: What happens if a property is missing?
ThreadLocal的简单理解
The most responsible command line beautification tutorial
Beandefinitionregistrypostprocessor
Jedis source code analysis (II): jediscluster module source code analysis
QT read write excel -- qxlsx insert chart 5
Kubernetes notes (IX) kubernetes application encapsulation and expansion
Phpstudy setting items can be accessed by other computers on the LAN
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)