PHPfpm/Nginx


Nginx PHPfpm

phpfpm配置文件:
termux-chroot
vim /etc/php-fpm.d/www.conf

nginx配置文件:

在proot环境下, 然后编辑配置文件nginx.conf

vim /etc/nginx/nginx.conf

nginx 根目录:

root html; #根目录,相对于安装目录
index index.html index.htm; #默认主页

Nginx 配置文件:

worker_processes 1;
events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {

    listen       8080;
    server_name  localhost;
    root   /data/data/com.termux/files/usr/share/nginx/html;
    index  index.html index.htm;


    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /data/data/com.termux/files/usr/share/nginx/html;
    }


    location ~ \.php$ {
        root           html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html$fastcgi_script_name;
        include        fastcgi_params;
    }
}

}


Author: DaMing
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source DaMing !
 Previous
Git/Github/Ssh/Hexo Git/Github/Ssh/Hexo
Git/Github/Ssh/Hexo 查缺补漏: https://segmentfault.com/a/1190000017986794?utm_medium=referral&utm_source=tuicool 本地克隆项目的
2020-04-02 DaMing
Next 
SSH相关操作 SSH相关操作
SSH相关操作 生成ssh密匙:ssh-keygen -t rsa ssh数据地址:~/.ssh 公匙 :~/.ssh/id_rsa_pub 私匙:~/.ssh/id_rsa_public 为GIT生成密匙:Git方:git confi
2020-04-02 DaMing
  TOC