Skip to content
FijianJacobs edited this page Jan 1, 2020 · 12 revisions

What's pulsar-openresty-proxy

Pulsar-openresty-proxy is a simple dynamic proxy and gateway server for accessing apache pulsar broker depended OpenResty.

How to build & install

  1. Download Release version installation package, see (Release List).

  2. Uncompress source code installation package, ex:

tar -xzvf pulsar-openresty-proxy-1.0.tar.gz
  1. Move into source code directory, ex:
cd pulsar-openresty-proxy-1.0
  1. run installation script(support for CentOS).
sh quick_installation.sh
  1. configuration:default configuration file path is "/etc/orProxy/orProxy.json". See configuration file sample pulsar-openresty-proxy config sample.

  2. create nginx/openresty log directory.

sudo mkdir -p /var/log/orProxy 
  1. Starting Pulsar OpenResty Proxy Server,Using orProxy start。Pulsar Openresty Proxy Server CLI Tools.

  2. Using 'curl http://127.0.0.1/health/ping' for orProxy healthy checking.

Of cause,As mentioned before,pulsar-openresty-proxy is depended on Openresty. So we must install Openresty service first.In our quick installation shell script, it include openresty's installation shell script.If you want to install Openresty manually, you can see Openresty installing sample for support. If you have installed openresty before, you just need change step 4's command to ** sudo make install **.