openresty / echo-nginx-module

An Nginx module for bringing the power of "echo", "sleep", "time" and more to Nginx's config file
http://wiki.nginx.org/NginxHttpEchoModule
BSD 2-Clause "Simplified" License
1.17k stars 254 forks source link

When I installed it and it didn't work #86

Open ChinaPhpZyp opened 5 years ago

ChinaPhpZyp commented 5 years ago

When i use this command brew options nginx-full | grep echo I can see --with-echo-module But When i use this command to reload nginx -s reload Terminal prompts me nginx: [emerg] unknown directive 'echo' @agentzh

agentzh commented 5 years ago

@ChinaPhpZyp Are you using the brew documented here?

https://openresty.org/en/download.html

Seems like you are using the wrong nginx executable. You can try using absolute file path to invoke nginx. Please keep in mind, different execution environment may see different PATH environment variable values (like sudo or init scripts).