Initiate a project yaf

Initiate a project yaf

Enter the installation package directory

cd /usr/local/yaf-yaf-3.0.9/tools/cg

Create a project

sudo ./yaf_cg 项目名

After execution, it will generate a folder in the output folder.

The project beat out, and so you can then configure nginx

server
    {
        listen 80;
        #listen [::]:80;
        server_name jiqing.yaf.com ;
        index index.html index.htm index.php;
        root  /home/wwwroot/default/yaf/cheetah;

        #error_page   404   /404.html;


        include enable-php7.2.conf;

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access.yaf.log;
}

Modify hosts

sudo vim /etc/hosts

Guess you like

Origin www.cnblogs.com/jiqing9006/p/12083710.html