一、配置基础环境:关闭防火墙、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

ServerName www.zhufo.top
ServerAlias zhufo.top
DocumentRoot /webroot/zhufo


Require all granted

[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
网上商城ecshop的部署_第1张图片

网上商城ecshop的部署

四、前台安装源码包
网上商城ecshop的部署_第2张图片
给/webroot/zhufo权限:
[root@localhost ~]# chmod -R 777 /webroot/zhufo/
网上商城ecshop的部署_第3张图片
配置数据库密码:
网上商城ecshop的部署_第4张图片
修改php.ini时区:
[root@localhost ~]# vim /etc/php.ini
网上商城ecshop的部署_第5张图片
[root@localhost ~]# systemctl restart httpd
网上商城ecshop的部署_第6张图片
完成!