您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

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

2024/4/21 4:06:50发布29次查看
[root@localhost ~]# ls /usr/src/php-5.6.9/sapi/fpm/
config.m4 init.d.php-fpm.in php-fpm.8 php-fpm.service testscredits license php-fpm.8.in php-fpm.service.infpm makefile.frag php-fpm.conf status.htmlinit.d.php-fpm php-fpm php-fpm.conf.in status.html.in

[root@localhost ~]#
编译 php 后产生的这些文件是干嘛的 , 是不是可以 使用 (centos7)
systemctl start php-fpm
或者
service php-fpm start
回复内容: [root@localhost ~]# ls /usr/src/php-5.6.9/sapi/fpm/
config.m4 init.d.php-fpm.in php-fpm.8 php-fpm.service testscredits license php-fpm.8.in php-fpm.service.infpm makefile.frag php-fpm.conf status.htmlinit.d.php-fpm php-fpm php-fpm.conf.in status.html.in

[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 install
以后才可以用吧,像php-fpm是编译生成的文件。php-fpm.conf是配置文件,正常情况下执行install的时候,会把文件复制到相应的目录。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product