当前位置: 首页 > news >正文

项目实战:ecshop

文章目录

    • 项目实战:ecshop
      • ecshop 介绍
      • ecshop 安装
        • 准备 LNMP 环境
        • 准备数据库
        • 准备 ecshop 站点
        • 配置过程

项目实战:ecshop

ecshop 介绍

官网

ECShop多场景在线商城。

ecshop 安装

准备 LNMP 环境
[root@server ~ 09:16:17]# yum install -y nginx
[root@server ~ 09:16:57]# systemctl enable nginx --now
[root@server ~ 17:21:11]# yum install -y mariadb-server
[root@server ~ 17:21:41]# systemctl enable mariadb --now
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@server ~ 17:21:46]# mysql_secure_installation
准备数据库
[root@server ~ 17:22:47]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.68-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> CREATE DATABASE ecshop;
Query OK, 1 row affected (0.00 sec)MariaDB [(none)]> CREATE USER ecshop@localhost IDENTIFIED BY '123456';
Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> GRANT ALL PRIVILEGES ON ecshop.* TO ecshop@localhost;
Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> quit
Bye
准备 ecshop 站点

准备 ecshop 站点配置文件。

[root@server ~ 17:24:32]# vim /etc/nginx/conf.d/www.server.cloud-ssl.conf 
server {listen       443 ssl http2;listen       [::]:443 ssl http2;server_name  _;root         /usr/share/nginx/html;
#添加访问首页为index.php    index index.php;ssl_certificate "/etc/ssl/certs/www.server.cloud/www.crt";
...}
}[root@server ~ 17:25:48]# systemctl restart nginx
[root@server ~ 17:27:02]# mv /usr/share/nginx/html/ /usr/share/nginx/html.ori# 准备 ecshop 站点数据文件,这里使用 ECShop_V4.1.20 版本。
[root@server ~ 17:27:06]# unzip ECShop_V4.1.20_UTF8.zip
[root@server ~ 17:27:08]# cp -a ECShop_V4.1.20_UTF8_release20250416/source/ecshop /usr/share/nginx/html
[root@server ~ 17:27:13]# chown nginx:nginx -R /usr/share/nginx/html
[root@server ~ 17:27:18]# yum install -y php-gd php-common php-pear php-mbstring php-mcrypt
[root@server ~ 17:28:31]# vim /etc/php-fpm.d/www.conf
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
;       will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx
[root@server ~ 17:29:59]# chown nginx:nginx -R /var/lib/php/
[root@server ~ 17:30:35]# systemctl restart nginx.service php-fpm.service 
配置过程

客户端登录 https://www.server.cloud

estart nginx.service php-fpm.service


#### 配置过程客户端登录 https://www.server.cloud![外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传](https://img-home.csdnimg.cn/images/20230724024159.png?origin_url=C%3A%5CUsers%5C86186%5CAppData%5CRoaming%5CTypora%5Ctypora-user-images%5Cimage-20250929173449484.png&pos_id=img-zCFGHmHP-1759139453026)
http://www.dtcms.com/a/424329.html

相关文章:

  • 白城北京网站建设邵阳小学网站建设
  • SpringBoot 的配置文件与日志
  • 物联网技术与应用第三节课笔记
  • 【Java】P10 面向对象编程完全指南(S1-2 基础篇 包管理与导入)
  • C++ 特性 --内部类 模板类中取出来类类型问题
  • ip地址直接访问网站东莞市网络seo推广企业
  • 5090裸金属租用:捷智算助力企业数字化转型
  • 北京网站建设设计南阳网站建设哪家好
  • 大模型原理与实践:第一章-NLP基础概念完整指南_第1部分-概念和发展历史
  • 国企门户网站建设方案电子商务网站策划方案
  • 【Linux】cgdb调试工具的使用
  • 南京建设网站要多少钱线上推广活动
  • 做网站专题页需要注意什么app制作开发报价
  • iTerm2使用Shell Integration优雅地实现单个文件上传与下载
  • 怎样做网站漂浮精通网站开发
  • 西安网站制作sxyun昆明网站建设公司哪家好
  • 突破NER性能瓶颈:BERT与LLM协同的混合架构实践
  • 网站建设与管理课件seo排名优化联系13火星软件
  • 网站做前端去国外做外卖网站
  • 分布式任务事务框架设计与实现方案
  • 漳州 网站建设多少钱成都旅游攻略景点必去
  • pytorch基本运算-torch.normal()函数生成的随机数据添加噪声
  • 通辽建设工程网站网上做效果图网站有哪些
  • DragonBalls_One013
  • 湖南网站建设哪家有定制软件如何收费
  • 专门做招商的网站是什么wordpress两栏
  • 七彩喜艾灸机器人:传统技艺与AI的共生共舞
  • svn: E200009
  • SVN 主分支合并之通过主分支合并子分支操作流程
  • 个人做美食视频网站本地网站地图生成器