【文件属性】:
文件名称:php-clear-cache:从 Shell 清除 PHP FPM 缓存的脚本
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-07 10:50:46
Perl
php清除缓存
从 Shell 清除 PHP FPM 缓存的脚本。
Debian 软件包
您可以构建一个 debian 包:
debuild
安装
mkdir /usr/share/php-clear-cache
cp _php-clear-cache.php /usr/share/php-clear-cache/php-clear-cache.php
cp php-clear-cache /usr/bin/
用法
如果您有一个带有配置文件 ```/etc/php5/fpm/pool.d/ 的 PHP 池,您可以使用以下命令清除 apc/apcu 和/或操作码缓存:
php-clear-cache -p www
须藤
如果您的 PHP FPM 套接字对 Shell 用户没有读/写权限,您可以使用 sudo。
要求
珀尔
FCGI::Client ( )
【文件预览】:
php-clear-cache-master
----php-clear-cache(3KB)
----_php-clear-cache.php(449B)
----debian()
--------source()
--------compat(2B)
--------changelog(148B)
--------rules(264B)
--------control(657B)
--------copyright(1007B)
--------php-clear-cache.dirs(34B)
----README.md(652B)