代碼: 選擇全部
rpm -ivh http://mirror01.idc.hinet.net/EPEL/6/x86_64/epel-release-6-8.noarch.rpm
//安裝epel 6,EPEL是Extra Packages for Enterprise Linux的縮寫
yum update
//更新軟體
yum install php-mcrypt -y
//安裝mcrypt
service httpd restart
//重啟Apache伺服器
代碼: 選擇全部
rpm -ivh http://mirror01.idc.hinet.net/EPEL/6/x86_64/epel-release-6-8.noarch.rpm
//安裝epel 6,EPEL是Extra Packages for Enterprise Linux的縮寫
yum update
//更新軟體
yum install php-mcrypt -y
//安裝mcrypt
service httpd restart
//重啟Apache伺服器