温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-07-21 05:38:41 来源:网络 阅读:2140 作者:neptunecai 栏目:开发技术

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

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

3. 访问web程序

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

比如:http://192.168.2.200:9110/

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

vanilla中文手册

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


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI