当前位置:网站首页>PHP image making
PHP image making
2022-06-22 21:18:00 【afterlife_ union】
Now container words are becoming more and more popular , Here is a summary of some production php Notes on mirroring
One 、supervisor php-fpm Specify the location of the configuration file in the startup command
supervisor php-fpm The startup command specifies php.ini and php-fpm.conf The location of the configuration file , In this way, you can mount the corresponding configuration , You can adjust the parameters according to the actual needs of the business , Examples are as follows
[program:php-fpm]
command=/usr/sbin/php-fpm -c /php/ini/path/php.ini -y /php-fpm/conf/path/php-fpm.conf
user=root
stdout_logfile=/log_dir/logs/php/%(program_name)s_supervisor_access.log
stderr_logfile=/log_dir/logs/php/%(program_name)s_supervisor_err.log
priority=90
autostart=true
autorestart=true
startsecs=3
Two 、 compile php Increase when --with-config-file-scan-dir Parameters
php The configuration file of is mainly in php.ini in ,php Also from the with-config-file-scan-dir The directory specified by the parameter is read “.ini" The end file is used as an additional configuration parameter , In this way, some extended configuration files can be stored in their own ”.ini" In profile , Independent maintenance , For example, set the value to /php/ini/path/conf.d, Then mount the extension related configuration to /php/ini/path/conf.d This directory , You can adjust the configuration of the corresponding extension .
3、 ... and 、 Delete the old version of php, Soft link to the newly compiled higher version php
Some images have older versions installed by default php, such as php 5.4, in other words /usr/bin/ In the catalog phar、phar.phar、 php 、php-cgi、 phpize These orders 、 The files are all old versions , If you don't notice , Use it directly php The command is an old version of the php, This may cause problems in program operation , Cause unnecessary trouble , So the old version should be used when making the image php Related commands 、 file 、 Delete all configurations , And build soft links , Point to a newer version of the new compilation php, Order sample
# Delete default The old version php Related commands 、 To configure
cd /usr/bin/ && rm -f phar phar.phar php php-cgi phpize
rm -rf /etc/php.ini /etc/php.d
# Create soft link , Point to a later version php
# ln -s Source file Target file
ln -s /php/path/bin/php /usr/bin/php
ln -s /php/path/bin/phpize /usr/bin/phpize
ln -s /php/path/bin/php-config /usr/bin/php-config
边栏推荐
猜你喜欢
随机推荐
≥server2012R2系统,禁用系统自带的部分计划任务
R语言midwest数据集可视化
【876. 链表的中间结点】
扩展Ribbon支持Nacos权重的三种方式
R 语言USArrests 数据集可视化
Software testing - Test Case Design & detailed explanation of test classification
Apple corefoundation source code
R 语言 wine 数据集可视化
Moke 5. Service discovery -nacos
【142. 环形链表 II】
苹果GCD源代码
Resolved: can there be multiple auto incrementing columns in a table
Cryptography series: certificate format representation of PKI X.509
How to use feign to construct multi parameter requests
88-被广为流传的参数优化, 是蜜糖还是毒药?
[138. copy linked list with random pointer]
NBA季后赛对阵图
Résolu: peut - on avoir plus d'une colonne auto - incrémentale dans un tableau
【CM11 链表分割】
[redis] three new data types
![[876. intermediate node of linked list]](/img/c8/463d150bc6c88cfb57e94795957b0e.png)
![[redis]redis6 transaction operations](/img/50/639867a2fcb92082ea262a8a19bb68.png)




![[the penultimate node in the linked list]](/img/b2/be3b0611981dd0248b3526e8958386.png)
