Apisix网关部署

Apisix版本:                        3.0.1

Apisix-dashboard版本:      3.0.1

etcd版本:                           3.4.9

注:

Apisix配置的路由信息存储在etcd中。

Apisix与apisix-dashboard版本要对应。

一、ETCD安装

ETCD部署_网络迷男的博客-CSDN博客

二、Apisix安装

1、安装yum源

yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm
yum install gcc gcc-c++ wget git lua-devel wget 

2、安装Apisix

# 查看仓库中最新的 apisix 软件包的信息
yum info -y apisix

# 显示仓库中现有的 apisix 软件包
yum --showduplicates list apisix

# 安装最新的 apisix 软件包
yum install apisix

# 安装指定版本(本例中为2.12.0版本)的 apisix 软件包
yum install apisix-3.0.1-0.el7

Apisix安装后的目录位于:/usr/local/apisix/

3、修改apisix配置文件

[root@centos_mn ~]# vim /usr/local/apisix/conf/config-default.yaml
# 修改etcd链接参数
etcd:
    host:
      - http://10.2.20.77:2379

4、启动Apisix

apisix init
systemctl start apisix

5、访问apisix服务http://IP:9080

三、Apisix后台安装

1、下载安装包

apisix-dashboard-3.0.1-0.el7.x86-64资源-CSDN文库

2、安装dashboard服务

yum localinstall apisix-dashboard-3.0.1-0.el7.x86_64.rpm 

dashboard服务安装目录:/usr/local/apisix/dashboard/

3、修改dashboard配置文件

[root@localhost ]# vim  /usr/local/apisix/dashboard/conf/conf.yaml

#1、修改监听地址
conf:
  listen:
     host: 0.0.0.0     # the address on which the `Manager API` should listen.
                          # The default value is 0.0.0.0, if want to specify, please enable it.
                          # This value accepts IPv4, IPv6, and hostname.
    port: 9000            # The port on which the `Manager API` should listen.

#2、设置允许访问的地址段
  allow_list:             # If we don't set any IP list, then any IP access is allowed by default.
    - 0.0.0.0          # The rules are checked in sequence until the first match is found.
    - ::1


#3、修改etcd连接信息
  etcd:
    endpoints:            
      - 10.2.20.77:2379 #Apisix与Apisix-dashboard要使用同一个etcd

#4、修改dashboard登录账户及密码
authentication:
  secret:
    secret              # secret for jwt token generation.
                        # NOTE: Highly recommended to modify this value to protect `manager api`.
                        # if it's default value, when `manager api` start, it will generate a random string to replace it.
  expire_time: 3600     # jwt token expire time, in second
  users:                # yamllint enable rule:comments-indentation
    - username: admin   # username and password for login `manager api`
      password: 123456
#    - username: user
#      password: user

4、启动服务

systemctl start apisix-dashboard

5、访问后台http://IP:9000/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
IPGuard安全网关是一种网络安全设备,用于保护企业网络免受各种网络攻击和威胁。在部署IPGuard安全网关时,需要考虑以下几个步骤: 首先,需要进行网络规划和设计。根据企业的网络结构和需求,确定安装IPGuard安全网关的位置,通常会选择在企业的内部网关或边界路由器上部署。 其次,安装和配置IPGuard设备。将IPGuard设备连接到网络中,并按照厂商提供的指导手册进行正确的配置和安装。这包括配置网关防火墙规则、访问控制列表、安全策略等。 然后,进行性能和安全优化。对已部署的IPGuard安全网关进行性能调优,确保其能够正常运行并提供最佳的安全防护。这包括优化带宽利用率、降低延迟、提高吞吐量等。 接下来,进行监控和管理设置。配置IPGuard安全网关的监控和管理功能,例如设置警报和通知机制,以及远程管理接口。这样可以及时监测和管理网络流量、日志和安全事件。 最后,进行测试和维护。在IPGuard安全网关部署完成后,进行全面的测试,确保其能够正常工作并提供所需的安全防护。同时,进行定期的系统维护和升级,以保持设备的最新状态并提供最佳性能。 总之,IPGuard安全网关部署需要综合考虑企业网络的需求和安全风险,通过合理的网络规划、安装配置和优化调整,以及监控管理和维护,来确保网络的安全性和正常运行。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值