云计算学习路线教程大纲课件:部署网上商城ecshop:
建议新环境开始
一、基础环境
[[email protected] ~]# sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config
[[email protected] ~]# setenforce 0
[[email protected] ~]# systemctl stop firewalld.service
[[email protected] ~]# systemctl disable firewalld.service
二、安装LAMP
[[email protected] ~]# yum -y install httpd mariadb-server mariadb php php-mysql gd php-gd
[[email protected] ~]# systemctl start httpd mariadb
[[email protected] ~]# systemctl enable httpd mariadb
[[email protected] ~]# mysql_secure_installation
三、安装Ecshop
- Apache 配置虚拟主机
[[email protected] ~]# vim /etc/httpd/conf.d/zhufo.conf
[[email protected] ~]# systemctl restart httpd
- 导入ecshop网站
[[email protected] ~]# mkdir -p /webroot/zhufo
[[email protected] ~]# unzip ECShop_V3.0.0_UTF8_release0518.zip
[[email protected] ~]# cp -rf ECShop_V3.0.0_UTF8_release0518/* /webroot/zhufo/
- 安装ecshop [任何client]
[[email protected] ~]# vim /etc/hosts //如果没有使用DNS解析
192.168.122.161 www.zhufo.top zhufo.top //161为 web server IP
[[email protected] ~]# chmod -R 777 /webroot/zhufo/
修改php.ini时区
[[email protected] ~]# vim /etc/php.ini
[[email protected] ~]# systemctl restart httpd
原文地址:https://blog.51cto.com/14489558/2447717