lnmp搭建的常见错误

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文件

上一篇:MVC POST在ACTION上进行多个模型的数据绑定


下一篇:Linux安装Kafka