I'm using docker and my container is build over php:5.6-fpm image from php official repo. Is it somehow possible to restart/reload php-fpm from inside a container?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Docker task in Azure devops won't accept "$(pw
- Can php detect if javascript is on or not?
You don't have to go inside the container
on your host
ps -ef|grep fpm // find master pid kill -USR2 <master_pid>
php-fpm
is a process manager which supports the USER2 signal, which is used to reload the config file.From inside the container:
Outside:
Complete example:
You can also just restart the container..