lnmp新增支援pathinfo

2021-08-21 16:45:59 字數 705 閱讀 6142

本文**於

我是用第二種方法解決問題的。

專案裝了lnmp包,發現不支援pathinfo, 上去檢視,沒有開啟,在nginx的**配置加上pathinfo的支援**,

重啟後還是不行。檢視埠情況,發現php-fpm並沒有監聽任何埠,於是看php-fpm.conf,其中的

listen=/tmp/php-cgi.sock

於是改為

listem=9000

重啟php-fpm

在nginx的**配置中也把 include enable-php.conf 注釋掉,因其內是指向到tmp/php-cgi.sock,而不是用埠。

再重啟nginx

終於支援pathinfo了。

nginx支援pathinfo的**為:

location ~ .*\.php

fastcgi_param script_filename $document_root$real_script_name;

fastcgi_param script_name $real_script_name;

fastcgi_param path_info $path_info;

}另一種是不改埠的

location ~ [^/]\.php(/|$)

兩種方法都要把

include enable-php.conf 

這行刪掉或注釋掉,因為重複了。

lnmp配置支援redis

第二步 按照命令列,一步一步執行就可以了。root localhost wget root localhost tar xzf 2.2.8.tar.gz 進入phpredis的擴充套件 root localhost cd phpredis 2.2.8 檢視phpredis擴充套件 的目錄在 root...

新增 auto vector 支援

對 節點 v4f32 sint to fp v4i16 select的支援 去掉 for anquaxieyi 方法一 def pat v4f32 sint to fp v4i16 xdregs src vitof32 s32 xqn xqn vlunpk s16l xqn xdn xdregs s...

DLL 新增MFC 支援

給你的專案新增dllmodul.cpp檔案,該檔案的內容如下 include stdafx.h ifdef debug undef this file static char this file file endif define new debug new global data the foll...