Openresty+YII2.0下开发RestfulAPI系列4: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 developmentwas successfully started on port 9110. 所以访问web的端口号是9110。
比如:http://192.168.2.200:9110/
vanilla中文手册
https://idevz.gitbooks.io/vanilla-zh/content/overview.html
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。