广告
今天在宝塔安装redis后发现怎么都无法启动,网站找了几种方法都没解决!
偶然找到这种方法解决好了,
方法如下:
在SSH上输入如下命令:
yum install make cmake gcc gcc-c++ gcc-g77 flex bison file libtool libtool-libs autoconf kernel-devel patch wget libjpeg libjpeg-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel libxml2 libxml2-devel zlib zlib-devel glib2 glib2-devel tar bzip2 bzip2-devel libevent libevent-devel ncurses ncurses-devel curl curl-devel libcurl libcurl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel vim-minimal gettext gettext-devel ncurses-devel gmp-devel pspell-devel libcap diffutils ca-certificates net-tools libc-client-devel psmisc libXpm-devel git-core c-ares-devel libicu-devel libxslt libxslt-devel zip unzip glibc.i686 libstdc++.so.6 cairo-devel bison-devel ncurses-devel libaio-devel perl perl-devel perl-Data-Dumper lsof pcre pcre-devel vixie-cron crontabs expat-devel readline-devel -y
回车,然后系统进行安装一些配套环境,安装完成后,再卸载redis,再重装即可。成功启动redis,如下
究其原因,估计是redis是编译安装,有些配套的软件没有安装完成,这个时候将一些配套的软件安装完成,redis功能恢复正常。