<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CentOS yum &#8211; 九创科技</title>
	<atom:link href="https://www.3code.cn/tag/centos-yum/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.3code.cn</link>
	<description>Wordpress外贸企业主题, Wp企业主题, wordpress企业主题, wordpress主题定制, WORDPRESS外贸网站建设SEO</description>
	<lastBuildDate>Tue, 12 Mar 2013 01:43:33 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>CentOS yum安装mcrypt详细图解教程</title>
		<link>https://www.3code.cn/centos-yum%e5%ae%89%e8%a3%85mcrypt%e8%af%a6%e7%bb%86%e5%9b%be%e8%a7%a3%e6%95%99%e7%a8%8b/</link>
		
		<dc:creator><![CDATA[寒林]]></dc:creator>
		<pubDate>Tue, 12 Mar 2013 01:43:33 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CentOS yum]]></category>
		<category><![CDATA[mcrypt]]></category>
		<guid isPermaLink="false">https://www.3code.cn/?p=3129</guid>

					<description><![CDATA[在Linux的发行版CentOS 6.3 系统下，LAMP(Linux+Apache+Mysql+p<a class="moretag" href="https://www.3code.cn/centos-yum%e5%ae%89%e8%a3%85mcrypt%e8%af%a6%e7%bb%86%e5%9b%be%e8%a7%a3%e6%95%99%e7%a8%8b/"> 阅读更多&#8230;</a>]]></description>
										<content:encoded><![CDATA[<p>在Linux的发行版CentOS 6.3 系统下，LAMP(Linux+Apache+Mysql+php)环境搭建好后发现PHPMyadmin提示 “无法载入mcrypt模块” 的错误感觉很不爽，就尝试着使用yum安装提示找不到模块。如下为执行过程：</p>
<p>[root@ptr228 ~]# yum install php-mcrypt<br />
Setting up Install Process<br />
No package php-mcrypt available.<br />
Error: Nothing to do</p>
<p>原来CentOS 官方默认不在对mcrypt模块 进行支持，所以必须另想办法折腾了2个小时总算搞定，这里主要使用了Fedora的扩展库，EPEL (Extra Packages for Enterprise Linux)先分享解决过程如下：<br />
第一步：在扩展库中查找rpm包</p>
<p>打开网址： http://mirrors.sohu.com/fedora-epel/6/i386/ 使用 Ctrl+F 搜索关键词“epel-release” 找到当前最新的扩展包发现最新版本为：epel-release-6-7.noarch.rpm</p>
<p>如下截图：</p>
<p><img decoding="async" src="https://www.yiweihy.com/images/knoleage/201209131222.jpg" border="0" alt="" /></p>
<p>然后执行命令：</p>
<p>[root@ptr228 ~]# rpm -ivh http://mirrors.sohu.com/fedora-epel/6/i386/epel-release-6-7.noarch.rpm</p>
<p>见图：</p>
<p><img decoding="async" title="rpm命令执行" src="https://www.yiweihy.com/images/knoleage/mcrypt-01.jpg" border="0" alt="rpm命令执行" /></p>
<p>rpm命令执行</p>
<p>注意：扩展包得不断更新的，所以需要搜索 “epel-release” 找到正确的版本，否则命令将不能执行成功。<br />
第二步：执行命令：yum update 更行系统 见下图：</p>
<p>执行命令：</p>
<p>[root@ptr228 ~]# yum update</p>
<p>然后就是一段时间的等待了，因为系统会更新到CentOS 最新版本有可能会时间比较长。更新完成后会有 Complete! 提示</p>
<p>见下图：</p>
<p>CentOS更新完成<br />
第三步：执行命令 yum repolist 查看安装结果</p>
<p>查看是否已经有了 EPEL(Extra Packages for Enterprise Linux) 扩展包，执行命令和结果如下：</p>
<p>执行命令：</p>
<p>[root@ptr228 ~]# yum repolist</p>
<p>见图：</p>
<p>EPEL安装结果</p>
<p>如果发现了如图中所示的epel 说明已经安装成功，可以继续执行了。<br />
第四步：执行命令： yum install php-mcrypt 安装mcrypt扩展包</p>
<p>执行命令：</p>
<p>[root@ptr228 ~]# yum install php-mcrypt</p>
<p>见图：</p>
<p>mcrypt安装结果</p>
<p>可以看到已经可以安装了，输入 y 继续安装。<br />
第五步：重启apache是扩展生效</p>
<p>执行命令：</p>
<p>[root@ptr228 ~]# service httpd restart</p>
<p>见图：</p>
<p>重启apache</p>
<p>再打开 PHPMyadmin 红色的错误提示已经没有。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
