当前位置:网站首页>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
边栏推荐
- The road to systematic construction of geek planet business monitoring and alarm system
- Install MySQL in ECS (version 2022)
- R 语言 UniversalBank.csv“ 数据分析
- 【876. 链表的中间结点】
- Several common MySQL commands
- NFT,只可远观不可亵玩焉
- [redis] profile
- Moke 5. Service discovery -nacos
- R language organdata dataset visualization
- Cryptography series: certificate format representation of PKI X.509
猜你喜欢
![[the penultimate node in the linked list]](/img/b2/be3b0611981dd0248b3526e8958386.png)
[the penultimate node in the linked list]

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

2022年A特种设备相关管理(电梯)考题及模拟考试

R语言penguins数据集可视化

Visualization of R language nutrient dataset

2022危险化学品经营单位主要负责人上岗证题库及模拟考试

Ribbon load balancing

R language usarrests dataset visualization
![[redis]配置文件](/img/1c/05c06d59c9efb5983f877822db333c.png)
[redis]配置文件

超快变形金刚 | 用Res2Net思想和动态kernel-size再设计 ViT,超越MobileViT
随机推荐
【142. 环形链表 II】
R语言AirPassengers数据集可视化
Flutter System Architecture(Flutter系统架构图)
【876. 链表的中间结点】
程序员必看的学习网站
Agricultural futures account opening
53 page intelligent campus intelligent system design scheme (download attached)
Xunrui CMS custom data interface PHP executable code
EasyClick 固定状态日志窗口
PlainSelect.getGroupBy()Lnet/sf/jsqlparser/statement/select/GroupByElement;
89-oracle SQL写法与优化器缺陷一例
View Apple product warranty status
密码学系列之:PKI的证书格式表示X.509
Remote access to raspberry pie via the Internet.
redis学习笔记
Learning websites that programmers must see
pytorch的模型保存加载和继续训练
Install MySQL in ECS (version 2022)
慕课5、服务发现-Nacos
Several common MySQL commands