Skip to main content
Version: 3.0


This guide walks you through how you can install and run Apache APISIX in your environment.

Refer to the Getting Started guide for a quick walk-through on running Apache APISIX.

Installing APISIX#

APISIX can be installed by the different methods listed below:

First clone the apisix-docker repository:

git clone
cd apisix-docker/example

Now, you can use docker-compose to start APISIX.

docker-compose -p docker-apisix up -d

Installing etcd#

APISIX uses etcd to save and synchronize configuration. Before installing APISIX, you need to install etcd on your machine.

It would be installed automatically if you choose the Docker or Helm install method while installing APISIX. If you choose a different method or you need to install it manually, follow the steps shown below:

tar -xvf etcd-v${ETCD_VERSION}-linux-amd64.tar.gz && \
cd etcd-v${ETCD_VERSION}-linux-amd64 && \
sudo cp -a etcd etcdctl /usr/bin/
nohup etcd >/tmp/etcd.log 2>&1 &

Next steps#

Configuring APISIX#

You can configure your APISIX deployment in two ways:

  1. By directly changing your configuration file (conf/config.yaml).

  2. By using the --config or the -c flag to pass the path to your configuration file while starting APISIX.

    apisix start -c <path to config file>

If you have done the Docker based installation, you need to exec into the apisix docker container to run the apisix command:

docker exec -it <name-of-container/container-id> sh

If you have installed via helm, you need to exec into the apisix kubernetes pod to run the apisix command:

kubectl exec -it <name-of-apisix-pod> -n <namespace-running-apisix> -- sh

APISIX will use the configurations added in this configuration file and will fall back to the default configuration if anything is not configured.

For example, to configure the default listening port to be 8000 without changing other configurations, your configuration file could look like this:

node_listen: 8000

Now, if you decide you want to change the etcd address to http://foo:2379, you can add it to your configuration file. This will not change other configurations.

node_listen: 8000

role: traditional
config_provider: etcd
- "http://foo:2379"

APISIX's default configuration can be found in conf/config-default.yaml file and it should not be modified. It is bound to the source code and the configuration should only be changed by the methods mentioned above.


The conf/nginx.conf file is automatically generated and should not be modified.

APISIX deployment modes#

APISIX has three different deployment modes for different use cases. To learn more and configure deployment modes, see the documentation.

Updating Admin API key#

It is recommended to modify the Admin API key to ensure security.

You can update your configuration file as shown below:

name: "admin"
key: newsupersecurekey
role: admin

Now, to access the Admin API, you can use the new key:

curl -i

Adding APISIX systemd unit file#

If you installed APISIX via RPM, the APISIX unit file will already be configured and you can start APISIX by:

systemctl start apisix
systemctl stop apisix

If you installed APISIX through other methods, you can create /usr/lib/systemd/system/apisix.service and add the configuration from the template.

See the Getting Started guide for a quick walk-through of using APISIX.