2025年2月28日
php-mbstring 是 Redhat 服务器可选包的一部分。如果您当前有订阅,您所需要做的就是使用以下命令启用此存储库:
[root@rhel7 ~]# subscription-manager repos --enable=rhel-7-server-optional-rpms
并使用 yum 安装 php-mbstring。如果您当前没有 Redhat 订阅,您可以直接从 IUS 项目存储库安装 php-mbstring:
[root@rhel7 ~]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-13.ius.el7.noarch.rpm
[root@rhel7 ~]# wget http://dl.fedoraproject.org/…