Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation of domestic Micro Service Gateway Apache APISIX

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I. Demand environment 1.openresty version is greater than 1.15.8.12.etcd-- yum installation can be 3.luarocks-- Source code installation 4.nodejs version is greater than 105.Apache APISIX version 1.0.After adding the environment in advance, use vim ~ / .bash_profileNODE_HOME=/app/sinova/node-v12.15.0-linux-x64NODE_PATH=/app/sinova/node-v12.15.0-linux-x64/lib/node_modulesPATH=/app/sinova/ directly. Openresty/bin:$NODE_HOME/bin:/app/sinova/openresty/luajit/bin:$PATH:$HOME/.local/bin:$HOME/binexport PATH NODE_ path II. Install openrestywget https://openresty.org/download/openresty-1.15.8.2.tar.gztar-zxvf openresty-1.15.8.2.tar.gzcd openresty-1.15.8.2./configure-prefix=/app/sinova/openresty\-with-http_stub_status_module--with-http_ssl_module--with-http_realip_module--with-http_v2_modulemake & & make install 3. Install luarocks-- and install wget http://luarocks.github.io/luarocks/releases/luarocks-3.3.1.tar.gztar-zxvf luarocks-3.3.1cd luarocks-3.3.1./configure-- prefix=/app/sinova/openresty/luajit/\-- with-lua=/app/sinova/openresty/luajit/--lua-suffix=jit--with-lua-include=/app/sinova/openresty/luajit/include/luajit-2.1make build & & make install## in the openresty directory # install etcdyum install etcdsudo systemctl start etcd-- start 4. Install APISIXwget http://www.apache.org/dist/incubator/apisix/1.0/apache-apisix-1.0-incubating-src.tar.gztar-zxvf apache-apisix-1.0-incubating-src.tar.gzyum install gitcd apache-apisix-1.0-incubatingmake depsmake initmake run-start-$make helpMakefile rules: help: Show Makefile rules. Deps: Installation dependencies utils: Installation tools lint: Lint Lua source code init: Initialize the runtime environment run: Start the apisix server stop: Stop the apisix server clean: Remove generated files reload: Reload the apisix server install: Install the apisix test: Run the test case license-check: Check lua souce code for Apache License 5. Install (Dashboard) git clone https://github.com/apache/incubator-apisix-dashboard.gitcd incubator-apisix-dashbnpm install yarnyarn & & yarn build:prodcp-r incubator-apisix-dashb/dist/* apache-apisix-1.0-incubating-src## Integration with APISIX Copy the compiled files under / dist directory to the apisix/dashboard directory Open http://127.0.0.1:9080/apisix/dashboard/ in the browser. Do not need to fill the user name and password, log in directly. http://127.0.0.1:9080/apisix/dashboard/-browsers visit The dashboard allows any remote IP by default, and you can modify allow_admin in conf/config.yaml by yourself, to list the list of IPs allowed to access

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report