张宴Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)故障解决方案...
进来准备研究Nginx,很早之前就听说张宴的大名。所以从网上baidu到张宴的blog地址,按照http://blog.s135.com/nginx_php_v6/文章一步步搭建,其中遇到很多问题,特此专门针对目前我的环境将遇到的问题一一整理,方便其他童靴学习。因为看到张宴很少回复他的blog了,估计太忙的缘故吧。这种事情就我来代劳了。
首先我的环境是Cent0S5.5 64位的
[root@host1 ~]# cat /etc/redhat-release
CentOS release 6.2 (Final)
[root@host1 ~]# uname -a
Linux host1.linuxbrother.com 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
1、# /data0/mysql/3306/mysql start 启动MySQL报错
/data0/mysql/3306/mysql: line 30: unexpected EOF while looking for matching `)'
/data0/mysql/3306/mysql: line 44: syntax error: unexpected end of file
是因为脚本里面&@124;是|,可能输转码问题导致,所以将文件中的&@124;全部替换成|
vim /data0/mysql/3306/mysql
......
kill -9 $(ps -ef | grep 'bin/mysqld_safe' | grep ${mysql_port} |awk '{printf $2}')
kill -9 $(ps -ef |grep 'libexec/mysqld' | grep ${mysql_port} | awk '{printf $2}')
......
printf "Usage: /data0/mysql/${mysql_port}/mysql {start|stop|restart|kill}\n"
2、# ./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --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-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
报如下错误
configure: error: libjpeg.(a|so) not found.
configure: error: libpng.(a|so) not found.
configure: error: Cannot find ldap libraries in /usr/lib.
解决办法:
cp -frp /usr/lib64/libldap* /usr/lib/
cp -frp /usr/lib64/libjpeg.* /usr/lib/
cp -frp /usr/lib64/libpng.* /usr/lib/
重新./configure OK
3、安装ImageMagick-6.5.1-2报错
BEGIN failed--compilation aborted at Makefile.PL line 24.
make[1]: *** [PerlMagick/Makefile] Error 2
make[1]: Leaving directory `/usr/src/ImageMagick-6.5.1-2'
make: *** [all] Error 2
# yum -y install perl-CPAN
我在按照文档操作中就遇到这几个问题,谢谢张宴提供那么好的资料让我们学习。
转载于:https://blog.51cto.com/crazylinux/912939
张宴Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)故障解决方案...相关推荐
- Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)[转]
Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)[原创] 大 | 中 | 小 [ 2010-3-4 20:10 | by 张宴 ...
- Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)
[文章作者:张宴 本文版本:v6.3 最后修改: 2010.07.26 转载请注明原文链接: http://blog.s135.com/nginx_php_v6/] 原文地址:http://blog. ...
- Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器
[文章作者:张宴 本文版本:v6.3 最后修改: 2010.07.26 转载请注明原文链接: http://blog.s135.com/nginx_php_v6/ ] 前言:本文是我撰写的关于搭建&q ...
- [转]Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)
转载自: http://blog.s135.com/nginx_php_v6/ [文章作者:张宴 本文版本:v6.3 最后修改:2010.07.26 转载请注明原文链接:http://blog.s13 ...
- Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版
[文章作者:张宴 本文版本:v6.3 最后修改: 2010.07.26 转载请注明原文链接: http://blog.s135.com/nginx_php_v6/] 前言:本文是我撰写的关于搭建&qu ...
- Nginx 0.7.x + PHP 5.2.8(FastCGI)搭建胜过Apache十倍的Web服务器(第4版)
[文章作者:张宴 本文版本:v4.14 最后修改: 2009.04.14 转载请注明原文链接: http://blog.s135.com/nginx_php_v4/ ] 前言:本文是我撰写的关于搭建& ...
- Nginx+PHP(FastCGI)搭建胜过Apache十倍的Web服务器
前言:本文是我撰写的关于搭建"Nginx + PHP(FastCGI)"Web服务器的第6篇文章.本系列文章作为国内最早详细介绍 Nginx + PHP 安装.配置.使用的资料之一 ...
- mysql安装 张宴_张宴Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)故障解决方案...
进来准备研究Nginx,很早之前就听说张宴的大名.所以从网上baidu到张宴的blog地址,按照http://blog.s135.com/nginx_php_v6/文章一步步搭建,其中遇到很多问题,特 ...
- Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)[原创]
原文地址:http://blog.s135.com/nginx_php_v6/ 转载于:https://www.cnblogs.com/in-loading/archive/2012/03/09/23 ...
- Nginx 0.5.33 + PHP 5.2.5(FastCGI)搭建胜过Apache 10倍的Web服务器(第2版)[原创]
Nginx 0.5.33 + PHP 5.2.5(FastCGI)搭建胜过Apache 10倍的Web服务器(第2版)[原创] 大 | 中 | 小 [ 2007-12-3 18:31 | by 张宴 ...
最新文章
- 谷歌应用引擎新增PHP支持
- 印度交通部或禁止无人驾驶汽车进入本土市场
- 在windows上解压linux文件夹,Win10如何使用命令行来解压缩文件?
- react-native(五)生成App
- Eclipse中导入外部jar包
- 使用replace pioneer批量修改文件名
- Angular页面发生更新时,更新如何从view层传递到model层
- Syslistview32+Systreeview32系统操作动态链接库和实际的商业化
- mysql字符串语法_MySQL语法模板 函数:字符串
- 年夜饭之 --- 蒜蓉粉丝蒸扇贝
- 计算机基础无纸化考试题库,计算机基础考试题库及答案
- 2020年数学建模国赛E题题目和解题思路
- Mac使用手册:如何检查 Mac 或 iOS 设备仍在保修范围内
- CSS设置background背景透明
- 深化高校人才培养体制机制改革
- android 根据宽度调整字体大小,android 字体大小 根据分辨率 自动调整
- 星之轨迹 服务器维护,英雄传说星之轨迹结束运营公告是什么_内容介绍_3DM页游...
- 数字逻辑综合工具-DC-04 ——怎样增加时序约束(Timing Constraints)
- JVM线程本地分配缓冲区(Thread Local Allocation Buffer)TLAB详解
- C# : 软件加密机制以及如何防止反编译