日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > linux >内容正文

linux

深度linux magento,linux下安装magento

發(fā)布時(shí)間:2025/3/15 linux 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 深度linux magento,linux下安装magento 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一.環(huán)境:

1.windows 2008 :hyper-v

2.centos 6.5-i386 (64位hyper-v不識(shí)別)

3.Magento1.8.1.0 社區(qū)版(CE)

二.開(kāi)始:

1.安裝centos 6.5

選擇語(yǔ)言為:English(English) #生產(chǎn)服務(wù)器建議安裝英文版本

Minimal 最小化安裝 (備注:可以點(diǎn)Customize now,選擇安裝需要的開(kāi)發(fā)工具包軟件,

也可以在需要的時(shí)候通過(guò)yum源、rpm或者編譯來(lái)安裝軟件包。)

vi ?/etc/sysconfig/network-scripts/ifcfg-eth0 ? #編輯配置文件,添加修改以下內(nèi)容

BOOTPROTO=static ? #啟用靜態(tài)IP地址

ONBOOT=yes ?#開(kāi)啟自動(dòng)啟用網(wǎng)絡(luò)連接

IPADDR=192.168.21.129 ?#設(shè)置IP地址

NETMASK=255.255.255.0 ?#設(shè)置子網(wǎng)掩碼

GATEWAY=192.168.21.2 ? #設(shè)置網(wǎng)關(guān)

DNS1=8.8.8.8 #設(shè)置主DNS

DNS2=8.8.4.4 #設(shè)置備DNS

IPV6INIT=no ?#禁止IPV6

:wq! ?#保存退出

service ip6tables stop ? #停止IPV6服務(wù)

chkconfig ip6tables off ?#禁止IPV6開(kāi)機(jī)啟動(dòng)

service yum-updatesd stop ? #關(guān)閉系統(tǒng)自動(dòng)更新

chkconfig yum-updatesd off ?#禁止開(kāi)啟啟動(dòng)

service network restart ?#重啟網(wǎng)絡(luò)連接

ifconfig ?#查看IP地址

關(guān)閉防火墻:

1) 臨時(shí)生效,重啟后復(fù)原

開(kāi)啟: service iptables start

關(guān)閉: service iptables stop

2) 永久性生效,重啟后不會(huì)復(fù)原

開(kāi)啟: chkconfig iptables on

關(guān)閉: 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ì)算機(jī)后,防火墻默認(rèn)已經(jīng)開(kāi)放了80和22端口

這里應(yīng)該也可以不重啟計(jì)算機(jī):

#/etc/init.d/iptables restart

防火墻的關(guān)閉,關(guān)閉其服務(wù)即可:

查看防火墻信息:

#/etc/init.d/iptables status

詳細(xì)出處參考: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.

安裝完成后登陸,更改為免費(fèi)授權(quán)

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服務(wù)器

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

.當(dāng)前目錄

未關(guān)閉selinux ?。未修改httpd

總結(jié)

以上是生活随笔為你收集整理的深度linux magento,linux下安装magento的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。