VPS侦探论坛

 找回密码
 注册
查看: 4691|回复: 1

卸载后mysql后一直502

[复制链接]
发表于 2013-1-28 15:48:18 | 显示全部楼层 |阅读模式

服务器不需要MYSQL。
使用
/usr/local/mysql
/etc/init.d/mysql
/etc/my.cnf
卸载后,再次启动,出现这个问题了。。。

[root@root ~]# /root/lnmp start
=========================================================================
Manager for LNMP V0.9  ,  Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Starting LNMP...
Nginx start successfully!
Starting php_fpm /usr/local/php/bin/php-cgi: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
failed
PHP-FPM start successfully!
/etc/init.d/mysql: line 260: my_print_defaults: command not found
/etc/init.d/mysql: line 263: my_print_defaults: command not found
/etc/init.d/mysql: line 292: cd: /usr/local/mysql: No such file or directory
Starting MySQL ERROR! Couldn't find MySQL manager (/usr/local/mysql/bin/mysqlmanager) or server (/usr/local/mysql/bin/mysqld_safe)
MySQL start successfully!

然后就一直出现502。。。
运行
/etc/init.d/php-fpm restart出现


[root@root ~]# /etc/init.d/php-fpm restart

Shutting down php_fpm warning, no pid file found - php-fpm is not running ?
Starting php_fpm /usr/local/php/bin/php-cgi: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
failed
运行
/etc/init.d/php-fpm start

[root@root ~]# /etc/init.d/php-fpm start
Starting php_fpm /usr/local/php/bin/php-cgi: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
failed


军哥,怎么回事???

[ 本帖最后由 落雪长风 于 2013-1-28 15:51 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-1-28 16:12:34 | 显示全部楼层


因为php编译时是编译上mysql扩展了的,所以,删掉mysql后会报错,而无法启动php-fpm

可以apt-get install libmysqlclient-dev后试试

建议如果不需要mysql,可以将mysql停掉,而不是直接删除
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 07:23 , Processed in 0.025760 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表