本文共 1719 字,大约阅读时间需要 5 分钟。
选择语言为:English(生产服务器建议安装英文版本)安装类型:Minimal(可根据需求选择安装开发工具包软件,后续也可通过yum源、rpm或编译安装)
编辑 /etc/sysconfig/network-scripts/ifcfg-eth0
文件,设置如下内容:
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.21.129
NETMASK=255.255.255.0
GATEWAY=192.168.21.2
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no
保存并退出后,执行以下命令:
service ip6tables stopchkconfig ip6tables offservice yum-updatesd stopchkconfig yum-updatesd offservice network restartifconfig
方法一:临时关闭(重启后复原)
service iptables stop
方法二:永久关闭(重启后不会复原)
chkconfig iptables off
或使用命令:
# 启用特定端口(如HTTP和SSH)/sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT/sbin/iptables -I INPUT -p tcp –dport 22 -j ACCEPT/etc/rc.d/init.d/iptables save
或者在重启系统后:
#/etc/init.d/iptables restart
新建文件 /etc/yum.repos.d/zend.repo
,内容如下:
[Zend]name=zend-serverbaseurl=http://repos.zend.com/zend-server/enabled=1gpgcheck=1gpgkey=http://repos.zend.com/zend.key[Zend_noarch]name=zend-server - noarchbaseurl=http://repos.zend.com/zend-server/enabled=1gpgcheck=1gpgkey=http://repos.zend.com/zend.key
运行相应命令:
yum install zend-server-php-[PHP版本]
安装必需软件包:
yum -y install mysql-serveryum -y install php-mysql
启动并验证MySQL服务:
chkconfig mysqld onchkconfig --list mysqld/etc/rc.d/init.d/mysqld start
登录MySQL并创建数据库:
mysql -u rootcreate database test;
下载并解压:
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gztar -zxvf magento-1.8.1.0.tar.gzmv magento/* magento/.htaccesschmod -R o+w media varchmod o+w app/etc
转载地址:http://pdzfk.baihongyu.com/