crmeb开源

dream 050bfac24d 1 6 months ago
app 050bfac24d 1 6 months ago
backup 050bfac24d 1 6 months ago
config 050bfac24d 1 6 months ago
crmeb 050bfac24d 1 6 months ago
public 050bfac24d 1 6 months ago
route 050bfac24d 1 6 months ago
runtime 050bfac24d 1 6 months ago
vendor 050bfac24d 1 6 months ago
.constant 050bfac24d 1 6 months ago
.env 050bfac24d 1 6 months ago
.htaccess 050bfac24d 1 6 months ago
.phpstorm.meta.php 050bfac24d 1 6 months ago
.travis.yml 050bfac24d 1 6 months ago
.version 050bfac24d 1 6 months ago
LICENSE.txt 050bfac24d 1 6 months ago
README.md 050bfac24d 1 6 months ago
build.example.php 050bfac24d 1 6 months ago
composer.json 050bfac24d 1 6 months ago
composer.lock 050bfac24d 1 6 months ago
filetree.txt 050bfac24d 1 6 months ago
index.html 050bfac24d 1 6 months ago
think 050bfac24d 1 6 months ago
workerman.bat 050bfac24d 1 6 months ago

README.md

CRMEB v5 后端程序目录

运行环境要求PHP7.1-7.4。

安装

一键安装

上传你的代码,站点入口目录设置/public 在浏览器中输入你的域名或IP(例如:www.yourdomain.com), 安装程序会自动执行安装。期间系统会提醒你输入数据库信息以完成安装,安装完成后建议删除install目录。

后台访问地址: 1.域名/admin 公众号和H5首页访问地址: 1.域名/

安装过程中请牢记您的账号密码!

重新安装

  1. 清除数据库
  2. 删除/public/install.lock 文件

手动安装

1.创建数据库,倒入数据库文件 数据库文件目录/public/install/crmeb.sql 2.修改数据库连接文件 配置文件路径/.env

APP_DEBUG = true

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai

[DATABASE]
TYPE = mysql
HOSTNAME = 127.0.0.1 #数据库连接地址
HOSTPORT = 3306 #数据库端口
DATABASE = test #数据库名称
USERNAME = username #数据库登录账号
PASSWORD = password #数据库登录密码
PREFIX = eb_
CHARSET = utf8mb4
DEBUG = true

[LANG]
default_lang = zh-cn

[CACHE]
DRIVER = file #缓存类型,redis/file
CACHE_PREFIX = cache_xxxx: #缓存前缀
CACHE_TAG_PREFIX = cache_tag_xxxx: #缓存类型前缀

[REDIS]
REDIS_HOSTNAME = 127.0.0.1 #redis链接地址
PORT = 6379 #端口号
REDIS_PASSWORD = 123456 #密码
SELECT = 0 #数据库

[QUEUE]
QUEUE_NAME = xxxx #队列前缀

3.修改目录权限(linux系统)777 /crmeb /template

4.后台登录: http://域名/admin 默认账号:admin 密码:crmeb.com

消息队列

php think queue:listen --queue

定时任务

在自动收货,库存预警等功能使用到

php think timer [ status ] [ --d ]

参数

  • status: 状态
    • start: 启动
    • stop: 关闭
    • restart: 重启
  • --d : 后台执行

长连接服务

在h5聊天,后台管理员消息通知等功能使用到

php think workerman [ status ]  [ --d ]

windows环境下需要分三步执行

# 内部通讯服务
php think workerman start --d

参数

  • status: 状态
    • start: 启动
    • stop: 关闭
    • restart: 重启
  • --d : 后台执行

文档

使用手册 TP6开发手册

参与开发

请参阅 CRMEB

版权信息

本项目包含的第三方源码和二进制文件之版权信息另行标注。

版权所有Copyright © 2017-2023 by CRMEB (http://www.crmeb.com)

All rights reserved。

CRMEB® 商标和著作权所有者为西安众邦网络科技有限公司。