
我在網上找了一篇關于mac環境下安裝kong的教程,感覺比較詳細,但是在最后kong start 啟動的時候報錯了,是nginx的配置問題,但是找了一下午,都沒有找到和我問題相似的解決方案,所以求大家幫忙看下!文章鏈接:https://blog.csdn.net/lyking2001/article/details/82799068
uj5u.com熱心網友回復:
nginx: [emerg] unknown directive "real_ip_header" in /usr/local/kong/nginx-kong.conf:73這是因為編譯的openresty的時候,沒有指定--with-http_realip_module,重新編譯安裝:
./configure --with-pcre-jit --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_v2_module
make -j2
make install //默認安裝在/usr/local/bin/openresty
export PATH=/usr/local/openresty/bin:$PATH
uj5u.com熱心網友回復:
我滴乖乖,遇到問題還是只能靠自己呀,,,,,轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/62584.html
標籤:網絡通信
