프로젝트 YAF를 시작합니다
설치 패키지 디렉토리를 입력
cd /usr/local/yaf-yaf-3.0.9/tools/cg
프로젝트를 생성
sudo ./yaf_cg 项目名
수행 한 결과, 출력 폴더의 폴더를 생성 할 것이다.
이 프로젝트는 그렇게 할 수 있습니다 다음 구성 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;
}
수정 호스트
sudo vim /etc/hosts