Home > Backend Development > PHP Tutorial > make - 编译 PHP 后产生的这些文件是干嘛的 ?

make - 编译 PHP 后产生的这些文件是干嘛的 ?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:33:54
Original
1570 people have browsed it

[root@localhost ~]# ls /usr/src/php-5.6.9/sapi/fpm/

<code>config.m4       init.d.php-fpm.in  php-fpm.8        php-fpm.service     tests
CREDITS         LICENSE            php-fpm.8.in     php-fpm.service.in
fpm             Makefile.frag      php-fpm.conf     status.html
init.d.php-fpm  php-fpm            php-fpm.conf.in  status.html.in
</code>
Copy after login
Copy after login

[root@localhost ~]#

编译 PHP 后产生的这些文件是干嘛的 , 是不是可以 使用 (CentOS7)

systemctl start php-fpm

或者

service php-fpm start

回复内容:

[root@localhost ~]# ls /usr/src/php-5.6.9/sapi/fpm/

<code>config.m4       init.d.php-fpm.in  php-fpm.8        php-fpm.service     tests
CREDITS         LICENSE            php-fpm.8.in     php-fpm.service.in
fpm             Makefile.frag      php-fpm.conf     status.html
init.d.php-fpm  php-fpm            php-fpm.conf.in  status.html.in
</code>
Copy after login
Copy after login

[root@localhost ~]#

编译 PHP 后产生的这些文件是干嘛的 , 是不是可以 使用 (CentOS7)

systemctl start php-fpm

或者

service php-fpm start

php-fpm 是生成的二进制程序。
php-fpm.conf 是php-fpm的配置。
init.d.php-fpm 是传统的init服务脚本。
php-fpm.service 则是systemd的服务脚本。
status.html 用于查看php-fpm的运行时信息。

传统的init服务:
cp init.d.php-fpm /etc/rc.d/init.d/php-fpm
启动服务:
sudo service php-fpm start
开机自启动:
chkconfig php-fpm on

Redhat 7 引入了systemd服务管理:
cp php-fpm.service /usr/lib/systemd/system
启动服务:
sudo systemctl start php-fpm.service
开机自启动:
sudo systemctl enable php-fpm.service

php-fpm.conf 里配置 pm.status_path = /status
nginx.conf 里配置:
location /status {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
}
status.html里填入:
http://www.example.com/status?json&full
就可以看到:
make - 编译 PHP 后产生的这些文件是干嘛的 ?

<code>make install
</code>
Copy after login

以后才可以用吧,像php-fpm是编译生成的文件。php-fpm.conf是配置文件,正常情况下执行install的时候,会把文件复制到相应的目录。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template