# ESharp **Repository Path**: rjry/esharp ## Basic Information - **Project Name**: ESharp - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-04-11 - **Last Updated**: 2021-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ESharp --------- ### Git ``` # 全局配置 $ git config --global user.name "rjry" $ git config --global user.email "rjry123@163.com" # 记住帐密 $ git config --global credential.helper store ``` ### PhpRedisAdmin [Ip + Port: 6380] ``` $ git clone https://github.com/ErikDubbelboer/phpRedisAdmin.git phpredisadmin $ cd phpredisadmin $ git clone https://github.com/nrk/predis.git vendor ``` ``` $ cd /phpredisadmin/includes/ $ cp config.sample.inc.php config.inc.php ``` ``` // Uncomment to enable HTTP authentication 'login' => array( 'admin' => array( 'password' => 'xxxxxx', ), ), ``` ### 软件安装 ``` # 框架端 $ git clone https://gitee.com/rjry/esharp.git $ cd esharp # 服务端 $ git clone https://gitee.com/rjry/esharp-server.git # 通讯端 $ git clone https://gitee.com/rjry/esharp-socket.git # 控制台 $ git clone https://gitee.com/rjry/esharp-console.git ``` ### WebSocket ``` 1.在 server 上方添加以下代码: map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 127.0.0.1:9527; } 2.搜索 #SSL-END 在这串注释后面加上以下代码: # Nginx代理WSS # wss://xxx.xxx/socket location /socket { proxy_pass http://127.0.0.1:9527; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } ``` ### 启动 ``` # 通讯端 $ cd /www/wwwroot/esharp/esharp-socket $ php channel_server.php start -d # 消息端 $ cd /www/wwwroot/esharp/esharp-server $ php think worker:gateway -d ``` ### 版本 ``` https://gitee.com/rjry/esharp/raw/master/version.json ```