/usr/local/php-5.2.14/sbin/php-fpm start Starting php_fpm –fpm-config
1.将fpm打包放到php源代码中
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1
2.编译安装php 记得带上
–enable-cgi –enable-fpm 两个参数哦。
遇到以下问题: 问题1,接以下参数编译时, ./configure –prefix=/usr/local/php-5.2.14 –with-config-file-path=/usr/local/php-5.2.14/etc –enable-fastcgi –with-mysql –with-mysqli=/usr/lib/mysql/mysql_config -with-freetype-dir –with-jpeg-dir –with-png-dir –with-zlib –with-libxml-dir –enable-xml –with-curl –enable-force-cgi-redirect –enable-mbstring –with-mcrypt make
的时候出现以下错误, /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] 错误 1
解决方法: 去掉这个参数–with-mcrypt 或者 安装 mcrypt包。 这个包主要用于加密。
遇到问题: 问题2 /usr/local/php-5.2.14/sbin/php-fpm start
Starting php_fpm –fpm-config /usr/local/php-5.2.14/etc/php-fpm.conf
Error in argument 1, char 1: no argument for option -
Usage: php-cgi [-q] [-h] [-s] [-v] [-i] [-f <file>]
…
解决方案:
重装编译安装php
参数如下: 注意加红部分
./configure –prefix=/usr/local/php-5.2.14 –with-mysql –with-mysqli=/usr/lib/mysql/mysql_config –with-freetype-dir –with-jpeg-dir –with-png-dir -with-zlib –enable-xml –disable-rpath –enable-discard-path –enable-safe-mode –enable-bcmath –enable-shmop –enable-sysvsem –enable-inline-optimization –with-curl –with-curlwrappers –enable-mbregex –enable-fastcgi –enable-fpm –enable-force-cgi-redirect –enable-mbstring –with-gd –enable-gd-native-ttf –with-openssl –with-mhash –enable-pcntl –enable-sockets –with-ldap –with-ldap-sasl
转载于:https://www.cnblogs.com/si-ren/archive/2011/09/06/2447632.html
/usr/local/php-5.2.14/sbin/php-fpm start Starting php_fpm –fpm-config相关推荐
- 解决:which: no java in (/root/chengxu/maven/apache-maven-3.5.2/bin:/usr/local/sbin:/usr/local/bin:/usr
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 报错: which: no java in (/root/chengxu/maven/apache- ...
- Linux 下的/usr/bin /usr/sbin /usr/local/bin /usr/local/sbin区别
1./bin 是所有用户都可以访问并执行的可执行程序.包括超级用户及一般用户. 供所有用户(包括root用户和一般用户)使用的基本命令,主要有cat,chmod,date,cp,bash等等常用的命令 ...
- 3934:C 10 Aug 2022 00:14:04.239 # Fatal error, can‘t open config file ‘/usr/local/redis/./redis-conf
报错:3934:C 10 Aug 2022 00:14:04.239 # Fatal error, can't open config file '/usr/local/redis/./redis-c ...
- 启动nginx报错/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot ope
在启动nginx时报错 [zzq@weekend110 pcre-8.39]$ sudo /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx ...
- 解决arm64安装nodejs出现Error while loading /usr/local/sbin/node: No such file or directory问题
问题: 安装nodejs完成后,运行npm i 时,出现Error while loading /usr/local/sbin/node: No such file or directory错误提示 ...
- unbuntu/qcd:bash: /usr/local/sbin/qcd: 权限不够
安装以后虽然是root权限但是还是报错:bash: /usr/local/sbin/qcd: 权限不够 解决:把qcd拷贝到/usr/local/bin就可以了
- ubuntu 12.04 /sbin/ldconfig.real: /usr/local/lib/*.so.8 不是符号连接 解决办法
最近在ubuntu12.04下使用sudo apt-get install安装软件的时候最后总会报这种错误.建立硬连接即可解决: sudo ln -sf /usr/local/lib/libproto ...
- 出现nginx: [emerg] unknown directive “]“ in /usr/local/openresty/nginx/conf/nginx.conf:74
原因:fastdfs和nginx集成时,fastdfs-nginx-module安装错误 解决方法: ./nginx -s stop #停止nginx服务 cd /home/bigdata/nginx ...
- Nginx reload的时候出现的问题/usr/local/nginx/logs/nginx.pid
[root@Frankie-4th nginx]# /usr/local/nginx/sbin/nginx -s reload nginx: [error] invalid PID number &q ...
最新文章
- list表分区后续添加分区
- 框架 路由地址_Django框架的使用
- ABAP:FTP Using SAP Functions
- Electron中 提示:Uncaught ReferenceError: process is not defined
- WPF纯手工两步打造图片切割工具(二)
- 通过html直接显示txt内容_10分钟教你用Python爬取Baidu文库全格式内容
- (转)初次安装git配置用户名和邮箱
- 黑客利用智能灯泡窃取用户数据!
- 模仿豆丁、百度文库播放器
- php study 后门,phpStudy后门简要分析
- 计算机程序设计员( 国家职业标准三级),计算机程序设计员国家职业标准
- Acwing 1402. 星空之夜(搜索+哈希)
- USB3.0:VL817Q7-C0的LAYOUT指南(三)
- 接入网、承载网、核心网是什么,交换机路由器是什么、这个和网络的协议有什么关系呢?
- 从政府项目中总结出的B端产品账号权限管理
- 谷歌表格图表 横坐标 滚动_如何将图表从Google表格同步到文档或幻灯片
- 功能测试与抓包工具Fiddler(http与fiddler)
- 最近做项目的一些心得--移动端二维码
- 《软件工程》知识点复习总结
- 【Python数据分析基础-1】二元操作符(又全又清晰!)
热门文章
- Java成员变量和局部变量的区别
- JDBC连接mysql、创建表、操作数据、PreparedStatement防注入、sql语句返回值类型知识汇总
- Queue接口中add()与offer(),remove()与poll(),element()与peek()方法区别
- 基于 abp vNext 和 .NET Core 开发博客项目 - 定时任务最佳实战(一)
- python打开文件并读取2进制_在Python中,哪些文件可以读取为文本,哪些文件可以读取为二进制?...
- 1.2.6 错题整理(组成原理)
- 输入监听_更适合混音师的声卡 精准控制 多设备监听真的方便
- Git 之一 起源、安装、配置
- C/C++之大端模式和小端模式
- C/C++之 C++ String(字符串)