当前位置:网站首页>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
边栏推荐
- 513. find the value in the lower left corner of the tree / Sword finger offer II 091 Paint the house
- Ribbon load balancing
- R language airpassengers dataset visualization
- 密码学系列之:PKI的证书格式表示X.509
- 程序员必看的学习网站
- 【138. 复制带随机指针的链表】
- ≥server2012R2系统,禁用系统自带的部分计划任务
- 79-不要看到有order by xxx desc就创建desc降序索引-文末有赠书福利
- [redis]发布与订阅
- Learning websites that programmers must see
猜你喜欢

Fluent system architecture

The road to systematic construction of geek planet business monitoring and alarm system
![[876. intermediate node of linked list]](/img/c8/463d150bc6c88cfb57e94795957b0e.png)
[876. intermediate node of linked list]
![[cm11 linked list splitting]](/img/66/6ac3f78db20ec7f177b88c88028dde.png)
[cm11 linked list splitting]

基于C语言开发工资管理系统 课程论文+源码及可执行exe文件

NFT,只可远观不可亵玩焉

R 语言USArrests 数据集可视化

Ultrafast transformers | redesign vit with res2net idea and dynamic kernel size, surpassing mobilevit

R language Midwest dataset visualization
![[142. circular linked list II]](/img/c1/f3a0b863286e9eeda0ae4021420912.png)
[142. circular linked list II]
随机推荐
慕课6、实现负载均衡-Ribbon
Win10 installation net3.5. docx
71-对2010年阿里一道Oracle DBA面试题目的分析
山东大学科技文献期末复习(个人速成向)
慕课5、服务发现-Nacos
性能测试(一)
2022 group programming TIANTI race L1
[palindrome structure of or36 linked list]
EasyClick 固定状态日志窗口
513. 找树左下角的值 / 剑指 Offer II 091. 粉刷房子
[21. merge two ordered linked lists]
pytorch的模型保存加载和继续训练
【OR36 链表的回文结构】
超快变形金刚 | 用Res2Net思想和动态kernel-size再设计 ViT,超越MobileViT
[redis]redis的持久化操作
79-不要看到有order by xxx desc就创建desc降序索引-文末有赠书福利
[redis]发布与订阅
R language usarrests dataset visualization
百家讲坛 武则天
[redis]Redis6的事务操作