1:运行nginx时的错误

./configure: error: the HTTP rewrite module requires the PCRE library.

解决:

[root@svr110 nginx-1.2.0]# rpm -qa | grep -i pcre

pcre-7.8-6.el6.x86_64

[root@svr110 nginx-1.2.0]# yum -y install pcre-devel

2:./configure: error: SSL modules require the OpenSSL library.

解决:

[root@svr110 nginx-1.2.0]# rpm -qa | grep -i openssl

openssl-1.0.0-27.el6.x86_64

pyOpenSSL-0.10-2.el6.x86_64

[root@svr110 nginx-1.2.0]# yum -y install openssl-devel

3:运行mysql时的错误

remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu

解决:

[root@svr110 mysql-5.5.13]# yum -y install ncurses-devel

[root@svr110 mysql-5.5.13]# rm -rf CMakeCache.txt

4:运行php时错误

configure: error: xml2-config not found. Please check your libxml2 installation

解决:

[root@svr110 php-5.4.9]# yum -y install libxml2-devel

configure: error: Please reinstall the libcurl distribution -

解决:

[root@svr110 php-5.4.9]# rpm -qa | grep -i libcurl

libcurl-7.19.7-35.el6.x86_64

[root@svr110 php-5.4.9]# yum -y install libcurl-devel

configure: error: jpeglib.h not found

解决:

[root@svr110 php-5.4.9]# yum -y install *jpeg*

configure: error: png.h not found.

解决:

[root@svr110 php-5.4.9]# yum -y install *png*

configure: error: freetype.h not found.

解决:

[root@svr110 php-5.4.9]# yum -y install *freetype*

configure: error: Cannot find ldap.h

解决:

[root@svr110 php-5.4.9]# yum -y install *ldap*

configure: error: Cannot find ldap libraries in /usr/lib

解决:

ln -sv /usr/local/lib/libmcrypt*     /usr/lib/

ln -sv /usr/local/lib/libmhash.*    /usr/lib/

ln -sv /usr/local/lib/libiconv.*    /usr/lib/

[root@svr5 Desktop]#ldconfig

[root@svr110 php-5.4.9]# yum -y install *ldap*.i686

如果还提示ldap错误

cp -frp /usr/lib64/libldap* /usr/lib/

mysql启动错误

如果mysql如果起不来,执行

chown -R mysql:mysql /usr/local/mysql

/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &

进入/usr/local/mysql/data/目录删除ib_logfile0和ib_logfile1文件

lnmp搭建的常见错误的更多相关文章

  1. Mongodb 集群搭建以及常见错误

    Mongodb 集群搭建以及常见错误 1 关于Replica Sets +Sharding(主从复制加分片)搭建,不这详细去说,网上有很多,大部分的例子就三台服务器之间做主从复制,分2个shard,架 ...

  2. LNMP环境magento常见错误

    一.安装报404错误 git clone 下最新代码,跳转到index/install 安装时出现404错误 需要把伪静态规则加到nginx配置文件中: # # The default server ...

  3. Mongodb 集群搭建以及常见错误(不分块,分片,以及加验证)

    1 关于Replica Sets +Sharding(主从复制加分片)搭建,不这详细去说,网上有很多,大部分的例子就三台服务器之间做主从复制,分2个shard,架构图如下 mongodb节点 分别为 ...

  4. (通用)深度学习环境搭建:tensorflow安装教程及常见错误解决

    区别于其他入门教程的"手把手式",本文更强调"因"而非"果".我之所以加上"通用"字样,是因为在你了解了这个开发环境之后 ...

  5. Ubuntu 搭建svn服务器 ,以及常见错误解决方案

    一.安装命令: 1)以root身份登录.执行:sudo su -命令 2)执行安装命令:apt-get install subversion   二.创建项目目录 1)mkdir  /home/svn ...

  6. iOS-cocoapods安装与使用以及常见错误

    前言 CocoaPods是一个负责管理iOS项目中第三方开源代码的工具. 二.安装由于网上的教程基本都大同小异,但细节之处还不是很完善,所以借机会在这里补充下:注:要使用CocoaPods,那就要下载 ...

  7. postfix 邮箱设置及常见错误

    postfix 邮箱设置及常见错误 1.如果装了sendmail的话,先卸载了. yum remove sendmail 2.安装 Postfix yum install postfix 3.更改默认 ...

  8. hadoop常见错误总结三

    问题导读:1.... could only be replicated to 0 nodes, instead of 1 ...可能的原因是什么?2.Error: java.lang.NullPoin ...

  9. 日常工作问题解决:配置NTP服务器以及一些常见错误解决

    1.配置NTP服务端 环境:redhat 6.5 服务器主机名 ip地址 说明 server 192.168.57.20 NTP服务端 client 192.168.57.21 NTP客户端 搭建说明 ...

随机推荐

  1. oracle 用户创建这个挺靠谱

    CREATE TEMPORARY TABLESPACE test_tempTEMPFILE 'C:\oracle\product\10.1.0\oradata\orcl\test_temp01.dbf ...

  2. 关闭键盘导致tableView:didSelectRowAtIndexPath:失效解决办法

    今天公司的小兄弟问了tableView:didSelectRowAtIndexPath:不能执行的问题. 从经验看觉得可能是控制器没有成为tableView的代理所致.但代码中已经添加了代码 _tab ...

  3. 使用eclipse搭建maven项目

    一.安装插件 如果安装的eclipse 4.0及以上的版本或是MyEclipse就不用安装插件,可以在工具栏->windows->preferences里面搜索maven,看是否有搜索结果 ...

  4. git中.gitignore配置项不起作用-解决办法

    在某个git项目中,.gitignore忽略了*.iml,但是git status命令依然列了出来,最后发现是由于git的缓存造成的. git rm -r --cached . git add . g ...

  5. 一款公用的CSS+DIV弹窗

    为了方便以后自己使用! <html> <head> <style> .winmainshow { background: #fff; padding: 10px 5 ...

  6. iOS 渐变进度条

    #import <UIKit/UIKit.h> @interface JianBianView : UIView //为了增加一个表示进度条的进行,可们可以使用mask属性来屏蔽一部分 @ ...

  7. Linux中的find(-atime、-ctime、-mtime)指令分析

    本篇主要对find -atime(-ctime..mtime)指令的用法.参数.运行情况进行分析 用法: find . {-atime/-ctime/-mtime/-amin/-cmin/-mmin} ...

  8. 【LeetCode】Roman to Integer & Integer to Roman

    Roman to Integer Given a roman numeral, convert it to an integer. Input is guaranteed to be within t ...

  9. [.NET] CErrStack 方便地管理错误或异常

    Option Explicit On Option Strict On Imports System.Reflection Imports System.Diagnostics Public Stru ...

  10. CGAL4.1在VS2010上配置

    配这个环境花了好几天的时间,虽然网上有很多相关的步骤,但是还是出了不少小错误,具体的步骤有很多,我就只记下我遇到的问题,我用的是CGAL4.1 boost1.51 CMake2.8 Qt4.8.2: ...