ShopWind是一款基于Yii2.0框架深度重构的B2B2C多用户商城系统,提供社区团购、拼团、秒杀、O2O商城系统以及移动端APP和小 程序开发。ShopWind致力于打造一款完全开源的电商系统,可以免费用于商业运营或二次开发,免于商业版权的烦恼。商业版包含PC、手机H5、微商城、APP客户端(Andorid+iOS)、微信小程序、今日头条小程序等多端,其中PC端为开源免费项目
可以采用腾讯云香港节点,建议配置:2核4G内存50G硬盘5M带宽
www.shoptest.com
获取源码
获取ShopWind最新源码:
基于docker的lnmp项目配置文件:
https://pan.baidu.com/s/1oja26QEu9CHKHaffNd5a6Q
提取码:bndm
解压到指定目录
cd /opt/lnmp/app/ && mkdir shopwind
tar xvf leadshop-V1.4.9.tar_gz -C shopwind
#更改目录权限
useradd -u 1010 www-data -s /usr/sbin/nologin
chown -R www-data /opt/lnmp/app/shopwind/
nginx配置
cp support/web.conf.example services/web/nginx/conf/conf.d/dsshop.conf
dsshop.conf
# Appadmin
server {
listen 80;
server_name www.shoptest.com; #改成自己的域名
root /www/web/shopwind/frontend/web/; #项目目录,在app目录下
server_tokens off;
include none.conf;
index index.php index.html index.htm;
access_log /www/web_logs/access.log wwwlogs;
error_log /www/web_logs/error.log notice;
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*\.(js|css)?$ {
expires 12h;
}
}
cd /opt/lnmp/ && docker-compose up -d
#登录
mysql -uroot -pmariadb@123 -h 127.0.0.1
执行sql
CREATE DATABASE `shopwind` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
create user 'swuser'@'%' IDENTIFIED BY 'swuser123';
grant all privileges on shopwind.* to 'swuser'@'%';
flush privileges;
配置域名解析,然后通过浏览器访问,按照提示安装
http://www.shoptest.com/
http://www.shoptest.com/login.html
商城首页
效果图见文章开头
http://www.shoptest.com/login.html
nginx需要开启伪静态配置
location /admin {
try_files $uri $uri/ /admin/index.php$is_args$args;
}
location /mobile {
try_files $uri $uri/ /mobile/index.php$is_args$args;
}