# kfsystem
**Repository Path**: unrelaxs/kfsystem
## Basic Information
- **Project Name**: kfsystem
- **Description**: 客服小应用
- **Primary Language**: PHP
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-07-08
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
<<<<<<< HEAD
# 客服项目
#### 项目介绍
基于wokerman开发的客服项目
>参考地址:http://kf.thkcat.com/pc/kf/listshow
#### 软件架构
1. php7.0+
2. thinkphp5
3. workerman(GatewayWorker)
5. jquery
6. mysql5
#### 安装教程
1. nginx完整配置:
```nginx
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 0;
#keepalive_timeout 65;
gzip on;
server {
set $root /xxx.com/KfSystem;
listen 80;
server_name xxx.com;
root $root;
index index.php index.html index.htm;
#如果访问的文件找不到,则交给pathinfo处理
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
location ~ \.php {
root $root;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $root/public$fastcgi_script_name;
include fastcgi_params;
}
}
}
```
2. 如果mysql版本比较高,需要兼容版本低的
```linux
#修改mysqld的配置文件
mac# vi /etc/my.cnf
#查找并替换以下内容
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
```
3. 如果是windows系统,则双击GatewayWorker-for-win/start_for_win.bat
4. 如果是linux系统,则运行
```linux
mac# php GatewayWorker-for-linux/start.php start
#守护进程运行则:
mac# php -d GatewayWorker-for-linux/start.php start
```
5. 导入chat.sql数据库
```linux
mac# mysql -uroot -p
mysql> create database chat;
mysql> source chat.sql;
mysql> exit
#注意 source chat.sql填写绝对路径
```
6. 浏览器访问:xxx.com/pc/kf/listshow
7. 参考地址:http://kf.thkcat.com/pc/kf/listshow
#### 使用说明
1. linux 选择 for-linux, php -d start.php
2. 后台登陆 xxx.com/admin
3. 账号密码
>账号:折腾哥
>密码:123456
>账号:ladygaga
>密码:123456
4. 访问地址
>客服前台登陆 xxx.com/pc/kf
>选择客服聊天xxx.com/pc/kf/listshow
>手机端 xxx.com/mobile
#### 参与贡献
=======
# kfsystem
#### 项目介绍
客服小应用
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本项目
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [http://git.mydoc.io/](http://git.mydoc.io/)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
>>>>>>> ec25d09f923060a6b1d9bdd52afe12de2ba66d64