OpenResty(3)--Moochine,


#本例操作系统是Ubuntu

1.Install GIT

apt-get install git

 

2.Checkout Moochine Code

git clone git://github.com/appwilldev/moochine.git

 

3.设置环境变量

export OPENRESTY_HOME=/usr/local/openresty

export MOOCHINE_HOME=/path/to/moochine

并将以上代码加入到

/etc/profile

source ./etc/profile

生效

 

4.Checkout 示例

git clone git://github.com/appwilldev/moochine-demo.git

cd moochine-demo

 

5.启动/停止/重载/重启

./bin/start.sh #启动

./bin/stop.sh #停止

./bin/reload.sh #重载配置

./bin/debug.sh #关闭服务->清空error log->启动服务->查看error log

 

6.测试

curl http://localhost:9800/hello?name=test

curl http://localhost:9800/ltp

tail -f nginx_runtime/logs/access.log  #查看 Nginx 访问日志的输出

tail -f nginx_runtime/logs/error.log  #查看 Nginx 错误日志和调试日志 的输出

 

参考

https://github.com/appwilldev/moochine

https://github.com/appwilldev/moochine-demo

相关内容

    暂无相关文章