码迷,mamicode.com
首页 > Windows程序 > 详细

Openresty+YII2.0下开发RestfulAPI系列4:vanilla香草框架简介

时间:2016-06-01 21:32:42      阅读:747      评论:0      收藏:0      [点我收藏+]

标签:openresty lua vanilla

1. 安装

 压缩包在https://github.com/idevz/vanilla下载。

 把解压后的文件 /vanilla-master 放到 /opt/目录。并修改整个文件夹的属性:

chmod R 755 vanilla-master

 

./configure --prefix=/opt/vanilla --openresty-path=/opt/openresty

make install

 

2. vanilla的使用

 创建application框架

cd vanilla

/opt/vanilla目录下执行:vanilla new app_name,比如vanilla new test

 启动vanilla

vanilla start --trace

技术分享

3. 访问web程序

因为Vanilla app in development was successfully started on port 9110. 所以访问web的端口号是9110

比如:http://192.168.2.200:9110/

技术分享

vanilla中文手册

https://idevz.gitbooks.io/vanilla-zh/content/overview.html


本文出自 “编程艺术” 博客,请务必保留此出处http://itsart.blog.51cto.com/1005243/1785282

Openresty+YII2.0下开发RestfulAPI系列4:vanilla香草框架简介

标签:openresty lua vanilla

原文地址:http://itsart.blog.51cto.com/1005243/1785282

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!