成都创新互联网站制作重庆分公司

国产微服务网关ApacheAPISIX安装-创新互联

一、需求环境

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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

为和田等地区用户提供了全套网页设计制作服务,及和田网站建设行业解决方案。主营业务为成都网站设计、成都做网站、和田网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!
文章标题:国产微服务网关ApacheAPISIX安装-创新互联
本文链接:http://cxhlcq.com/article/ppdcg.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部