设为首页 收藏本站
查看: 1238|回复: 0

[经验分享] linux下安装magento

[复制链接]

尚未签到

发表于 2018-5-24 13:31:33 | 显示全部楼层 |阅读模式
  一.环境:
  1.windows 2008 :hyper-v
  2.centos 6.5-i386 (64位hyper-v不识别)
  3.Magento1.8.1.0 社区版(CE)
  二.开始:
  1.安装centos 6.5
  选择语言为:English(English) #生产服务器建议安装英文版本
  Minimal 最小化安装 (备注:可以点Customize now,选择安装需要的开发工具包软件,
  也可以在需要的时候通过yum源、rpm或者编译来安装软件包。)
  vi  /etc/sysconfig/network-scripts/ifcfg-eth0   #编辑配置文件,添加修改以下内容
  BOOTPROTO=static   #启用静态IP地址
  ONBOOT=yes  #开启自动启用网络连接
  IPADDR=192.168.21.129  #设置IP地址
  NETMASK=255.255.255.0  #设置子网掩码
  GATEWAY=192.168.21.2   #设置网关
  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   #关闭系统自动更新
  chkconfig yum-updatesd off  #禁止开启启动
  service network restart  #重启网络连接
  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

  

  这样重启计算机后,防火墙默认已经开放了80和22端口
  这里应该也可以不重启计算机:
#/etc/init.d/iptables restart

  防火墙的关闭,关闭其服务即可:
  查看防火墙信息:
#/etc/init.d/iptables status

  详细出处参考:http://www.iyunv.net/os/128751.html
  2.Manually Installing   Zend Server
  To setup the environment:
  Set up your Zend Server  repository 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-<PHP Version>

  •    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://<Server_IP>:10082/ZendServer (secure), or http://<Server_IP>:10081/ZendServer.
  详细链接:http://files.zend.com/help/Zend-Server/zend-server.htm#rpm_installing_zend_server.htm
  安装完成后登陆,更改为免费授权
   安装mysql(http://www.centospub.com/make/mysql.html)
   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

  http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/installing_magento_via_shell_ssh#installing_magento_via_ssh
  


  •   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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-480693-1-1.html 上篇帖子: Linux的系统调用 下篇帖子: Linux内核级命令
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表