• 欢迎访问MACD实战投资网站,推荐使用最新版谷歌Chrome浏览器访问本网站,关注公众号 丁火甲木庚金 www.macd11.com/subscriptions

(总结)RHEL/CentOS 5.x使用yum安装zend-optimizer

原创总结 丁火 14年前 (2011-07-04) 5286次浏览 1个评论

PS:刚才一朋友叫我帮忙弄个网店系统,我就准备先弄个演示站点给他看看,马上登上去在米国的这个VPS,wget下来shopex这个网店程序,开始安装,囧,居然出现乱码。google一下,原来是shopex的核心程序使用zend来加密了。而我这VPS没安装zend软件包。不想编译(哥现在最烦编译安装东西,可能以前玩LFS和gentoo时编译怕了,曾经最高纪录连续编译了3天3夜。现在懒了,不想折腾了。),于是找了一下zend-optimizer的yum源,直接安装使用没问题。

方法简单如下:

1、下载并运行这个脚本:
wget -q -O - http://www.atomicorp.com/installers/atomic | sh

2、运行完上面的脚本后,会看到/etc/yum.repos.d/目录下多了一个名字为atomic.repo的源,内容如下:

# Name: Atomic Rocket Turtle RPM Repository for CentOS / Red Hat Enterprise Linux 5 -
# URL: http://www.atomicrocketturtle.com/
# Note: This isn't covered by ASL support. -Scott
[atomic]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com
mirrorlist = http://www.atomicorp.com/mirrorlist/atomic/centos-5-$basearch
#mirrorlist = http://www.atomicorp.com/channels/atomic/centos/5/mirrors-atomic
enabled = 1
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck = 1

# Almost Stable, release candidates for [atomic]
# Note these are not supported by anyone. -Scott
[atomic-testing]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Testing)
mirrorlist = http://www.atomicorp.com/mirrorlist/atomic-testing/centos-5-$basearch
enabled = 0
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
gpgcheck = 1

# Untested, Unstable, known buggy, and incomplete packages.
# Note, you shouldn't be here unless you are me. -Scott
#[atomic-bleeding]
#name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Bleeding)
#baseurl = http://www.atomicorp.com/channels/atomic-bleeding/centos/5/$basearch/
#enabled = 0
#priority = 1

默认开启第一个就行。

3、使用yum安装zend-optimizer

yum install php-zend-optimizer

之后重启php-fpm或apache就可以使用了。

shopex这个网店程序几年没碰了,现在的版本果然功能强大!

网店前台:

网店后台:

参考:http://www.atomicorp.com/channels/atomic/


macd11.com 和 丁火甲木庚金 公众号版权所有丨如未注明 , 均为原创丨转载请注明原文链接。
喜欢 (0)
[sp91@qq.com]
分享 (0)

您必须 登录 才能发表评论!

(1)个小伙伴在吐槽