没有所谓的捷径
一切都是时间最平凡的累积

debian环境安装的宝塔面板无法安装redis

站长整理辛苦,觉得有用评论点个赞吧,若转载请注明出处。如果文章内容失效,请反馈给本站,谢谢!

有一条提示信息warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory

perl: warning: Setting locale failed. 
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-rc.d: error: unable to read /etc/init.d/redis
redis.sh: line 414: 1: command not found

1.查看当前系统的本地化设置信息

[root@master01 ~]# localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: us
       X11 Model: pc105
[root@master01 ~]# 

2.查看系统当前语言

[root@master01 ~]# echo $LANG
C.UTF-8
[root@master01 ~]# export LANG=en_US.UTF-8
[root@master01 ~]# vim /etc/default/locale
LANG=en_US.UTF-8
LC_TIME=en_DK.UTF-8
[root@master01 ~]# 

3.查看locale库是否存在

如果存在/usr/lib/locale/locale-archive这个文件,先备份再 删除。

[root@master01 ~]# ll /usr/lib/locale/locale-archive
ls: cannot access '/usr/lib/locale/locale-archive': No such file or directory
[root@master01 ~]# 

4.重新生成中文的locate文件

[root@master01 ~]# localedef -f UTF-8 -i en_US en_US.UTF-8

如果执行localedef -f UTF-8 -i en_US en_US.UTF-8命令报以下错误:
[root@master01 ~]# localedef -f UTF-8 -i en_US en_US.UTF-8
failed to set locale!
[error] character map file `UTF-8' not found: No such file or directory
failed to set locale!
[error] cannot read character map directory /usr/share/i18n/charmaps: No such file or directory

安装语言包:
[root@master01 ~]# sudo apt -y install language-pack-en

语言问题解决了,安装的时候又出现了编译问题

Fatal error: can't create fpconv_dtoa.o: No such file or directory

出现了编译错误。

解决办法:

在/www/server/panel/install/目录下,编辑redis.sh文件,找到脚本内make编译这段,大概在383行,在make后面添加OPENSSL_PREFIX=/usr/local/openssl

然后再到终端命令行下执行命令安装bash /www/server/panel/install/redis.sh install 7.2(不要在面板内软件商店内安装)

 

» 站长码字辛苦,有用点个赞吧,也可以打个
» 若转载请保留本文转自:豫章小站 » 《debian环境安装的宝塔面板无法安装redis》
» 本文链接地址:https://blog.mydns.vip/4920.html
» 如果喜欢可以: 点此订阅本站 有需要帮助,可以联系小站
赞(0) 打赏
声明:本站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,若涉及侵权请及时告知,将会在第一时间删除,联系邮箱:contact@mydns.vip。文章观点不代表本站立场。本站原创内容未经允许不得转载,或转载时需注明出处:豫章小站 » debian环境安装的宝塔面板无法安装redis
分享到: 更多 (0)

评论 抢沙发


  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

智慧源于勤奋,伟大出自平凡

没有所谓的捷径,一切都是时间最平凡的累积,今天所做的努力都是在为明天积蓄力量

联系我们赞助我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏