深度linux magento,linux下安装magento
一.環(huán)境:
1.windows 2008 :hyper-v
2.centos 6.5-i386 (64位hyper-v不識別)
3.Magento1.8.1.0 社區(qū)版(CE)
二.開始:
1.安裝centos 6.5
選擇語言為:English(English) #生產(chǎn)服務器建議安裝英文版本
Minimal 最小化安裝 (備注:可以點Customize now,選擇安裝需要的開發(fā)工具包軟件,
也可以在需要的時候通過yum源、rpm或者編譯來安裝軟件包。)
vi ?/etc/sysconfig/network-scripts/ifcfg-eth0 ? #編輯配置文件,添加修改以下內(nèi)容
BOOTPROTO=static ? #啟用靜態(tài)IP地址
ONBOOT=yes ?#開啟自動啟用網(wǎng)絡連接
IPADDR=192.168.21.129 ?#設置IP地址
NETMASK=255.255.255.0 ?#設置子網(wǎng)掩碼
GATEWAY=192.168.21.2 ? #設置網(wǎng)關
DNS1=8.8.8.8 #設置主DNS
DNS2=8.8.4.4 #設置備DNS
IPV6INIT=no ?#禁止IPV6
:wq! ?#保存退出
service ip6tables stop ? #停止IPV6服務
chkconfig ip6tables off ?#禁止IPV6開機啟動
service yum-updatesd stop ? #關閉系統(tǒng)自動更新
chkconfig yum-updatesd off ?#禁止開啟啟動
service network restart ?#重啟網(wǎng)絡連接
ifconfig ?#查看IP地址
關閉防火墻:
1) 臨時生效,重啟后復原
開啟: service iptables start
關閉: service iptables stop
2) 永久性生效,重啟后不會復原
開啟: chkconfig iptables on
關閉: chkconfig iptables off
或者用命令:
#/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
這樣重啟計算機后,防火墻默認已經(jīng)開放了80和22端口
這里應該也可以不重啟計算機:
#/etc/init.d/iptables restart
防火墻的關閉,關閉其服務即可:
查看防火墻信息:
#/etc/init.d/iptables status
詳細出處參考:http://www.jb51.net/os/128751.html
2.Manually InstallingZend Server
To setup the environment:
Set up yourZend Serverrepository by creating'/etc/yum.repos.d/zend.repo' and adding the following content:
[Zend]
name=zend-server
baseurl=http://repos.zend.com/zend-server/6.3/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
[Zend_noarch]
name=zend-server - noarch
baseurl=http://repos.zend.com/zend-server/6.3/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
To install:
Once ?the environment is setup, ?run the appropriate command ?according to the ?PHP version (5.3, 5.4 or 5.5) you require:
# yum install zend-server-php-
To clean your packages cache and ensure retrieval of updates ?from the web, run:
yum clean all
To access the Zend ?Server UI, open your browser at:https://:10082/ZendServer(secure), orhttp://:10081/ZendServer.
安裝完成后登陸,更改為免費授權
yum -y install mysql-server
yum -y install php-mysql
chkconfig mysqld on ? ? ? chkconfig --list mysqld ? ? ?/etc/rc.d/init.d/mysqld start
mysql -u root← 用root用戶登錄MySQL服務器
mysql �u root �p
create database test;
yum -y install wget
wordpress
http://codex.wordpress.org/zh-cn:%E5%AE%89%E8%A3%85_WordPress
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
tar -zxvf magento
-1.8
.1
.0.tar.gz
mv magento/* magento/.htaccess .
chmod -R o+w media var
chmod o+w app/etc
cp -r
.當前目錄
未關閉selinux ?。未修改httpd
總結
以上是生活随笔為你收集整理的深度linux magento,linux下安装magento的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网页设计的价格标准
- 下一篇: 遇到automation服务器不能创建对