- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在运行 yum update
时遇到了一些问题,并执行了以下步骤使其正常工作:
sudo yum --enablerepo=remi,remi-php55 -y remove memcached
- 这只是删除了 memcached,它是给出错误的软件包之一sudo yum --enablerepo=remi,remi-php55 -y 删除 php-pear
- 这删除的内容超出了我的预期..Running Transaction Erasing : phpMyAdmin-4.0.4-1.el6.remi.noarch 1/28 waarschuwing: /etc/httpd/conf.d/phpMyAdmin.conf saved as /etc/httpd/conf.d/phpMyAdmin.conf.rpmsave Erasing : php-pecl-memcached-2.1.0-6.el6.remi.5.x86_64
2/28 Erasing : php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1.x86_64
3/28 Erasing : php-php-gettext-1.0.11-4.el6.remi.noarch
4/28 Erasing : php-pecl-mongo-1.4.1-1.el6.remi.1.x86_64
5/28 Erasing : php-pecl-sqlite-2.0.0-0.3.svn313074.el6.remi.5.x86_64
6/28 Erasing : php-pecl-memcache-3.0.8-1.el6.remi.1.x86_64
7/28 Erasing : php-pecl-apc-3.1.15-0.3.svn329913.el6.remi.1.x86_64
8/28 Erasing : php-5.5.0-1.el6.remi.x86_64
9/28 Erasing : php-gmp-5.5.0-1.el6.remi.x86_64
10/28 Erasing : php-mysqlnd-5.5.0-1.el6.remi.x86_64
11/28 Erasing : php-recode-5.5.0-1.el6.remi.x86_64
12/28 Erasing : php-tcpdf-dejavu-sans-fonts-6.0.049-1.el6.noarch 13/28 Erasing : php-tcpdf-6.0.049-1.el6.noarch
14/28 Erasing : php-bcmath-5.5.0-1.el6.remi.x86_64
15/28 Erasing : php-gd-5.5.0-1.el6.remi.x86_64
16/28 Erasing : php-mbstring-5.5.0-1.el6.remi.x86_64
17/28 Erasing : php-mcrypt-5.5.0-1.el6.remi.x86_64
18/28 Erasing : php-tidy-5.5.0-1.el6.remi.x86_64
19/28 Erasing : php-pgsql-5.5.0-1.el6.remi.x86_64
20/28 Erasing : php-pdo-5.5.0-1.el6.remi.x86_64
21/28 Erasing : php-intl-5.5.0-1.el6.remi.x86_64
22/28 Erasing : php-cli-5.5.0-1.el6.remi.x86_64
23/28 Erasing : php-process-5.5.0-1.el6.remi.x86_64
24/28 Erasing : php-xml-5.5.0-1.el6.remi.x86_64
25/28 Erasing : php-common-5.5.0-1.el6.remi.x86_64
26/28 waarschuwing: /etc/php.ini saved as /etc/php.ini.rpmsave
Erasing : php-pecl-jsonc-1.3.1-2.el6.remi.1.x86_64
27/28 Erasing : 1:php-pear-1.9.5-10.el6.remi.noarch
28/28 /usr/bin/pecl: regel 2: /usr/bin/php: Bestand of map bestaat niet /usr/bin/pecl: regel 2: exec: Kan /usr/bin/php niet uitvoeren: Bestand of map bestaat niet waarschuwing: /etc/pear.conf saved as /etc/pear.conf.rpmsave Verifying : php-bcmath-5.5.0-1.el6.remi.x86_64
1/28 Verifying : php-5.5.0-1.el6.remi.x86_64
2/28 Verifying : php-pecl-apc-3.1.15-0.3.svn329913.el6.remi.1.x86_64
3/28 Verifying : php-php-gettext-1.0.11-4.el6.remi.noarch
4/28 Verifying : php-mbstring-5.5.0-1.el6.remi.x86_64
5/28 Verifying : php-intl-5.5.0-1.el6.remi.x86_64
6/28 Verifying : phpMyAdmin-4.0.4-1.el6.remi.noarch
7/28 Verifying : php-tcpdf-6.0.049-1.el6.noarch
8/28 Verifying : php-tcpdf-dejavu-sans-fonts-6.0.049-1.el6.noarch 9/28 Verifying : php-recode-5.5.0-1.el6.remi.x86_64
10/28 Verifying : php-mcrypt-5.5.0-1.el6.remi.x86_64
11/28 Verifying : php-pecl-memcache-3.0.8-1.el6.remi.1.x86_64
12/28 Verifying : php-common-5.5.0-1.el6.remi.x86_64
13/28 Verifying : php-cli-5.5.0-1.el6.remi.x86_64
14/28 Verifying : 1:php-pear-1.9.5-10.el6.remi.noarch
15/28 Verifying : php-pecl-sqlite-2.0.0-0.3.svn313074.el6.remi.5.x86_64
16/28 Verifying : php-xml-5.5.0-1.el6.remi.x86_64
17/28 Verifying : php-pecl-mongo-1.4.1-1.el6.remi.1.x86_64
18/28 Verifying : php-tidy-5.5.0-1.el6.remi.x86_64
19/28 Verifying : php-pgsql-5.5.0-1.el6.remi.x86_64
20/28 Verifying : php-pdo-5.5.0-1.el6.remi.x86_64
21/28 Verifying : php-process-5.5.0-1.el6.remi.x86_64
22/28 Verifying : php-pecl-igbinary-1.1.2-0.5.git3b8ab7e.el6.remi.1.x86_64
23/28 Verifying : php-pecl-memcached-2.1.0-6.el6.remi.5.x86_64
24/28 Verifying : php-gd-5.5.0-1.el6.remi.x86_64
25/28 Verifying : php-pecl-jsonc-1.3.1-2.el6.remi.1.x86_64
26/28 Verifying : php-gmp-5.5.0-1.el6.remi.x86_64
27/28 Verifying : php-mysqlnd-5.5.0-1.el6.remi.x86_64
28/28Removed: php-pear.noarch 1:1.9.5-10.el6.remi
Dependency Removed: php.x86_64 0:5.5.0-1.el6.remi
php-bcmath.x86_64 0:5.5.0-1.el6.remi
php-cli.x86_64 0:5.5.0-1.el6.remi
php-common.x86_64 0:5.5.0-1.el6.remi
php-gd.x86_64 0:5.5.0-1.el6.remi
php-gmp.x86_64 0:5.5.0-1.el6.remi
php-intl.x86_64 0:5.5.0-1.el6.remi
php-mbstring.x86_64 0:5.5.0-1.el6.remi
php-mcrypt.x86_64 0:5.5.0-1.el6.remi
php-mysqlnd.x86_64 0:5.5.0-1.el6.remi
php-pdo.x86_64 0:5.5.0-1.el6.remi
php-pecl-apc.x86_64 0:3.1.15-0.3.svn329913.el6.remi.1
php-pecl-igbinary.x86_64 0:1.1.2-0.5.git3b8ab7e.el6.remi.1
php-pecl-jsonc.x86_64 0:1.3.1-2.el6.remi.1
php-pecl-memcache.x86_64 0:3.0.8-1.el6.remi.1
php-pecl-memcached.x86_64 0:2.1.0-6.el6.remi.5
php-pecl-mongo.x86_64 0:1.4.1-1.el6.remi.1
php-pecl-sqlite.x86_64 0:2.0.0-0.3.svn313074.el6.remi.5
php-pgsql.x86_64 0:5.5.0-1.el6.remi
php-php-gettext.noarch 0:1.0.11-4.el6.remi
php-process.x86_64 0:5.5.0-1.el6.remi
php-recode.x86_64 0:5.5.0-1.el6.remi
php-tcpdf.noarch 0:6.0.049-1.el6
php-tcpdf-dejavu-sans-fonts.noarch 0:6.0.049-1.el6
php-tidy.x86_64 0:5.5.0-1.el6.remi
php-xml.x86_64 0:5.5.0-1.el6.remi
phpMyAdmin.noarch 0:4.0.4-1.el6.remi
sudo yum --enablerepo=remi update
- 这仅更新 mysql,而不更新 apache 或 phpsudo yum --enablerepo=remi install php-pear
- 这再次安装了 php,但版本为 5.4.40Install 5 Package(s)
Total download size: 5.4 M Installed size: 21 M Is this ok [y/N]: y Downloading Packages: (1/5): php-cli-5.4.40-1.el6.remi.x86_64.rpm
| 3.9 MB 00:00 (2/5): php-common-5.4.40-1.el6.remi.x86_64.rpm | 959 kB 00:00 (3/5): php-pear-1.9.5-10.el6.remi.noarch.rpm
| 357 kB 00:00 (4/5): php-process-5.4.40-1.el6.remi.x86_64.rpm | 64 kB 00:00 (5/5): php-xml-5.4.40-1.el6.remi.x86_64.rpm
| 174 kB 00:00
sudo yum --enablerepo=remi,remi-php55 update
- 这将 php 更新到版本 5.5.24,这就是我想要的Dependency Installed: php-pecl-jsonc.x86_64 0:1.3.7-1.el6.remi.5.5
php-pecl-zip.x86_64 0:1.12.5-1.el6.remi.5.5Updated: php-cli.x86_64 0:5.5.24-1.el6.remi
php-common.x86_64 0:5.5.24-1.el6.remi php-process.x86_64 0:5.5.24-1.el6.remi php-xml.x86_64 0:5.5.24-1.el6.remi
然后我重新启动了 apache 和 mysql。
现在,当我访问该服务器上的任何(Wordpress)网站时,它们要么以纯文本形式显示 Apache 2 测试页,要么以纯文本形式显示 index.php 的内容(不执行 php)。
我在 Stackoverflow 上浏览了一下,发现了一些关于添加的内容:LoadModule php5_module 模块/libphp5.so
但不幸的是该文件不存在。找到 libphp5.so 给出/usr/lib64/httpd/modules/libphp5.so 但是LoadModule php5_module/usr/lib64/httpd/modules/libphp5.so重新启动 apache 时出错..
我认为我删除的 php 软件包比预期的要多,但我不确定缺少哪些软件包,应该重新安装。有人能指出我正确的方向吗?并告诉我是否应该重新安装 apache?我不想丢失任何配置..
最佳答案
最终我以某种方式解决了这个问题。我删除并(重新)安装了 httpd、php、php-common、php-cli、php-pear、php-mysql 中的所有内容,还安装了 httpd-devel 和 php-devel
在这个过程中我还手动创建了一个php.conf
在/etc/httpd/conf.d/
我还从 centos forums 运行了这个:rpm -qa 'php*'rpm -V php
最终在这个过程中创建了正确的 php.conf,并且在重新启动 apache 后一切都恢复正常。
关于yum 更新后 PHP 无法在 CentOS 6 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30026973/
使用 yum 的优先级插件时,会显示已排除的软件包数量。有没有办法显示这些包的名称? 最佳答案 你总是可以像这样运行 yum: yum -d 9 install foo 并且部分日志输出是排除包。 编
我尝试使用命令 make && make install 安装 yum-3.4.3,但失败并显示以下日志: infra-bld4:/tmp/hxu2/yum-3.4.3> make for d in
我在 CentOs 8 上运行以下命令 $ cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core) 我从一个干净且更新的 yum 数据
我知道 FI-WARE 在 http://repositories.testbed.fiware.org/ 提供了一个公共(public) yum 存储库可用于安装 FI-WARE 软件包,例如 Or
如何将 yum 存储库完全导入 Artifactory? 请注意,我指的是外部 yum存储库,并且由于在 Artifactory 中实现外部存储库镜像的方式,我无法使用 artifactory-rem
当我在 shell 中使用 yum 时,错误消息是没有名为 yum 的模块,所以我编辑/usr/bin/yum 将第一行更改为另一个版本的 python,但没有任何变化,当我使用不同的 python
我正在按照可以在此处找到的教程在 ec2 实例上设置 headless Selenium 刮刀: https://krbnite.github.io/Driving-Headless-Chrome-w
我们在我们公司使用自定义的 yum 存储库。某些事情导致他们失败 yum makecache命令。 我在 CentOS Linux release 7.7.1908 (Core) . 这是我们在运行
我正在尝试使用 RPM 升级软件包。我如何知道它是全新安装还是更新。是否有任何我可以检查的标志,或者我应该编写一个脚本来检查它是全新安装还是升级? 最佳答案 如果我很好地理解你的问题;我想你自己打包
在 Debian 衍生版中,在使用 apt-get install xxx 从 apt 安装软件之前,需要运行apt-get update .这会刷新包列表,以便正确解析依赖项等。 在使用 RHEL
我正在编写一个更新本地存储库 URL 的 yum 插件。当 repo URL 更改时,我想让 yum 运行 yum clean all 以确保没有缓存过时的信息。我知道当 yum clean [plu
许多 makefile 使用 pkg-config,但名称与包管理器无关(例如 yum/apt)。如何将 pkg-config 名称映射到它们?有什么窍门吗? 示例:如果我执行 yum searchN
我对 Linux 和 VDS 完全陌生。 VDS的操作系统是CentOS 6.9。我正在尝试安装apache、邮件服务器、php、mysql等。但我认为,要能够安装这些 'yum update' 或
当我执行 yum 时,像这样搜索 mysql-libs: $sudo yum search mysql-libs Loaded plugins: branch, downloadonly, faste
我在 CentOS 上使用 MySQL-Server。我 'yum remove' MySQL 服务器,然后再次 'yum install' 它。当我尝试使用 'mysqladmin' 为 'root
我见过两种安装包的方式,比如CentOS上的squid: 1.yum -y install squid 2.yum install squid 谁能告诉我它们之间有什么区别?另外,我使用的是 Cent
提示我出现以下错误 不匹配参数:python-devel 最佳答案 python2.7现在已经完全过时了。你应该和 python3 一起工作.因此你可以安装: dnf install python3-
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
尝试从任何存储库更新任何包时,很难找到导致以下错误的原因。我通过将所有其他人设置为禁用来测试多个 repo 协议(protocol)。我已经清理了所有缓存并删除了所有 dnf yum 缓存文件。 #
我已经在我的 VMServer 上部署了一个新的 CentOS 6.5 实例,其中安装了开发工具、X11 和其他几个软件包。第一天,似乎一切正常。后来我无法使用 yum 安装程序来更新或安装任何软件包
我是一名优秀的程序员,十分优秀!