寶塔nginx 安裝 Fancyindex


首先下載到本地

git clone https://github.com/aperezdc/ngx-fancyindex

具體網址為:

https://www.nginx.com/resources/wiki/modules/fancy_index/

然后

先卸載Nginx,然后安裝,安裝選擇編譯安裝,添加自定義模塊

 

--add-module=/www/server/nginx/src/ngx-fancyindex

具體路徑看本地

其它模塊的安裝方法相同,記住,如

--add-module=/www/server/nginx_plug_in/ngx_http_ggle_filter_module

切記 ./configure  --add-module=/www/server/nginx_plug_in/ngx_http_ggle_filter_module 是不對的

./configure 在寶塔里面是多余的,編譯會出問題,不要再寫

添加多個模塊,也可以拆分開編譯

 

然后等待編譯,

然后:成功~

然后,開啟:

location / {
  fancyindex on;              # Enable fancy indexes.
  fancyindex_exact_size off;  # Output human-readable file sizes.
}

 關閉綁定:

②或者在SSH中運行下面命令,以解除綁定手機號。

sed -i “s|if (bind_user == ‘True’) {|if (bind_user == ‘REMOVED’) {|g” /www/server/panel/BTPanel/static/js/index.js

方法2、刪除bind_path.pl文件

如果使用的是寶塔Windows面板,我們可選擇刪除BtSoft\panel\data\bind_path.pl文件即可解除綁定手機號。

寶塔Linux面板的話,可在SSH端運行如下命令:

rm -rf /www/server/panel/data/bind.pl

以上是關於寶塔面板登錄時解除和關閉綁定手機號的兩種方法介紹,

參考:https://www.idcspy.com/36469.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM