码迷,mamicode.com
首页 > 其他好文 > 详细

网上商城ecshop的部署

时间:2018-05-25 13:38:24      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:网上商城ecshop的部署

一、配置基础环境:关闭防火墙、SELinux
[root@localhost ~]# sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

二、安装LAMP:
[root@localhost ~]# yum -y install httpd mariadb mariadb-server php php-mysql gd php-gd
[root@localhost ~]# systemctl start httpd mariadb
[root@localhost ~]# systemctl enable httpd mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

三、上传站点源码包:
1).Apache 配置虚拟主机
[root@localhost ~]# cat /etc/httpd/conf.d/zhufo.conf
<VirtualHost *:80>
ServerName www.zhufo.top
ServerAlias zhufo.top
DocumentRoot /webroot/zhufo
</VirtualHost>

<Directory "/webroot/zhufo">
Require all granted
</Directory>
[root@localhost zhufo]# systemctl restart httpd
2).导入ecshop网站源码
[root@localhost zhufo]# unzip ECShop_V3.0.0_UTF8_release0518.zip
[root@localhost zhufo]# vim /etc/hosts
[root@localhost zhufo]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

10.18.43.135 www.zhufo.top zhufo.top
3).安装ecshop [任何client]
[root@localhost ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

10.18.43.135 www.zhufo.top zhufo.top
在Windows上的hosts中,DNS解析
C:\Windows\System32\drivers\etc
技术分享图片

技术分享图片

四、前台安装源码包
技术分享图片
给/webroot/zhufo权限:
[root@localhost ~]# chmod -R 777 /webroot/zhufo/
技术分享图片
配置数据库密码:
技术分享图片
修改php.ini时区:
[root@localhost ~]# vim /etc/php.ini
技术分享图片
[root@localhost ~]# systemctl restart httpd
技术分享图片
完成!

网上商城ecshop的部署

标签:网上商城ecshop的部署

原文地址:http://blog.51cto.com/13765357/2120205

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!