我们的使命

助力跨境卖家高效建立全球销售网络

喜报2021年我司获《江苏省国家高新技术企业》认定

分类目录

文章标签

热门推荐

相关咨讯

opencarterp,magento运行环境

2022-09-15 11:02:42 - 米境通跨境电商



    在将Magento发布到正式环境之前,一般需要在本地测试,那么下面我们就开始讲解如何在本地搭建模拟环境,用来测试Magento。

    1.下载vmware虚拟机并安装;

    2.下载centos:

    http://download.chinaunix.net/download/0013000/12271.shtml

    3.新建虚拟机:注意使用自定义配置,使用桥接网络并且硬盘采用IDE格式,在CD-ROM中使用你下载的centos的ISO镜像文件;

    4.安装centos:安装过程中注意,根口令为你的root帐户的口令,要记住;设置好根口令之后,注意要选择“现在定制”选项,以选择安装PHP,MYSQL,VSFTP等;之后在服务器选项中勾选FTP服务器、MYSQL数据库、万维网服务器(最好勾选php-mysql及php-odbc可选软件包)、邮件服务器(如有必要可安装桌面环境)、网络服务器;并且在系统reboot之后注意网络设置(最好使用DHCP)、防火墙设置及系统开机启动服务设置(当然也可以使用chkconfigxxxon进行设置),设置之后重启(init6)生效,使用setup命令可以重新设置;

    如碰到ping:unknownhost问题,则运行以下命令:

    vi/etc/resolv.conf(没有则新建)

    insert

    searchlocaldomain

    nameserver222.222.222.222

    nameserver208.67.220.220

    ESC

    wq

    servicenetworkrestart

    5.之后使用root用户登录系统,设置vsftpd使得root用户可以访问,以便后面安装上传文件;

    annoymous_enable=YES

    local_enable=YES

    write_enable=YES

    local_umask=022

    anon_upload_enable=YES

    anon_world_readable_only=NO

    anon_other_write_enable=YES

    chown_upload=YES

    ascii_upload_enable=YES

    ascii_download_enable=YES

    userlist_enable=YES

    将/etc/vsftpd/ftpusers及/etc/vsftpd/user_list两个文件中的root一行注释

    6.安装nginx

    rpm-Uvhhttp://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm(注意该链接是否更新,如果碰到urlopenerror说明你的网络设置有问题)

    rpminstall-ynginx

    servicehttpdstop(注意先停止httpd,因为二者端口冲突)

    servicenginxstart

    chkconfignginxon

    7.安装spawn-fcgi,配置虚拟机:

    依次输入以下命令:

    #yuminstallspawn-fcgi

    #wgethttp://bash.cyberciti.biz/dl/419.sh.zip

    #unzip419.sh.zip

    #mv419.sh/etc/init.d/php_cgi

    #chmod+x/etc/init.d/php_cgi

    #/etc/init.d/php_cgistart

    #chkconfigphp_cgion

    #netstat-tulpn|grep:9000

    输出如下:

    tcp00127.0.0.1:90000.0.0.0:*LISTEN14294/php-cgi
    联系我们
  • 24H客服
  • 联系电话:16651690460(龙经理)
  • 微信咨询:
南京天遥路联网络科技有限公司,版权所有 Copyright By ©米境通ERP4.0,2015-2025,苏ICP备:苏ICP备15044100号-2, 苏公网安备:32011402011043