mgo*_*ven 20
从联机帮助页:
Run Code Online (Sandbox Code Playgroud)--test -t Test FPM configuration file and exit If called twice (-tt), the configuration is dumped before exiting.
php5-fpm -t
如果配置有效,则应以代码 0 退出,否则应以非零退出代码退出。然后你的脚本应该做这样的事情:
if ! php5-fpm -t; then
echo "php5-fpm configuration is invalid"
exit 1
fi
Run Code Online (Sandbox Code Playgroud)
但是,我对我的配置做了一些更改,但没有被认为是无效的,所以 YMMV。
归档时间: |
|
查看次数: |
22373 次 |
最近记录: |