Introduction to developing RESTFULAPI Series 4:vanilla Vanilla framework under openresty+yii2.0

Source: Internet
Author: User

1. Installation

⑴ The compressed package is Https://github.com/idevz/vanilla download.

⑵ put the extracted files / Vanilla-master put it in the /opt/ directory. and modify the properties of the entire folder:

chmod – R 755 Vanilla-master

⑶  

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

Make install

2. Use of vanilla

⑴ Create a application Framework

CD Vanilla

Executed under the /opt/vanilla directory:Vanilla new app_name, such as vanilla new Test

⑵ start Vanilla

Vanilla start--trace

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/3B/wKioL1dOvVGwU-NDAABY-lVF-Lw051.png "title=" Picture 1.png "alt=" Wkiol1dovvgwu-ndaaby-lvf-lw051.png "/>

3. accessing the Web program

because the Vanilla app in Development Was successfully started on port 9110. so access Web the port number is 9110 .

For example: http://192.168.2.200:9110/

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/82/3C/wKiom1dOvHOS_LxjAAC_KO2wUmo258.png "title=" Picture 2.png "alt=" Wkiom1dovhos_lxjaac_ko2wumo258.png "/>

Vanilla Chinese Manual

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


This article is from the "Programming Art" blog, so be sure to keep this source http://itsart.blog.51cto.com/1005243/1785282

Introduction to developing RESTFULAPI Series 4:vanilla Vanilla framework under openresty+yii2.0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.