日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

国产微服务网关Apache APISIX安装

發布時間:2025/5/22 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 国产微服务网关Apache APISIX安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、需求環境


1.openresty 版本大于 1.15.8.1
2.etcd ?-- yum安裝即可
3.luarocks ?--源碼安裝
4.nodejs 版本大于10
5.Apache APISIX 版本1.0

提前添加環境以后直接使用
vim ~/.bash_profile
NODE_HOME=/app/sinova/node-v12.15.0-linux-x64
NODE_PATH=/app/sinova/node-v12.15.0-linux-x64/lib/node_modules
PATH=/app/sinova/openresty/bin:$NODE_HOME/bin:/app/sinova/openresty/luajit/bin:$PATH:$HOME/.local/bin:$HOME/bin

export PATH NODE_PATH

二、安裝openresty
wget https://openresty.org/download/openresty-1.15.8.2.tar.gz
tar -zxvf openresty-1.15.8.2.tar.gz
cd 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_module
make && make install

三、安裝luarocks–安裝到openresty目錄下
wget ?http://luarocks.github.io/luarocks/releases/luarocks-3.3.1.tar.gz
tar -zxvf ?luarocks-3.3.1
cd ?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.1
make build && make install

### 安裝etcd
yum ?install etcd
sudo systemctl start etcd ?--啟動

四、安裝APISIX
wget http://www.apache.org/dist/incubator/apisix/1.0/apache-apisix-1.0-incubating-src.tar.gz
tar -zxvf apache-apisix-1.0-incubating-src.tar.gz
yum install git
cd apache-apisix-1.0-incubating
make deps
make init
make run ?--啟動

-----
$ make help
Makefile 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

五、安裝(Dashboard)
git clone https://github.com/apache/incubator-apisix-dashboard.git
cd incubator-apisix-dashb
npm install yarn
yarn && yarn build:prod

cp -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/ ? --瀏覽器訪問

傳統企業海外專線解決方案通常需要數月的時間來進行站點網絡部署申請、業務調測和現場配置,非常耗時耗力。

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

總結

以上是生活随笔為你收集整理的国产微服务网关Apache APISIX安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。